Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jun 05, 2013 3:31 am 
Offline
Junior Member

Joined: Mon Apr 11, 2011 9:49 pm
Posts: 49
So I moved some server files from my old server to a new server. And now I keep getting these errors:

"(13)Permission denied: httpd: could not open error log file /path/to/logs/error.log.
Unable to open logs"

I changed permissions to root, no go.
I changed permissions to apache, no go.
I changed permissions to 1777, no go.
I commented out the error.log files.

That's when it fails on access.log;

"[Wed Jun 05 00:13:03 2013] [error] (13)Permission denied: could not open transfer log file /path/to/logs/access.log."

I'm using;
CentOS release 6.4 (Final)
Apache/2.2.15 (Unix)

The old server had 32 bit (i686 i386), the new one is on 64 bit (x86_64).


Top
   
PostPosted: Wed Jun 05, 2013 12:58 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
Sounds like you haven't granted the website permission to access "/path/to/logs/" on your new server.

Check that "/path/to/logs/" is part of open_basedir in the VirtualHost conf file for your website.


MSJ


Top
   
PostPosted: Wed Jun 05, 2013 6:26 pm 
Offline
Junior Member

Joined: Mon Apr 11, 2011 9:49 pm
Posts: 49
Not sure I'm following. What do you mean when you say open_basedir? And from my understanding that has to deal with php, and not apache starting up a service with files that are correctly owned by the apache user. (?)


Top
   
PostPosted: Wed Jun 05, 2013 6:47 pm 
Offline
Junior Member

Joined: Mon Apr 11, 2011 9:49 pm
Posts: 49
It was selinux. Also my iptables was causing some issues. I think it's all fixed now...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group