/gallery2 404

Ctwizzy

Joined: 2006-09-06
Posts: 13
Posted: Sat, 2006-09-09 04:47

I unzipped the gallery2 archive to the root of my server "/var/www/gallery2" and the next step of installation says to browse to /gallery2/install/ when I do this I get a 404. I read around about remote module, but even from the host machine I am getting this error, though the folder and all files exist as I can see them from the root IP...

If anyone knows the fix to this please let me know.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2006-09-09 06:31

try /gallery2/install/index.php , in case your webserver isn't setup to use index.php as a directory index.

 
Ctwizzy

Joined: 2006-09-06
Posts: 13
Posted: Sat, 2006-09-09 12:40

Not Found

The requested URL /gallery2/install/index.php was not found on this server.

I cant browse the gallery2 folder at all, I can see it from root but trying to go in gives a 404.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-09-09 12:54

does any other web application work on that server?

or does any static .html page work?

 
Ctwizzy

Joined: 2006-09-06
Posts: 13
Posted: Sat, 2006-09-09 12:59

Yes I am using Serendipity as my blogging page and I can browse to it no problem, and any other folder I create in /var/www. But gallery2 stops me when I try to enter it. Permissions on the gallery2 folder are 775 so it should be fine.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-09-09 13:44

i assume serend. is installed in /var/www/ and there's a /var/www/index.php from serend.
well, if gallery2/ install/ and index.php are all 755 and you can't browse to gallery2/install/index.php, then there's something wrong with the index.php file (corrupted) or your php / server config is flawed.

 
Ctwizzy

Joined: 2006-09-06
Posts: 13
Posted: Sat, 2006-09-09 13:52

seren is installed in /var/www, I access it via: /var/www/serendipity (/var/www/serendipity/index.php). There is no index.php in /var/www atm, when I browse to it just a dir structure.

I cant browse into the gallery2 folder at all to access anything from a browser, but any other folder created etc all work fine. This is blocking me from installing gallery2, as all I have done now is checked out the code but am yet to install as I cant.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-09-09 14:32

please confirm that:
- /var/www/serendipity/index.php has permissions 755
- /var/www/serendipity/ has permissions 755
- /var/www/gallery2/ has permissions 755
- /var/www/gallery2/install/ has permissions 755
- /var/www/gallery2/install/index.php has permissions 755

how did you install serendipity? maybe /var/www/ is just a apache alias or the real apache document root is somewhere else and one needs to add gallery2 as a alias.

 
Ctwizzy

Joined: 2006-09-06
Posts: 13
Posted: Sat, 2006-09-09 19:49

/var/www/ [777]
/var/www/apache2-default/ [755]
/var/www/Files/ [755]
/var/www/g2data/ [777]
/var/www/test [777]
/var/www/serendipity [777]
/var/www/serendipity/index.php [644]
/var/www/info.php [644]

So all the above is browsable from the web server.

But when I type in http://##.##.##.##/gallery2 I get: 404

 
Ctwizzy

Joined: 2006-09-06
Posts: 13
Posted: Sat, 2006-09-09 19:50

Ok so I deleted the gallery2 folder and did this:

and I now have
/var/www/gallery [755]
And now it works... I have no clue why so if you do please let me know as Im new to all this and want to learn as much as I can.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-09-09 21:02

well, nothing to fix now, good.

for the record:
you never confirmed the permissions of
- /var/www/gallery2/ has permissions 755
- /var/www/gallery2/install/ has permissions 755
- /var/www/gallery2/install/index.php has permissions 755

but that doesn't matter now.