Error Retrieving Pid File /var/run/apache2.pid
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 (13)Permission denied: Error retrieving pid file run/httpd.pid up vote 3 down vote favorite I have installed httpd-2.2.29 using commands: ./configure --prefix=/home/user/httpd make make install I configured httpd.conf and tried start apache: apachectl start. But got following error: (13)Permission denied: Error retrieving pid file run/httpd.pid Remove it before continuing if it is corrupted. I tried to find file httpd.pid, but where is no such file. Could someone help me resolve such issue? apache redhat share|improve this question asked Jan 9 '15 at 14:23 khris 955102861 add a comment| 2 Answers 2 active oldest votes up vote 7 down vote Did you try and start apache as a non privileged user? Permission denied suggests that you did. Try this instead: $ sudo apachectl start share|improve this answer answered Jan 10 '15 at 0:00 Eilidh Fridlington 305128 add a comment| up vote 0 down vote I use: $ sudo service httpd start In the place of start you can put stop, restart, and etc. share|improve this answer answered Sep 13 at 20:49 CodeBroJohn 1539 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 discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged apache redhat or ask your own question. asked 1 year ago viewed 4261 times active 1 month ago Related 36Apache 13 permission denied in user's home directory0Python - egg cache extraction error - permission denied - Apache not seeing SetEnv?0Changing Apache's default page to PHP0installation error apache httpd 2.4.9 perl0installation error apache httpd 2.4.90Apache Permission Denied (Permissions 755)0move_uploaded_file gives “failed to open stream: Permission denied in /var/
Sign in Pricing Blog Support Search GitHub This repository Watch 81 Star 497 Fork 328 docker-library/php Code Issues 47 Pull requests 7 Projects 0 Pulse Graphs New issue Old PID not allow container to restart #53 Closed gdvyas opened this Issue Nov 27, 2014 · 11 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 4 participants gdvyas commented Nov 27, 2014 I am using docker image php:5.3.29-apache on Ubuntu 14.04.1 ( docker http://stackoverflow.com/questions/27862664/13permission-denied-error-retrieving-pid-file-run-httpd-pid 1.3.2) The Docker Container created from this image is not able to start when it is not exited cleanly. So, I have to remove the below file manually. sudo rm /var/lib/docker/aufs/diff/"CONTAINER ID"/run/apache2/apache2.pid Similar problem was observed when created my own image for Nagios Monitor. I tried to clean up using command "/usr/sbin/apache2 -D FOREGROUND -k restart" in supervised md5 https://github.com/docker-library/php/issues/53 commented Nov 27, 2014 I've run into this a few times myself, particularly when I've let the containers be stopped by running sudo stop docker (either directly or during a reboot). I just looked through how the init scripts and shutdown work under Ubuntu/Debian and it looks like everything just tries to shut down too fast and that all the containers are shut down in series. If you've got one container that stops slowly (ahem, memcached...), then you can easily run into the situation where your containers are not stopped cleanly. I've generally been fortunate enough in most cases to be able to just delete the container and recreate it from scratch, but that can be a hard pill to swallow if all you've done is try to do a graceful reboot. md5 commented Nov 27, 2014 BTW, I also looked at the httpd source code and found that there's no good way to make Apache deal with this situation itself (cf. https://github.com/apache/httpd/blob/2.4.x/server/mpm_unix.c#L768) docker-library member tianon commented Dec 1, 2014 Can Apache be configured t
litespeed (4) Magento (1) Mail Servers (20) Exim (17) MailEnable (1) postfix (1) Monitoring Tools (6) Nagios (2) Nginx (1) MySQL (28) Php (12) Plesk (16) Raid (5) Scripts (3) ssh https://linuxtechme.wordpress.com/2013/01/24/apache-error-error-retrieving-pid-file-logshttpd-pid/ (2) Virtuozzo (14) Webmin (3) Wordpress (3) Top Posts & Pages Enable HTTP compression & Leverage browser caching on a Plesk ( Linux ) server. How to create an Email Account on Webmin Control panel. Troubleshoot Spamming in exim How to check Tomcat and Java version Sorry, the domain is already pointed to an IP address that error retrieving does not appear to use DNS servers associated with this server. Table './mysql/user' is marked as crashed and should be repaired WHM/cPanel Hardening & Security What is Difference between event, worker and prefork python3.3 + except KeyboardInterrupt, e: ^ SyntaxError: invalid syntax Nagios Directory Structure Pages About Rootkits Server-Security Tips Security-Enhanced Linux SELinux WHM/cPanel Hardening &Security Recent error retrieving pid Posts Basic Git commands is_script_stuck script to kill or notify incPanel Reserved blocks inlinux Understanding about superblock and how to recover it from a corruptedpartition. What is VirtualMemory How to Find Out if a Drive is SSD orHDD How to install or uninstall Nginx Admin Plugin for cPanel/WHMservers. netstat states Boot Process In short how an SSL works between web servers andbrowsers. Follow Blog via Email Enter your email address to follow this blog and receive notifications of new posts by email. Join 718 other followers Blog Stats 195,312 hits January 2013 S M T W T F S « Dec Mar » 12345 6789101112 13141516171819 20212223242526 2728293031 Apache cPanel Exim Firewall ftp Kerberos Ldap Linux litespeed Magento MailEnable Mail Servers Monitoring Tools MySQL Nagios Nginx Php Plesk postfix Raid Scripts ssh Virtuozzo Webmin Wordpress Apache error "Error retrieving pid file logs/httpd.pid" Posted: 4p in Apache 2 Unable to start Apache service on cPanel server. If you are getting the following error while trying to restart t