Timothy Murphy wrote: > Is anyone successfully using gallery2 under Fedora-6? > > Having installed gallery2 with "yum install gallery2*" > when I enter the first (Authenticate) step > I get the message > "Error: could not locate login.txt" > even though the correct login.txt is in the same gallery2 directory > as main.php, as advised. > > I've googled for this message, and found many hits, > but nowhere have I seen a coherent solution. After spending a whole day on this, I have come to the conclusion that there is a serious error in gallery2 as packaged by Fedora-6. The file .../gallery2/install/steps/AuthenticationStep.class contains two incomprehensible errors, as described in the correction patch below. I don't understand how whoever put this package together failed to see this error, since the program cannot have run as far as I can see. ----------------------------------------- [tim@alfred steps]$ diff -u AuthenticateStep.class.orig AuthenticateStep.class --- AuthenticateStep.class.orig 2006-08-17 22:26:07.000000000 +0100 +++ AuthenticateStep.class 2007-02-18 03:05:33.000000000 +0000 @@ -52,7 +52,7 @@ } function loadTemplateData(&$templateData) { - $authenticationDir = '/srv/gallery2'; + $authenticationDir = '/var/www/html/gallery2'; if (isset($_SERVER['DOCUMENT_ROOT']) && preg_match('#^' . $_SERVER['DOCUMENT_ROOT'] . '/(.*)#', $authenticationDir, $matches)) { @@ -62,7 +62,7 @@ if (!$this->isComplete()) { /* Authenticate */ $authenticated = false; - $authFile = '/srv/gallery2/login.txt'; + $authFile = '/var/www/html/gallery2/login.txt'; if (!file_exists($authFile)) { if (!$this->_firstTime) { $templateData['errors'][] = ----------------------------------------- -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland