[PROLEM SOLVED] Config Wizard Requires .htaccess 777

tphant0m

Joined: 2005-02-08
Posts: 2
Posted: Wed, 2005-02-09 00:01

Hi,

Im trying to upgrade my Gallery from 1.4.2 to gallery-1.4.4-pl4

so far i have made it all clear thru to Gallery Configuration Wizard: Step 4

which gives me the error 'Error: You must create an empty file named .htaccess and chmod it 777 before proceeding. See [documentation] for more details.'

my gallery files are located in /usr/share/gallery (so i placed a .htaccess in there chmod 777) clicked the 'Refresh' button on the gallery configurating wizard page, and it keeps re-apearing.

just to make sure i added a .htaccess to /var/www/albums

neither of these did the trick.

i had a search on the forums, people have said 'just place one in /gallery' in this case it isnt doing the trick, and i am unsure why..

if anyone can help it would be much apreicated :)
----

Gallery URL (optional but very useful): -
Gallery version: gallery-1.4.4-pl4
Apache version: Apache/1.3.33 (Debian GNU/Linux)
PHP version (don't just say PHP 4, please): 4.3.10-2
Graphics Toolkit: ImageMagick 5.4.4
Operating system: Debian Woody
Web browser/version (if applicable): -

 
tphant0m

Joined: 2005-02-08
Posts: 2
Posted: Wed, 2005-02-09 01:11

ahh ha!

seems i managed to find the problem.

.... CONFIRM.INC .....
foreach ($outfile_list as $outfile) {
if (!fs_file_exists(GALLERY_CONFDIR . "/$outfile")) {
$error++;
$view .= "<p>" . gallery_error(sprintf(_("You must create an empty file named %s and chmod it 777 before proceeding. See %s for more details."), "<i><b>$outfile</b></i>", $docs)) . "</p>\n";

.............

Ok, that is our error message.. its looking for it in GALLERY_CONFDIR

and in

util.php: define ("GALLERY_CONFDIR", "/etc/gallery");

so the location .htaccess must be in. is /etc/gallery :)

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2005-02-09 12:40

Hello,

do you run the debian package ? or installed from tarball ?

Jens