Apache fails to work now, any ideas?

.decimaL

Verified User
Joined
Feb 20, 2011
Messages
7
I have CentOS 5 and DirectAdmin installed on my dedicated server.
Yesterday I needed to add a script to run for a site I have on the box, now the script needed python-mysqldb to work properly and Python 2.6. The box only had v2.4 which was not compatible with the script. So I managed to install python26 but everytime I try to install the MySQL-python or python-mysqldb it says no package available.

I tried loading multiple repos from various sources but nothing worked. I can get mysql-python to install for v2.4 just not 2.6. I tried various fixes I found while scouring the internet such as updating, editing yum.conf to include httpd and mysql updates (which I fear is where I went wrong), compiling from source.

After I edited yum.conf and updated, it updated apache and my sites still worked afterward, so I thought that everything went smoothly. But now a couple hours later, none of the sites on the server work. If I try to restart httpd, I get:

Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 29 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]

Any ideas on how to fix this?

Thanks in advance.
 
So,

yum remove httpd mysqld

and then

cd /usr/local/directadmin/custombuild/
./build httpd
./build mysqld

Looks about right?
 
Yes, I'd add

Code:
cd /usr/local/directadmin/custombuild/
./build update && ./build clean
./build set_fastest
./build apache
./build mysqld
./build php n

Just to be sure, you'll install recent versions.
 
Last edited:
Will it install PHP5.3, because last time it gave me 5.2 and I had to upgrade manually.

Btw thanks for the help.
 
Hello,

I'm not sure if that's our httpd.conf or not.. or if it is, it may not be our httpd binary (perhaps added by yum by accident). For both, type:
Code:
/usr/sbin/httpd -v
./build apache
./build rewrite_confs
John
 
Thank you!!!!!!!!!
After all that, all I had to do was edit options.conf and change mysql_inst to yes, run ./build mysql d
and that was it!

Everything works fine now.
Now I'm not gonna touch anything ever again =/
"If it isn't broken, don't try to fix it."
 
Back
Top