Results 1 to 8 of 8

Thread: Installed Custombuild - now can't start httpd

  1. #1
    Join Date
    Apr 2007
    Posts
    76

    Installed Custombuild - now can't start httpd

    I just installed Custombuild and now can't sdtart httpd. Error is:

    Stopping httpd: [FAILED]
    Starting httpd: [Wed May 02 16:47:05 2012] [warn] module php5_module is already loaded, skipping
    httpd: Syntax error on line 27 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf/extra/httpd-directories.conf: No such file or directory

    Can anyone tell me what I need to do?

  2. #2
    Join Date
    Apr 2007
    Posts
    76
    Ok, I did a workaround by commenting out line 27. Is the missing file something I am going to need? Appreciate any feedback!

  3. #3
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    You have to rebuild php or php pages will not work correctly.

    Code:
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build php d
    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  4. #4
    Join Date
    Apr 2007
    Posts
    76
    Thanks. I tried that, and same result. When I removed the comment tag on line 27, httpd would not run. It does appear, however, that PHP on the site is functioning.
    Last edited by srqwebguy; 05-03-2012 at 07:21 AM.

  5. #5
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    Sorry i missread the error line, maybe a rebuild of apache would solve, it is strange that you dont have that file...

    Regards
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  6. #6
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    You might want to try

    Code:
    cd /usr/local/directadmin/custombuild && ./build rewrite_confs
    Note, it's up to you to make a copy of all files in /etc/httpd/conf, as with that command they will be overwritten to defaults.
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  7. #7
    Join Date
    Apr 2007
    Posts
    76
    I can try that, but before I do, a question - (please excuse my relative ignorance)

    Looking in the /conf/extra/ directory, I find I have both httpd-directories-new.conf and httpd-directories-old.conf files. Are these related to what I am missing, and could I then just change the path on line 27 of httpd.conf?

  8. #8
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    Yes, you probably could do that. But I'd not recommend it. You should create a symlink httpd-directories.conf -> httpd-directories-new.conf (as a symlink is used there by default).
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

Similar Threads

  1. I installed Directadmin on vps but dont start Httpd services
    By woox in forum General Technical Discussion & Troubleshooting
    Replies: 1
    Last Post: 07-13-2010, 08:36 AM
  2. How to start after Direct admin is installed
    By bharan_n in forum General Technical Discussion & Troubleshooting
    Replies: 2
    Last Post: 12-17-2008, 06:07 PM
  3. Replies: 9
    Last Post: 04-22-2008, 05:30 PM
  4. installed ssl - httpd.conf looks right - getting snakeoil cert
    By BlueNoteWeb in forum User-Level Difficulties
    Replies: 5
    Last Post: 12-13-2007, 09:34 AM
  5. Accidentally installed httpd - now webserver down
    By dperren in forum General Technical Discussion & Troubleshooting
    Replies: 9
    Last Post: 10-12-2007, 04:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •