"403 Forbidden..." when trying to use Configuratio

Outcast-Ranch

Joined: 2004-03-08
Posts: 4
Posted: Mon, 2004-03-08 23:39

I'm a brand new user and Gallery is up and running on my site - but without any configuration by me.

When I try to access **http://www.firchow.com/gallery/setup/index.php** i get the following error:
*******************
Forbidden
You don't have permission to access /gallery/setup/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
******************

I've tried to change permissions for this file and folder but beyond that I'm too novice to figure out what's going on. Here's some of the info

----
Gallery URL (optional but very useful): www.firchow.com/gallery

Gallery version: 1.4.2

Apache version: 1.3.29 (Unix)

PHP version (don't just say PHP 4, please): 4.3.4

Graphics Toolkit:

Operating system: Linux

Web browser/version (if applicable):

Additionally: I installed using Fantastico

And here's the error from my log: [error] [client 64.70.24.110] File does not exist:

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-03-08 23:41

Outcast-Ranch, you need to chmod the setup/ dir 755, and .htaccess and config.php 644 before entering setup.

 
Outcast-Ranch

Joined: 2004-03-08
Posts: 4
Posted: Tue, 2004-03-09 00:30

Okay, chmods are set as you suggested, now I get this:

****************************

Warning: Unknown(./php_value_ok.php): failed to open stream: Permission denied in Unknown on line 0

Warning: (null)(): Failed opening './php_value_ok.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0

****************************

God I hate being a country boy sometimes...... If you need somethin' doctored or castrated or docked or herded I'm your guy. If you need 'puter stuff fixed, best call one of them smart 'uns.

If this stuff is in a FAQ, please tell me. I've looked but have not found what I need.

Thanks for your help.

Outcast

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2004-03-09 00:31

Make sure that the files inside the setup/ directory are also chmodded 0644..

 
Outcast-Ranch

Joined: 2004-03-08
Posts: 4
Posted: Tue, 2004-03-09 00:46

.htaccess in /setup is 0644. There is no config.php in there.

Will I perhaps be better off uninstalling, reinstalling, then chmoding these files? I don't think I've changed anything other than what you have suggested, but who knows.....?

Just have a feeling it's something simple that I'm missing.

Outcast

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2004-03-09 00:48

No, all the files in setup/ need to be 0644

 
Outcast-Ranch

Joined: 2004-03-08
Posts: 4
Posted: Tue, 2004-03-09 00:57

Well I'll be dadgummed, Andrew!

That worked...... Thanks so much for guiding me through this. I owe you a beer.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2004-03-09 02:34

No problem :)

 
nakiwarai

Joined: 2004-04-09
Posts: 3
Posted: Fri, 2004-04-09 00:42

Erm, I know I'm posting awfully late, but. . . I did all of this stuff (I, too, installed off of Fantastico), but uh. . . I still get forbidden errors.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2004-04-09 01:12

The setup/ directory is chmodded 0755 ? Try deleting the .htaccess file in the setup/ directory if so.

 
nakiwarai

Joined: 2004-04-09
Posts: 3
Posted: Fri, 2004-04-09 01:30

Did as such. Still receive the forbidden error. :\

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2004-04-09 01:35

Check the Apache error log. I'm sure this is chmod/permissions related, and that will probably confirm the suspicions and give a little more detail.

 
jaredm

Joined: 2004-04-09
Posts: 2
Posted: Fri, 2004-04-09 17:22

I get the same error when trying to upgrade to 1.4.2 from 1.3.4-pl1.

I set the old version to configure mode running sh configure.sh. I am able to run the configure wizard fine the first time, it reports it was run succesfully. The wizard says to set back to secure mode, so I run sh secure.sh. I get 403 errors from this point on and am not able to get back into configure mode again. My site information is below, although I reverted back to a save of the orginal 1.3.4 setup.

----
Gallery URL (optional but very useful): www.myzinnia.com/gallery

Gallery version: 1.4.2 (upgrading from 1.3.4-pl1)

Apache version: unknown

PHP version (don't just say PHP 4, please): 4.3.4

Operating system: openBSD

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sat, 2004-04-10 20:33

Erm, yes, this is intended. If gallery is in secure mode, you're not supposed to be able to get to the configuration wizard. Anyway, the site looks fine now, eh?

 
jaredm

Joined: 2004-04-09
Posts: 2
Posted: Sun, 2004-04-11 03:08

I finally figured out my problem. I deleted the .htaccess in the setup directory as listed in some other threads and everything went fine.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2004-04-11 17:04

This is/was FAQ Gallery:c.1

 
musicobsession

Joined: 2004-04-11
Posts: 18
Posted: Mon, 2004-04-12 06:33

I am having a similar problem... whenever I try to access any of my files on my site, I receive this error:

HTTP 403 - The Default index.html file could not be found
The page you are looking for might have been removed,
had its name changed, or is temporarily unavailable.

Which is dumb, cause it's there... Anyway, I have changed all the Directory things in httpd.conf to AllowOverride Options FileInfo, but apparently this isn't helping.

I'd delete .htaccess from the setup/ folder on my site, but... it doesn't show up..... what the hell?

*edit* my setup/ folder is chmod 755 and the files in it 666

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-04-12 07:42

musicobsession, does it work if you add /index.php to your Gallery url?

 
musicobsession

Joined: 2004-04-11
Posts: 18
Posted: Mon, 2004-04-12 13:57

http://www.allaboutthemusic.net/gallery/index.php shows up, as you can see, but anything in the setup/ folder does not...

http://www.allaboutthemusic.net/gallery/setup/index.php

it doesn't make sense why it's telling me the default index.html file isn't there, when I'm typing in index.php... It's probably that damn .htaccess, but, lke I said, it's not showing up in my FTP for me to delete it out of there.... *boggled*