Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default httpd won't restart, no errors

    root@server [~]# service httpd restart
    /etc/init.d/httpd restart: configuration broken, ignoring restart
    /etc/init.d/httpd restart: (run 'apachectl configtest' for details)
    root@server [~]# /usr/local/apache/bin/apachectl configtest
    root@server [~]#


    I can't find the cause of this. I simply installed eaccelerator and updated Zend to 3.2.4

    php.ini


    [Zend]
    zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.4
    zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.4
    zend_optimizer.version=3.2.4


    [suhosin]
    extension="/usr/lib/php/suhosin/suhosin.so"
    ;suhosin.version=0.9.16

    zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
    zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

    [eAccelerator]
    zend_extension="/usr/lib/php/eaccelerator/eaccelerator.so"
    eaccelerator.shm_size="4096"
    eaccelerator.cache_dir="/tmp/eaccelerator"
    eaccelerator.enable="1"
    eaccelerator.optimizer="3"
    eaccelerator.check_mtime="1"
    eaccelerator.debug="0"
    eaccelerator.filter=""
    eaccelerator.shm_max="0"
    eaccelerator.shm_ttl="0"
    eaccelerator.shm_prune_period="0"
    eaccelerator.shm_only="0"
    eaccelerator.compress="1"
    eaccelerator.compress_level="9"
    eaccelerator.keys="shm_and_disk"
    eaccelerator.sessions="shm_and_disk"
    eaccelerator.content="shm_and_disk"


    What should I do?

    Last thing I see in apache error logs:

    2007-03-14 19:04:29 1HRdSH-0005nE-DS Expansion of ${if !eq {$header_From:}{}{$header_sender:$header_From:}fai l} failed while rewriting: syntax error in "if" item - "fail" expected
    Last edited by Zion Ahead; 03-14-2007 at 07:11 PM.

  2. #2
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default

    Fixed.

    I move eaccelerator portion before Zend, restarted apache

  3. #3
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Lol I was just going to say that, a big hint on this is that when you run the
    Code:
    # service httpd configtest
    Syntax OK
    #
    You should get the "Syntax OK", above you got nothing. We ran into the same thing when adding shared ioncube loaders to the php.ini files.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  4. #4
    Member
    Join Date
    Mar 2002
    Posts
    175

    Default

    We've had it when the httpd.conf file was empty or missing.

Similar Threads & Tags
Similar threads

  1. Daily httpd restart changes AllowOverride None to All in httpd.conf
    By Lasers in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 02-26-2007, 12:17 PM
  2. Apache won't start - httpd configtest won't run as root??
    By linearfusion in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-04-2006, 04:44 PM
  3. apache failed / httpd won't restart
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-18-2004, 05:27 PM
  4. apache won't restart
    By blueboxservers.com in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-19-2003, 06:25 PM
  5. Help! BIND 8 won\'t restart
    By greg in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-14-2001, 10:24 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube