Plesk

Unable to start Apache web server on a Plesk server: “Unable to open logs” or “Cannot access directory”

Symptoms

Cause

The Apache directory for logfiles is missing.

Resolution

 

For CentOS/RHEL-based distributions

 

  1. Connect to the Plesk server via SSH.

  2. Create the missing Apache directory and set required permissions:

    # mkdir /etc/httpd/logs
    # mkdir /var/log/httpd
    # chown root:root /var/log/httpd
    # chmod 700 /var/log/httpd
    # ln --symbolic /var/log/httpd /etc/httpd/logs

  3. Start the Apache service:

    # service httpd start

 

For Debian/Ubuntu-based distributions

 

  1. Connect to the Plesk server via SSH.

  2. Create the missing Apache directory and set required permissions:

    # mkdir /var/log/apache2
    # chmod 750 /var/log/apache2
    # chown root:adm /var/log/apache2

  3. Start the Apache service:

    # service apache2 start

 

Exit mobile version