Mortada Mouazzen

Registered
Jan 28, 2018
1
0
0
Germany
cPanel Access Level
Website Owner
Hi,
I have deleted the /opt folder on my server and all the subfolders by accident.
Now the websites on the server are not loading anymore and I wanted to rebuild apache using easyapache so maybe it can create new folders/files.
I am running a CentOs.

When I run the httpd status comamnd, I get the following:

Code:
service httpd status
● httpd.service - Apache web server managed by cPanel EasyApache
   Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2018-01-28 12:40:02 EST; 4min 23s ago
  Process: 13293 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=127)

Jan 28 12:40:02 host1 systemd[1]: Failed to start Apache web server managed by cPanel EasyApache.

I did try to rebuild with easyapache but it didn`t work.

How can I fix this?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

You should be able to rebuild those directories by running EasyApache. If you are using EasyApache 3, you'd use a command like this:

Code:
/scripts/easyapache
With EasyApache 4, you can try using the EA3 conversion script to reinstall the EA4 packages. EX:

Code:
/scripts/migrate_ea3_to_ea4 --reinstall --run
Thank you.