Article ID: 121495, created on May 8, 2014, last review on May 10, 2014

  • Applies to:
  • Plesk Automation 11.1

Symptoms

Apache does not start: No such file or directory: could not create /etc/httpd/run/httpd.pid

    # less /var/log/httpd/error_log
    [error] (2)No such file or directory: could not create /etc/httpd/run/httpd.pid
    [error] httpd: could not log pid to file /etc/httpd/run/httpd.pid

Cause

Absent directory "/etc/httpd/run".

Resolution

  1. Check if "/etc/httpd/run/" exists:

    [root@apacvhe]# ls -la /etc/httpd/run
    lrwxrwxrwx. 1 root root 19 Sep 14  2013 /etc/httpd/run -> ../../var/run/httpd
    
  2. Make sure that directory "/etc/httpd/run" exists. If it is absent on the server, create it manually:

    [root@apache]# mkdir /var/run/httpd
    [root@apache]# chown root:apache /var/run/httpd
    [root@apache]# chmod 710 /var/run/httpd 
    

Search Words

saralefesigorta.com is not working

c1ecc6010feff26cb42d1d14a7881dd6 e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF