Apache Could Not Open Error Log File
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the nginx could not open error log file company Business Learn more about hiring developers or posting ads with us Stack Overflow
Httpd Could Not Open Error Log File
Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7
Httpd Could Not Open Error Log File /etc/httpd/logs/error_log
million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Can't start Apache2, could not open error log file up vote 0 down vote favorite 1 Ok, so I
Sql Server Could Not Open Error Log File
have a related question posted here, but I feel like this is a separate issue. Every time I try to run apache2 -k start I get the error (2)No such file or directory: apache2: could not open error log file /etc/apache2/${APACHE_LOG_DIR}/error.log. So after extensive research and browsing through configuration files, I am fairly certain that the path shown in the error message above should simply be ${APACHE_LOG_DIR}/error.log which is the exact path in sql server could not open error log file access is denied my
with Apache Issues related to applications and software problems Post Reply Print view Search Advanced search 13 posts 1 2 Next circuitbear Posts: 9 could not open error log file /etc/httpd/logs/error_log Joined: 2014/07/20 22:06:14 Error 13 AH0035 with Apache Quote Postby circuitbear » could not open configuration file /etc/httpd/conf/httpd.conf permission denied 2014/07/21 23:51:52 I tried to resolve this as best I could through google and going through error logs.Needless to unable to open logs action 'start' failed say, I am getting an error when trying to browse one of my sites from another vm on the same server where I am getting, ForbiddenYou don't have permission to http://stackoverflow.com/questions/17097027/cant-start-apache2-could-not-open-error-log-file access / on this server.I, of course, looking into the problem and found the error logs which stated, Code: Select all[Mon Jul 21 18:46:48.030708 2014] [core:error] [pid 38100] (13)Permission denied: [client 192.168.88.254:56833] AH00035: access to /index.php denied (filesystem path '/srv/www/circuitbearproductions.com/index.php') because search permissions are missing on a component of the pathWhen googling the issue I was told I needed to http://www.centos.org/forums/viewtopic.php?t=47396 make sure that read/execute followed the entire path of the directories. Doing so I checked it with, Code: Select all[root@NewsRunner circuitbearproductions.com]# namei -m /srv/www/circuitbearproductions.com/index.php
f: /srv/www/circuitbearproductions.com/index.php
drwxr-xr-x /
drwxr-xr-x srv
drwxr-xr-x www
drwxr-xr-x circuitbearproductions.com
-rwxr-xr-x index.php
Which tells me that the file should have permissions all the way down. Yet I am still getting the error.Any advice on how to better troubleshoot and look into this problem would be greatly appreciated.Scott Top TrevorH Forum Moderator Posts: 16690 Joined: 2009/09/24 10:40:56 Location: Brighton, UK Re: Error 13 AH0035 with Apache Quote Postby TrevorH » 2014/07/22 00:55:44 That's a non-standard path for the CentOS supplied apache daemon so I suspect you're hitting selinux problems. If you move your content under /var/www then you will be less likely to hit this sort of problem again but if you really have to keep your data under /srv/www then try using semanage to list the current rules for /var/www and duplicate those for /srv/www.An easy way to test if this is an selinux issue or not is to temproarily run setenforce 0 then try again.
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers http://serverfault.com/questions/590012/why-cant-apache-create-log-files or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault http://askubuntu.com/questions/257237/i-always-get-no-such-file-or-directory-apache2-could-not-open-error-log-file is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Why can't apache create log files? up vote 1 down vote favorite I have a simple LAMP stack on CentOS setup. Apache could not is setup with vhosts and each developer has their web files inside their user folder. The directory structure is like so (for the user test): /home/test |_ apache |_ domain1.com |_ backups |_ conf |_ vhost.conf |_ logs |_ errors.log |_ images.log |_ web.log |_ private |_ public The vhost config is in the vhost.conf file. The log files in logs don't exist when the config is first setup, and this throws an error with apache when I run service httpd could not open restart: (13)Permission denied: httpd: could not open error log file /home/test/apache/domain1.com/logs/error.log. Unable to open logs I tried running httpd -X as root and it created the log files (with root ownership/group). I thought it would be a case of making sure that the files are there, with group set as apache and writeable (so I don't have to make the whole directory belong to apache group and writeable), but this confuses me: [root@dev logs]# ls -al total 16 drwxr-xr-x. 2 test developers 4096 Apr 18 21:02 . drwxr-xr-x. 8 test developers 4096 Apr 18 20:25 .. -rw-r--r--. 1 test developers 1818 Apr 18 21:02 error.log -rw-r--r--. 1 test developers 14 Apr 18 20:25 .gitignore -rw-r--r--. 1 test developers 0 Apr 18 20:54 image.log [root@dev logs]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [FAILED] [root@dev logs]# touch web.log [root@dev logs]# chown test:developers web.log [root@dev logs]# service httpd restart Stopping httpd: [FAILED] Starting httpd: [ OK ] I'm confused because apache runs as user apache and shouldn't have write access on the logs, should it? In fact, I can even do this: [root@dev logs]# rm -f ./*.log [root@dev logs]# touch {error.log,image.log,web.log} [root@dev logs]# ls -al total 12 drwxr-xr-x. 2 test developers 4096 Apr 18 21:10 . drwxr-xr-x. 8 test developers 4096 Apr 18 20:25 .. -rw-r--r--. 1 root root 0 Apr 18 21:10 error.log -rw-r--r--. 1 test developers 14 Apr 18 20:25 .gitignore -rw-r--r--. 1 root root 0 Apr 18 21:10 i
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top I always get “No such file or directory: apache2: could not open error log file /etc/apache2/$ apache_log_dir /error.log” how cat I fix this up vote 4 down vote favorite 2 I am using Ubuntu Studio 12.04 and when I am trying to start apache2, I get this error message: No such file or directory: apache2: could not open error log file /etc/apache2/$ apache_log_dir /error.log This meas, I should have a path like this /etc/apache2/var/log/apache2/ but in envvars the log dir is defined as /var/log/apache2$SUFFIX not /etc/apache2/ How can I fix this. apache2 share|improve this question edited Feb 17 '13 at 9:00 Andrea Corbellini 8,89713054 asked Feb 17 '13 at 8:56 user132827 21112 could you please post the envvars file data through pastebin ? –Raja Feb 17 '13 at 9:15 pastebin.com/iHrtUMYq thats my envvars file on pastebin –user132827 Feb 17 '13 at 9:23 What does grep ErrorLog /etc/apache2/sites-enabled/* print? –Florian Diesch Feb 18 '13 at 1:01 I created the path /var/log/apache2 but every time I restart my Pc apapche2 is gone HELP PLEASE D: –user267331 Apr 10 '14 at 5:18 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote Look at your vhosts-files in /etc/apache2/sites-available/