• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Issue Accidently removed httpd

Anoop

Regular Pleskian
Server operating system version
Centos 7
Plesk version and microupdate number
18.0.44
Accidentally remove httpd from the server and now the websites are down. CentOS is the Operating System.

yum install httpd also tried. but still the web sites are down. so please help
 
Also maybe
# plesk repair installation
because it's not only about the configuration files, but about a component.
 
Can you post the results of the commands below?
Code:
# systemctl status httpd

# systemctl status nginx
 
What does the error_log of the website tell you when you get the 502 error?
Code:
# tail -f /var/www/vhosts/system/domain.com/logs/error_log
 
tail -f /var/www/vhosts/system/abcd.com/logs/error_log


[Tue May 23 21:37:28.952996 2023] [proxy_fcgi:error] [pid 16855:tid 140593685231360] [client 51.222.253.4:43338] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/) in Unknown on line 0'
[Tue May 23 21:38:29.421325 2023] [proxy_fcgi:error] [pid 16855:tid 140593523021568] [client 34.30.194.61:43408] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/) in Unknown on line 0'
[Tue May 23 21:38:29.450815 2023] [proxy_fcgi:error] [pid 7347:tid 140593514628864] [client 69.162.124.231:43404] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/) in Unknown on line 0', referer: http://abcd.com
[Tue May 23 21:42:44.116884 2023] [proxy_fcgi:error] [pid 16855:tid 140593464272640] [client 34.30.194.61:43734] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/) in Unknown on line 0'
[Tue May 23 21:42:44.997910 2023] [proxy_fcgi:error] [pid 7347:tid 140593590163200] [client 178.254.29.124:43730] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/) in Unknown on line 0'
[Tue May 23 21:43:30.254057 2023] [proxy_fcgi:error] [pid 16855:tid 140593573377792] [client 34.30.194.61:43804] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/) in Unknown on line 0'
[Tue May 23 21:43:30.281803 2023] [proxy_fcgi:error] [pid 16855:tid 140593693624064] [client 69.162.124.231:43800] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/) in Unknown on line 0', referer: http://abcd.com
[Tue May 23 21:44:23.173057 2023] [proxy_fcgi:error] [pid 7436:tid 140593548199680] [client 51.222.253.9:43824] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/) in Unknown on line 0'
[Tue May 23 21:45:25.128380 2023] [proxy_fcgi:error] [pid 24470:tid 139875112822528] [client 34.30.194.61:43878] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/) in Unknown on line 0'
[Tue May 23 21:45:25.177352 2023] [proxy_fcgi:error] [pid 24384:tid 139875121215232] [client 172.71.151.47:43872] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/) in Unknown on line 0'
 
As you are running Centos 7, can you please check this thread? It might be related:

 
I just noticed that you have an error in the Apache config:

Unknown: open_basedir restriction in effect. File(/var/cpanel/php/sessions/ea-php74) is not within the allowed path(s): (/var/www/vhosts/abcd.com/:/tmp/)

Where is the "/var/cpanel/php/sessions/ea-php74" coming from? That is what causes your problems. It looks like you've imported a website from cPanel but forgot to change the paths.

 
Back
Top