.htaccess permissions problem on install

kevinz

Joined: 2004-10-14
Posts: 2
Posted: Fri, 2004-10-15 14:17

I've tried to follow the directions on Unix Shell install, but have hit a problem. When I access http://www.myserver.com/gallary/setup/index.php, I get a 403 forbidden error. The web log shows:
kevinz@www:/var/www/coreinitiative/htdocs/gallery$ tail ../../logs/error_log
[Fri Oct 15 09:39:58 2004] [crit] [client 162.129.225.189] (13)Permission denied: /usr/share/gallery/setup/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
kevinz@www:/var/www/coreinitiative/htdocs/gallery$

Yet, I think it's correct:
kevinz@www:/var/www/coreinitiative/htdocs/gallery$ ls -la
total 972
drwxr-xr-x 22 kevinz wwwadmin 4096 Oct 15 09:38 .
drwxrwxr-x 27 rmcpeak wwwadmin 4096 Oct 15 09:36 ..
-rw-rw-rw- 1 kevinz wwwadmin 0 Oct 15 09:37 .htaccess

This is a Debian distro; Apache runs as www-data. It shares a group with wwwadmin:
kevinz@www:/var/www/coreinitiative/htdocs/gallery$ id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),65535(wwwadmin)
kevinz@www:/var/www/coreinitiative/htdocs/gallery$

I'm stumped at this point. I tried to search the archives of this group with 'forbidden' and 'permisisons' and got lots of returns, indicating to me that this is a frequent problem, but I checked the proposed solutions, and they were already in place.

Note: I was able to run the configuration wizard from the command line, with "cd setup/; php4 index.php" without any problems to fill in the information at the bottom of this message.

Any suggestions or advice? Thanks for your help.

-Kevin
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.4.4-pl2
Apache version: NOTE: Doesn't seem to be supplied by Configuration Wizard.
www:/etc/apache# apache -v
Server version: Apache/1.3.26 (Unix) Debian GNU/Linux
Server built: Jun 24 2004 22:00:30
www:/etc/apache#
PHP version (don't just say PHP 4, please): PHP v4.1.2 is OK.
Graphics Toolkit:
Operating system:
www:/etc/apache# uname -a
Linux www.jhuccp.org 2.4.18-1-686-smp #1 SMP Wed Apr 14 18:42:49 UTC 2004 i686 unknown
www:/etc/apache# cat /etc/issue
Debian GNU/\s 3.0 \n \l

www:/etc/apache#

Web browser/version (if applicable):

 
kevinz

Joined: 2004-10-14
Posts: 2
Posted: Tue, 2004-10-19 12:58

Is anyone else experiencing this problem on install?

-Kevin

 
foffo
foffo's picture

Joined: 2003-03-06
Posts: 660
Posted: Tue, 2004-10-19 13:42

kevinz, you might check out this post

Also, I did a search for pcfg_openfile on google, And I found many similar problems. It was hard to find a definite solution, but several pointed in the direction of the configuration of Apache in combination with rights on files and directories...

See here for example.

Sorry I can't be of more help...