Could Not Open Error Log File /usr/local/apache/logs/error_log
Contents |
Forums Hosting Security and Technology Another apache problem..won't start! If this is your first visit, be sure to permission denied httpd could not open error log file check out the FAQ by clicking the link above. You may could not open error log file /etc/httpd/logs/error_log have to register before you can post: click the register link above to proceed. To start viewing could not open configuration file /etc/httpd/conf/httpd.conf permission denied messages, select the forum that you want to visit from the selection below. Results 1 to 15 of 15 Thread: Another apache problem..won't start! Tweet Thread Tools Show
Unable To Open Logs Action 'start' Failed
Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 12-22-2006,02:50 AM #1 sir_han View Profile View Forum Posts View Forum Threads Junior Guru Join Date Jul 2003 Posts 180 Another apache problem..won't start! Just got a new Linux server (CentOS 4.3 w/ Webmin unable to open logs httpd 1.310) and trying to host sites on there. I'm having problem with my apache not starting. Here is the error: [[emailprotected] ~]# service httpd stop Stopping httpd:......................[FAILED] [[emailprotected] ~]# service httpd start Starting httpd: [Thu Dec 21 22:43:16 2006] [warn] NameVirtualHost xx.xx.xxx.xx:0 has no VirtualHosts (2)No such file or directory: httpd: could not open error log file /etc/httpd/logs/error_log. Unable to open logs..........................[FAILED] [[emailprotected] ~]# Here is an example of the virtualhost in the httpd.conf file: NameVirtualHost xx.xx.xxx.xx.xx Plans & Pricing Partners Support Resources Preview Forums Forums Quick Links Search Forums New Posts Search titles unable to open logs apache only Posted by Member: Separate names with a comma. Newer Than: Search this thread only Search this forum only Display results as threads More... Useful Searches Recent Posts Resources Resources Quick Links Search Resources Most Active Authors Latest Reviews Feature Requests Defects Menu Log in Sign up The Community Forums Interact with an http://www.webhostingtalk.com/showthread.php?t=571527 entire community of cPanel & WHM users! cPanel Forums > cPanel & WHM® (for Linux® Servers) > EasyApache > This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More. Trying to restart apache and getting this error Discussion in 'EasyApache' started by webcloaker, https://forums.cpanel.net/threads/trying-to-restart-apache-and-getting-this-error.72370/ Oct 24, 2007. webcloaker Member Joined: Jan 5, 2006 Messages: 15 Likes Received: 0 Trophy Points: 1 Everytime I try to start apache Im getting this [root@files ~]# /usr/local/apache/bin/apachectl start fopen: Read-only file system httpd: could not open error log file /usr/local/apache/logs/error_log. /usr/local/apache/bin/apachectl start: httpd could not be started What am I doing wrong? the server was working perfectly forever we rebooted now this? #1 webcloaker, Oct 24, 2007 AndyReed Well-Known Member PartnerNOC Joined: May 29, 2004 Messages: 2,222 Likes Received: 3 Trophy Points: 38 Location: Minneapolis, MN webcloaker said: ↑ [root@files ~]# /usr/local/apache/bin/apachectl start fopen: Read-only file system httpd: could not open error log file /usr/local/apache/logs/error_log.Click to expand... It sounds that one or more of your partitions was re-mounted Read-only. It might indicate potential drive failure. I suggest you SS to the server and check /var/log/messages, and your partitions to see which partition is affected. FYI, when partitions all of a sudden go to Re 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=2037520 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 Official Flavours Support General Help [SOLVED] Apache: restart results in "can't open log file" error Having an Issue With Posting ? could not Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 2 of 2 Thread: Apache: restart results in "can't open log file" error Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode August 4th, 2012 #1 slipstream180 View Profile View Forum could not open Posts Private Message First Cup of Ubuntu Join Date May 2009 Beans 11 Apache: restart results in "can't open log file" error I was recently tweaking some log file configuration in my /etc/apache2/sites-enabled/my.file file. I also changed some things in my /etc/apache2/apache2.conf file. (Comment out ServerRoot line) Now when I attempt to restart apache I get: Code: (2)No such file or directory: apache2: could not open error log file /etc/apache2/{$APACHE_LOG_DIR}/error.log. Unable to open logs Action 'start' failed. I've tried everything, but can't figure out why apache is prepending /etc/apache2 to the log directory path. (The actual path is the standard /var/log/apache2 dir) Here's my /etc/apache2/envvars file: 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 sane way to get the parsed apache2 config in scripts, some # settings are defined via environment variables and then used in apache2ctl, # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc. export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data export APACHE_PID_FILE=/etc/apache2/run/apache2$SUFFIX.pid export APACHE_RUN_DIR=/etc/apache2/run/apache2$SUFFIX export APACHE_LOCK_DIR=/etc/apache2/lock/apache2$SUFFIX # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.Ah00015: Unable To Open Logs
Starting Httpd: No Listening Sockets Available, Shutting Down