Apache Error Log - [Errno 13] Permission denied:

I created a folder in /var/www called google.  THis is where my adwords api code is.
When I try to run a python web service that call google python api I get this message in the error logs...

 stream = open(filename, mode)
IOError
 [Errno 13] Permission denied: '/var/www/google/development/awapi_python_lib_4.3.1/logs/soap_xml.log'

II did a chmod 755 for /var/www/google and did not workk
I added <Directory /var/www/google/>
   Options FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>
 to my http.conf file and it did not work.

What do I do?

dmontgomAsked:
Who is Participating?
 
HonorGodConnect With a Mentor Software EngineerCommented:
Changing the access permissions to /var/www/google does not propagate down the directory hierarchy (unless, of course, the command that you issued is told to do so).

So, please check the access permissions for
/var/www/google/development/awapi_python_lib_4.3.1/logs
0
 
HonorGodSoftware EngineerCommented:
It is not /var/www/google for which access is needed, it is
/var/www/google/development/awapi_python_lib_4.3.1/logs
0
 
dmontgomAuthor Commented:
Hi,

Thanks...what is the command to change the perrmissions?

is it chmod -R 755  var/www/google/ ?

Thanks
0
 
unassassinableConnect With a Mentor Commented:
It would be best to only assign the permission for the folder/file that is needed...not all subsequent folders/files.  

chmod 755 /var/www/google/development/awapi_python_lib_4.3.1/logs   should take care of it
0
 
HonorGodSoftware EngineerCommented:
Thanks for the grade & points.  Sorry I missed the follow up question.

Good luck & have  a great day
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.