http no start

sibonis

New member
Joined
Mar 5, 2012
Messages
4
/etc/init.d/httpd start
Starting httpd: [Sat Aug 11 05:39:54 2012] [warn] module php5_module is already loaded, skipping
Syntax error on line 10 of /etc/httpd/conf/extra/httpd-directories.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
 
Hello,

It seems as if you are running Apache 2.4, aren't you? In this case you'd better to:

1. backup existing apache configs, located in /etc/httpd/conf/
2. update all of them and replace with defaults actualized for apache 2.4

Code:
cd /usr/local/directadmin/custombuild/
./build update
./build rewrite_confs

Note, with that command you might lose all the customizations of apache configs, of course if you applied any manually in a shell. That's why you need to have a backup copy of all files.
 
Hello,

It seems as if you are running Apache 2.4, aren't you? In this case you'd better to:

1. backup existing apache configs, located in /etc/httpd/conf/
2. update all of them and replace with defaults actualized for apache 2.4

Code:
cd /usr/local/directadmin/custombuild/
./build update
./build rewrite_confs

Note, with that command you might lose all the customizations of apache configs, of course if you applied any manually in a shell. That's why you need to have a backup copy of all files.


[root@netpower custombuild]# ./build rewrite_confs
Using ******** for your server IP
Restarting apache.
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 10 of /etc/httpd/conf/extra/httpd-directories.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
 
By the way I've got httpd-directories.conf symlinked to httpd-directories-new.conf

Code:
# ls -l httpd-directories.conf
lrwxrwxrwx 1 root root 26 Dec 14  2011 httpd-directories.conf -> httpd-directories-new.conf

and you?

Also, make sure you've got no this directory

/usr/local/directadmin/custombuild/custom/ap2/conf/

if you've got it (you should rename it), then you might have there outdated configs, and with

./build rewrite_confs

you've copied them to /etc/httpd/conf/
 
By the way I've got httpd-directories.conf symlinked to httpd-directories-new.conf

Code:
# ls -l httpd-directories.conf
lrwxrwxrwx 1 root root 26 Dec 14  2011 httpd-directories.conf -> httpd-directories-new.conf

and you?

Also, make sure you've got no this directory

/usr/local/directadmin/custombuild/custom/ap2/conf/

if you've got it (you should rename it), then you might have there outdated configs, and with

./build rewrite_confs

you've copied them to /etc/httpd/conf/

/etc/init.d/httpd start
Starting httpd: Syntax error on line 5 of /etc/httpd/conf/extra/httpd-directories.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration


after ... line 5 now...
 
OK, make sure you've got module mod_access_compat loaded/compiled into apache:

Code:
# apachectl -t -D DUMP_MODULES | grep access_compat_module

you should see something similar to

access_compat_module (static)

If you don't see that, then you might need to re-compile apache, but before you should update or remove your

/usr/local/directadmin/custombuild/custom/ap2/configure.apache

or make sure you've got it looking like this:

Code:
#!/bin/sh
"./configure" \
        "--prefix=/etc/httpd" \
        "--exec-prefix=/etc/httpd" \
        "--bindir=/usr/bin" \
        "--sbindir=/usr/sbin" \
        "--sysconfdir=/etc/httpd/conf" \
        "--enable-so" \
        "--enable-dav" \
        "--enable-dav-fs" \
        "--enable-dav-lock" \
        "--enable-suexec" \
        "--enable-deflate" \
        "--enable-unique-id" \
        "--enable-mods-static=most" \
        "--with-mpm=prefork" \
        "--with-suexec-caller=apache" \
        "--with-suexec-docroot=/" \
        "--with-suexec-gidmin=100" \
        "--with-suexec-logfile=/var/log/httpd/suexec_log" \
        "--with-suexec-uidmin=100" \
        "--with-suexec-userdir=public_html" \
        "--with-suexec-bin=/usr/sbin/suexec" \
        "--with-included-apr" \
        "--with-pcre=/usr/local" \
        "--includedir=/usr/include/apache" \
        "--libexecdir=/usr/lib/apache" \
        "--datadir=/var/www" \
        "--localstatedir=/var" \
        "--enable-logio" \
        "--enable-ssl" \
        "--enable-rewrite" \
        "--enable-proxy" \
        "--enable-expires" \
        "--with-ssl=/usr" \
        "--enable-headers"

This line
"--enable-mods-static=most" \
is very important.
 
Back
Top