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!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice