Could Not Open Error Log File /etc/apache2/$ Apache_log_dir /error.log
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/
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [SOLVED] http://askubuntu.com/questions/257237/i-always-get-no-such-file-or-directory-apache2-could-not-open-error-log-file Starting APACHE Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 6 of 6 Thread: Starting APACHE Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode December 7th, 2010 https://ubuntuforums.org/showthread.php?t=1639623 #1 ingeva View Profile View Forum Posts Private Message Visit Homepage Cookies and cream Join Date Jul 2008 Location Sandvika, Norway Beans 406 DistroXubuntu 10.04 Lucid Lynx Starting APACHE I've defined the APAerror.log as the log file, and this is what it contains after trying to start Apache: [Tue Dec 07 04:02:00 2010] [error] (2)No such file or directory: could not open transfer log file /etc/apache2/${APACHE_LOG_DIR}/other_vhosts_access.log. Unable to open logs The question is: Where do I define APACHE_LOG_DIR? Testing Ubuntu 10.10 32-bit server. (My init scripts work perfectly in 9.10). If it works, FIX IT! (Bill Gates) Adv Reply December 7th, 2010 #2 James78 View Profile View Forum Posts Extra Foam Sugar Free Ubuntu Join Date Sep 2008 BeansHidden! Re: Starting APACHE You define it in /etc/apache2/envvars P.S. Make sure the entries in your configuration files that use ${APACHE_LOG_DIR} look like: Code: ${APACHE_LOG_DIR}/error.log As an entry like the one that follows would be incorrect. Code: /etc/apache2/${APACHE_LOG_DIR}/error.log Default /etc/apache2/envvars file in apache2 (2.2.16) maverick release Code: # envvars - default environment variables for apache2ctl # this
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://stackoverflow.com/questions/15294999/how-can-i-disable-apache2-error-logging policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags http://serverfault.com/questions/488600/apache2-error-log Users Badges Ask Question x 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 could not takes a minute: Sign up How 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 could not open 'start' failed. The Apache error log may have more 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 d
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 Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault 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 Apache2 error log up vote 0 down vote favorite I'm installing Apache2 on Debian Wheezy. After the file's mod /etc/apache2/sites-available/default-ssl, I wrote apache2 for running the service. Sadly, the Linux shell back this string: * (98)Address already in use: make_sock: could not bind to address [::]:443 (2)No such file or directory: apache2: could not open error log file /etc/apache2/${APACHE_LOG_DIR}/error.log. Unable to open logs * How I resolve this problem? Thanks (and sorry for my bad English, I'm italian :P) apache-2.2 web-server logging share|improve this question asked Mar 17 '13 at 11:49 Francesco Guarneri 1 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote How about checking if http is already running because it shows 'Address already in use message' Check ps -ef | grep http Kill PIDs of http if listed kill -9