Solved

Apache Error Log - [Errno 13] Permission denied:

Posted on 2009-03-29
5
1,065 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hosting a website using port 443 SSL CA using Wampserver 2 How to: 6 28
Apache SSL and mod_rewrite not working 8 120
Problem to go to page 12 81
PHP Register global 21 76
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…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
A short film showing how OnPage and Connectwise integration works.

937 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

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now