• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Apache doesn't start

  • Thread starter Deleted member 188409
  • Start date
D

Deleted member 188409

Guest
Hello together,

since today I have a problem with my server and Plesk Onyx. (I am not quit sure that is a realy a problem of Plesk... but anyway...)

I have to resart my Plesk and after that I see, webserver (Apache) doesn't start. I have try to start the server via Plesk manually without an solution. I have check the error Message via SSH.

Code:
root@XXX:/etc/apache2# apache2ctl configtest
AH00112: Warning: DocumentRoot [/var/www/vhosts/XXXXX.de/httpdocs] does not exist
AH00526: Syntax error on line 36 of /etc/apache2/plesk.conf.d/ip_default/XXXXX.de.conf:
SSLCertificateFile: file '/opt/psa/var/certificates/cert5YIRy' does not exist or is empty
Action 'configtest' failed.
The Apache error log may have more information.

Moreover my Plesk says me the same error Message in a red error-message if I am logged in Backend.

Is anybody able to help me?

FYI: XXXXX is and old domain/folder, maybe I have installed the domain/folder as I am starting with my server. But today I dont use it anymore and it is (server are right) allready deleted (not in the last 3 days form my site - I have only checked is the folder realy unavailable).

PS: Sorry for my mad english. :( Hopefully you understand me and my problem.
 
Go to
/opt/psa/var/certificates
and copy any of the existing certificates to cert5YIRy. Then restart again.
It will be a wrong certificate, but Apache will start with it.
 
Thanks for your fast help.
I have create the folder and copy all certificates from
/opt/psa/var/certificates/
into
/opt/psa/var/certificates/cert5YIRy
but nothing changes.

Code:
root@XXX:/opt/psa/var/certificates/cert5YIRy# apache2ctl configtest
AH00112: Warning: DocumentRoot [/var/www/vhosts/XXXXX.de/httpdocs] does not exist
AH00526: Syntax error on line 36 of /etc/apache2/plesk.conf.d/ip_default/XXXXX.de.conf:
SSLCertificateFile: file '/opt/psa/var/certificates/cert5YIRy' does not exist or is empty
Action 'configtest' failed.
The Apache error log may have more information.

Any Idea?
Maybe I understand you wrong: Server was restart, did you mean another restart like apache?
 
Last edited by a moderator:
"copy any" meant "copy any single certificate of your choice", it did not mean "copy all". It means copying a single existing certificate file into the file cert5YIRy. If you have created a new subdirectory named cert5YIRy, that is not what it meant. When you copy an existing certificate into the filename given in the error message, the error "does not exist" can no longer occur.
 
Ahh, okay. Sorry.
I get a new error message regarding an other certificate and I have duplicate the file like the way before.
I have start the apache Service with
root@XXX:~# sudo service apache2 start
and get no error message.
Code:
root@XXX:~# apache2ctl configtest
AH00112: Warning: DocumentRoot [/var/www/vhosts/XXX.de/httpdocs] does not exist
AH00112: Warning: DocumentRoot [/var/www/vhosts/XXX.de/httpdocs] does not exist
AH00112: Warning: DocumentRoot [/var/www/vhosts/example.tld/httpdocs] does not exist
AH00112: Warning: DocumentRoot [/var/www/vhosts/example.tld/httpdocs] does not exist
Syntax OK
 
The new error messages mean that the document root directories of the respective domains do not exist. You can either create these directories or maybe you want to remove the domains.

You can try to run
# plesk repair web -sslcerts
# plesk repair web
to repair remaining issues. Or you can use the GUI extension "web server configuration trouble shooter" to check and repair configuration files.
 
I have do and get no error messages again.
Thanks a lot
 
Back
Top