Etc Httpd Logs Error Log Unable To Open Logs
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 the workings and policies of this site httpd unable to open logs centos About Us Learn more about Stack Overflow the company Business Learn more about unable to open logs httpd start hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is permission denied: ah00091: httpd: could not open error log file 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 could not open error log file /etc/httpd/logs/error_log answers are voted up and rise to the top “Unable to open logs” error when I try to restart Apache up vote 2 down vote favorite 1 When I try to start apache I get the following error root@server11362:~# sudo /etc/init.d/apache2 restart Restarting web server apache2 (98)Address already in use: make_sock: could not bind to address 111.90.150.93:80 no listening sockets available, shutting down Unable to open logs
Unable To Open Logs Apache
Action 'start' failed. The Apache error log may have more information. In fact the apache log contains no more information. netstat -tulpn returns the following Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1098/mysqld tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1414/redis-server tcp 0 0 111.90.150.93:53 0.0.0.0:* LISTEN 1068/named tcp 0 0 111.90.150.92:53 0.0.0.0:* LISTEN 1068/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1068/named tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1194/postgres tcp 0 0 0.0.0.0:44888 0.0.0.0:* LISTEN 845/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1395/master tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 1068/named tcp 0 0 0.0.0.0:6081 0.0.0.0:* LISTEN 1435/varnishd tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN 1434/varnishd tcp6 0 0 :::53 :::* LISTEN 1068/named tcp6 0 0 :::44888 :::* LISTEN 845/sshd tcp6 0 0 :::25 :::* LISTEN 1395/master tcp6 0 0 ::1:953 :::* LISTEN 1068/named tcp6 0 0 :::6081 :::* LISTEN 1435/varnishd udp 0 0 111.90.150.93:53 0.0.0.0:* 1068/named udp 0 0 111.90.150.92:53 0.0.0.0:* 1068/named udp 0 0 127.0.0.1:53 0.0.0.0:* 1068/named udp6 0 0 :::53 There is nothing on port 80 but I still cannot restart networking apache2 log share|improve this question edited Mar 23 '14 at 19:47 Radu R
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
Apache Unable To Open Logs Windows
About Us Learn more about Stack Overflow the company Business Learn more about unable to open logs action 'start' failed hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss starting httpd: no listening sockets available, shutting down 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 Apache Server: Editing http://askubuntu.com/questions/438209/unable-to-open-logs-error-when-i-try-to-restart-apache httpd.conf file (permission denied) up vote 2 down vote favorite So I just recently downloaded Apache server with all of its files (httpd, apr, apr-util, pcre) following the instructions dictated here: http://httpd.apache.org/docs/2.4/install.html However, after set-up, when I tried to start my Apache server, which is located in my usr/local/bin/, I was prompted with this message: [allen@allen-lnx ~]$ /usr/local/bin/apachectl start (13)Permission denied: AH00091: httpd: could not http://stackoverflow.com/questions/17127553/apache-server-editing-httpd-conf-file-permission-denied open error log file /usr/local/logs/error_log. AH00015: Unable to open logs After some research, I have found that I need to edit my httpd.conf file, which I did so earlier to allow for the correct ServerName and Listen options. However, I am unsure as to how to edit my conf file to allow for access to the "logs" directory. Notably, the command will run when I use the "sudo" command, but I would prefer to not always use that since it seems like a work around. Any help would appreciated. Thanks! Edit: I've actually noticed that I may have two httpd.conf files, which is proving to be a little troublesome. The other one is located in my root /etc/ directory (etc/httpd/conf/httpd.conf). I think my modified question now is... which one should I be keeping? Is the /etc/ version the one that is built in, as indicated by faff's comment below? Current Solution: I figured I would just accept the fact that I need to use sudo when editing this file since I need to be root. I might change it later so that I'm always running as root, but for now, sudo will suffice.
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 http://serverfault.com/questions/590012/why-cant-apache-create-log-files 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 http://www.linuxquestions.org/questions/linux-server-73/apache-permission-denied-error-log-793102/ 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 Why can't apache create log files? up vote 1 down vote unable to favorite I have a simple LAMP stack on CentOS setup. Apache is setup with vhosts and each developer has their web files inside their user folder. The directory structure is like so (for the user test): /home/test |_ apache |_ domain1.com |_ backups |_ conf |_ vhost.conf |_ logs |_ errors.log |_ images.log |_ web.log |_ private |_ public The vhost config is in the vhost.conf file. The log files in logs don't exist when the config unable to open is first setup, and this throws an error with apache when I run service httpd restart: (13)Permission denied: httpd: could not open error log file /home/test/apache/domain1.com/logs/error.log. Unable to open logs I tried running httpd -X as root and it created the log files (with root ownership/group). I thought it would be a case of making sure that the files are there, with group set as apache and writeable (so I don't have to make the whole directory belong to apache group and writeable), but this confuses me: [root@dev logs]# ls -al total 16 drwxr-xr-x. 2 test developers 4096 Apr 18 21:02 . drwxr-xr-x. 8 test developers 4096 Apr 18 20:25 .. -rw-r--r--. 1 test developers 1818 Apr 18 21:02 error.log -rw-r--r--. 1 test developers 14 Apr 18 20:25 .gitignore -rw-r--r--. 1 test developers 0 Apr 18 20:54 image.log [root@dev logs]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [FAILED] [root@dev logs]# touch web.log [root@dev logs]# chown test:developers web.log [root@dev logs]# service httpd restart Stopping httpd: [FAILED] Starting httpd: [ OK ] I'm confused because apache runs as user apache and shouldn't have write access on the logs, should it? In fact, I can even do this: [root@dev logs]# rm -f ./*.log [root@dev logs]# touch {error.log,image.log,web.log} [root@dev logs]# ls -al total 12 drwxr-xr-x. 2 test developers 4096 Apr 18 21:10 . drwxr-xr-x. 8 test developers 40
Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Server apache - permission denied - error log User Name Remember Me? Password Linux - Server This forum is for the discussion of Linux Software used in a server related context. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Page 1 of 2 1 2 > Search this Thread 03-04-2010, 04:08 AM #1 m3phisto Member Registered: Mar 2010 Posts: 47 Rep: apache - permission denied - error log hi there. i'm new to linux server and just trying to configurate an apache server on my Fedora 12 when is start the httpd service i get the following massage: Code: (13)Permission denied: httpd: could not open error log file /www/mephisto.at/logs/error_log. Unable to open logs here are the permissions of the VHost Directory: Code: [root@fedora /]# ls -ld