Apache Error Log No Such File Or Directory
Contents |
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 no such file or directory httpd could not open error log file the workings and policies of this site About Us Learn more about
No Such File Or Directory Couldn T Start Errorlog Process
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions
No Such File Or Directory: Ah02291: Cannot Access Directory '/etc/httpd/logs/' For Main Error Log
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
Ah00014: Configuration Check Failed
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 httpd: could not open error log file 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/
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 httpd: could not open error log file /etc/httpd/logs/error_log. site About Us Learn more about Stack Overflow the company Business Learn apache_log_dir ubuntu more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x cannot access directory '/var/log/apache2/' for main error log Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How http://askubuntu.com/questions/257237/i-always-get-no-such-file-or-directory-apache2-could-not-open-error-log-file can I disable apache2 error logging? up vote 0 down vote favorite In /etc/apache2/apache2.conf I have uncommented the following line: # ErrorLog ${APACHE_LOG_DIR}/error.log Which resulted in the following: serv:/var/log/apache2# /etc/init.d/apache2 restart Restarting web server: apache2 ... waiting (2)No such file or directory: apache2: could not open error log file /etc/apache2/logs/error_log. Unable to open logs Action 'start' failed. The Apache error log may have more http://stackoverflow.com/questions/15294999/how-can-i-disable-apache2-error-logging information. failed! How can I disable error logging of virtual hosts that contain no ErrorLog/CustomLog directive? apache2 share|improve this question asked Mar 8 '13 at 13:25 Richard Rodriguez 3,32983872 Sounds like a question for serverfault.com –JJJ Mar 8 '13 at 13:26 Simply touch /etc/apache2/logs/error_log and you should be fine. Why did you uncomment the ErrorLog directive in apache.conf in the first place if you don't want the logging? –Simon Mar 8 '13 at 13:31 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote accepted As you can see apache can not open log file. In this case you must change /etc/apache2/apache2.conf with /etc/apache2/${APACHE_LOG_DIR}/error.log This resolution it can be see in stating apache ubuntu forum. share|improve this answer answered Mar 8 '13 at 13:32 user1929959 2,2161815 add a comment| up vote 0 down vote Try starting apache using the following command service apache2 start share|improve this answer answered Nov 12 '13 at 6:31 Moontails 6128 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Ema
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 http://serverfault.com/questions/219220/i-just-restarted-apache-and-now-the-server-is-down Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system https://bugs.launchpad.net/bugs/936216 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 error log I just restarted Apache and now the server is down up vote 0 down vote favorite I am pretty terrified right now. I'm scared I'm going to get a call in a couple minutes from a hundred people saying the website doesn't work. I was at the terminal changing some configuration files when I went to restart the server to update the .conf files with this command: /etc/init.d/apache2 graceful After I no such file ran that, none of the websites work and I have no idea what to do. There are about 100 errors I am getting according to the log files. They all begin with "PHP Notice" and most relate to "use of undefined constant" Also, I just spoke with a coworker, describing what I did, and he noticed that there are two installations of apache on the server and that I restarted the one that we don't use. This is what the error log says (assuming it's the correct error log): [Wed Jan 05 11:52:06 2011] [notice] Graceful restart requested, doing restart Warning: DocumentRoot [/u/apps/staging/antetr/current/public/] does not exist [Wed Jan 05 11:52:08 2011] [warn] NameVirtualHost *:80 has no VirtualHosts (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs (2)No such file or directory: apache2: could not open error log file /u/apps/production/madfilmdash/current/log/apache-error.log. Unable to open logs (2)No such file or directory: apache2: could not open error log file /u/apps/production/madfilmdash/current/log/apache-error.log. Unable to open logs (2)No such file or directory: apache2: could not open error log file /u/apps/production/madfilmdash/current/log/apache-error.log. Unable to open logs (2)No such file or directory: apache2: could not open err
Assigned to Milestone Apache2 Web Server Edit Unknown Unknown asf-bugs #43502 You need to log in to change this bug's status. Launchpad couldn't connect to Apache Software Foundation Bugzilla. (what does this mean?) Affecting: Apache2 Web Server Filed here by: Clint Byrum When: 2012-02-22 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Unknown Unknown Assigned to unknown Remote Watch None, the status of the bug is updated manually. None, the status of the bug is updated manually. Apache Software Foundation Bugzilla #43502 URL: The information about this bug in Launchpad is automatically pulled daily from the remote bug. This information was last pulled 15 hours ago. Comment on this change (optional) Email me about changes to this bug report apache2 (Ubuntu) Edit Triaged Low Unassigned Edit You need to log in to change this bug's status. Affecting: apache2 (Ubuntu) Filed here by: Sworddragon When: 2012-02-19 Confirmed: 2012-02-22 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Triaged Low Assigned to Nobody Me Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for series Bug Description I'm using Ubuntu 12.04 dev with apache2 2.2.22-1ubuntu1. If the directory /var/log/apache2 doesn't exist the apache server can't start: sworddragon@ubuntu-vm:~$ sudo /etc/init.d/apache2 start * Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.101 for ServerName (2)No such file or directory: apache2: could not open error log file /var/log/apache2/error.log. Unable to open logs Action 'start' failed. The Apache error log may have more information. I think /etc/init.d/apache2 should check for this directory and create it if it is missing. Tags: upstream Edit Tag help Daniel Manrique (roadmr) wrote on