Apache2 Could Not Open Error Log File
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 could not open error log file apache_log_dir might have Meta Discuss the workings and policies of this site About apache2 could not open transfer log file Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Error Can T Open Log File
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
Apache2 Cannot Open Log
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 Ubuntu 14.04 I must create always apache2 log directories before start up vote 0 down vote favorite After PC reboot, apache2 fails to start cause of missing apache2 cannot access directory var log apache2 directory /var/log/apache2/. And php doesn't work because '/var/log/suphp/` folder missing too. So after reboot /var/log/ refreshes or something like that. How i can solve this? What patch, update i should install, and how to avoid this commands after each PC reboot: sudo mkdir /var/log/suphp/ sudo mkdir /var/log/apache2/ Update: It is fresh Ubuntu Trusty install. $ ls -l /var/ total 36 drwxr-xr-x 2 root root 4096 лис 14 03:54 backups drwxr-xr-x 20 root root 4096 лис 13 23:52 cache drwxrwsrwt 2 root whoopsie 4096 лис 14 17:44 crash drwxr-xr-x 79 root root 4096 лис 14 18:32 lib drwxrwsr-x 2 root staff 4096 кві 11 2014 local lrwxrwxrwx 1 root root 9 лис 13 00:49 lock -> /run/lock drwxr-xr-x 7 root root 320 лис 17 08:21 log drwxrwsr-x 2 root mail 4096 лип 23 00:57 mail drwxrwsrwt 2 root whoopsie 4096 лип 23 01:22 metrics drwxr-xr-x 2 root root 4096 лип 23 00:57 opt lrwxrwxrwx 1 root root 4 лис 13 00:49 run -> /run drwxrwxrwt 4 root root
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
Cannot Access Directory Etc Apache2 Apache_log_dir
Us Learn more about Stack Overflow the company Business Learn more about hiring cannot start apache2 developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the ubuntu apache2 error log file location 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 can I disable apache2 error http://askubuntu.com/questions/550069/ubuntu-14-04-i-must-create-always-apache2-log-directories-before-start 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 information. failed! How can I disable error logging http://stackoverflow.com/questions/15294999/how-can-i-disable-apache2-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 Email and Password Post as a guest Name Email Post as a guest Name Email di
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 https://ubuntuforums.org/showthread.php?t=1639623 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 log file 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 could not open 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_CONFDIR}" ] ; then SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}" else SUFFIX= fi # Since there is no s