Apache Error: (13)Permission denied: access to

If you got this error message in your Apache error log,  you could check if the reason of this is that it folder on which the server is trying get access is readable by Apache user (www-data in Ubuntu by default). In order to test this condition, you could try:

work as root user

sudo -s

#su – www-data

#cd /yourDirctory

#cat NameOfYourFileInYourDirectory

if you get “can’t cd to yourDirectory” or similar is due that Apache user can’t access to the file or directory.

PD:
See error log from console:
#tail -f /var/log/apache2/error.log

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: