Could Not Open Error Log File /var/log/apache2/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/
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 Stack Overflow Questions Jobs Documentation Tags 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 takes a minute: Sign up Can't http://askubuntu.com/questions/257237/i-always-get-no-such-file-or-directory-apache2-could-not-open-error-log-file start Apache2, could not open error log file up vote 0 down vote favorite 1 Ok, so I 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 http://stackoverflow.com/questions/17097027/cant-start-apache2-could-not-open-error-log-file 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 my
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 https://bugs.launchpad.net/bugs/936216 to Apache Software Foundation Bugzilla. (what does this mean?) Affecting: Apache2 Web https://ubuntuforums.org/showthread.php?t=1639623 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 could not 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 on 2016-10-01. Comment on this change (optional) Email me about changes to this bug report apache2 could not open (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: upstre
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] 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 #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 won't be correct after changing uid unset HOME # for supporting multiple apache2 instances if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE