"pcfg_openfile: unable to check htaccess file, ensure it is readable" after moving to new server

Doenerbude

Joined: 2007-08-18
Posts: 2
Posted: Sat, 2007-08-18 19:36

Hi!

Today I moved my gallery 1.5.7 to a new server.

I can't load any content in /css and /images directory, but the content of my albums works well.

The error message in apache error.log is

[Sat Aug 18 21:21:42 2007] [crit] [client xx.xx.xx.xx] (13)Permission denied: /var/www/xxx/www/images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Sat Aug 18 21:21:42 2007] [crit] [client xx.xx.xx.xx] (13)Permission denied: /var/www/xxx/www/html_wrap/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://xxx.ws/
[Sat Aug 18 21:21:43 2007] [crit] [client xx.xx.xx.xx] (13)Permission denied: /var/www/xxx/www/css/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://xxx.ws/

There is no .htaccess-File in these directories!

Searching the forum tells me to chmod the .htaccess file to 0777, but this makes no differences. CHMOD for the other files is 0750 except "albums" directory, which is 0777.

What should I do?

PS: Sorry for the bad english. If you speak german this would be much nicer :-)

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.5.7
Apache version: 2.x
PHP version (don't just say PHP 4, please): 5.2.3-0.dotdeb.1 via suPHP
Graphics Toolkit: imagemagick, netpbm
Operating system: debian 4.0 etch
Web browser/version (if applicable): any

 
Doenerbude

Joined: 2007-08-18
Posts: 2
Posted: Sun, 2007-08-19 16:43

Resolved!

I was forced to set CHMOD 777 to /images and /css directory.

Any idea why? On the old server (Apache 1.3x) it works well with the other rights.

 
qrees

Joined: 2006-08-25
Posts: 3
Posted: Thu, 2007-10-18 07:55

I had similar problem but only when mod-rewrite was activated. Changing permissions to 755 for folders: images, modules and themes solved the problem.