Solved

Apache Error Log - [Errno 13] Permission denied:

Posted on 2009-03-29
5
1,073 Views
Last Modified: 2012-05-06
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?

0
Comment
Question by:dmontgom
  • 3
5 Comments
 
LVL 41

Expert Comment

by:HonorGod
ID: 24012821
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
 
LVL 41

Accepted Solution

by:
HonorGod earned 175 total points
ID: 24012824
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
 

Author Comment

by:dmontgom
ID: 24016684
Hi,

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

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

Thanks
0
 
LVL 9

Assisted Solution

by:unassassinable
unassassinable earned 75 total points
ID: 24057187
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
 
LVL 41

Expert Comment

by:HonorGod
ID: 24305521
Thanks for the grade & points.  Sorry I missed the follow up question.

Good luck & have  a great day
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP Curl Multi-exec 13 72
PHP Upload using Uploadify 4 108
Configure a Local PHP Interpreter for Phpstorm 2 330
Do you know any Office editor web for IIS or Apache web server)??? 10 99
In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question