Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache not starting - Opt folder deleted

Discussion in 'EasyApache' started by Mortada Mouazzen, Jan 28, 2018.

  1. Mortada Mouazzen

    Mortada Mouazzen Registered

    Joined:
    Jan 28, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    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?
     
    #1 Mortada Mouazzen, Jan 28, 2018
    Last edited by a moderator: Jan 29, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page