• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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