How to downgrade from apache 2 back to apache 1.3
by admin on Sep.07, 2009, under DirectAdmin
If you need to go back to apache 1.3 after installing apache 2, you’ll need to do the following:
1) Restore the old httpd.conf file:
cp -f /etc/httpd/conf/httpd.conf.1.3.backup /etc/httpd/conf/httpd.conf
2) Get DirectAdmin to use the old httpd.conf files for the users. Edit the /usr/local/directadmin/conf/directadmin.conf file and change apache_ver=2.0 to apache_ver=1.3. Also, if you were using custombuild, and are going back to customapache, the apache_conf value needs to be reset to:
apacheconf=/etc/httpd/conf/httpd.conf
Then type
echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
echo "action=directadmin&value=restart" >> /usr/local/directadmin/data/task.queue
3) Now you can recompile apache 1.3
rm -f /usr/lib/apache/*
cd /usr/local/directadmin/customapache
./build clean
./build all
4) Fix the modules link:
cd /etc/httpd
rm -f modules
ln -s /usr/lib/apache modules
5) Restore the old boot script:
FreeBSD:
cp -f /usr/local/directadmin/customapache/httpd_freebsd /usr/local/etc/rc.d/httpd
chmod 755 /usr/local/etc/rc.d/httpd
/usr/local/etc/rc.d/httpd restart
RedHat:
cp -f /usr/local/directadmin/customapache/httpd /etc/init.d/httpd
chmod 755 /etc/init.d/httpd
/etc/init.d/httpd restart
![]()
Related posts:
- Apache won’t restart: [crit] (98)Address already in use: make_sock: could not bind to port 8090 Note this is an old guide. It was for apache...
- Apache stops responding but is running A few things that could cause that are: Possible Causes:...
- Updating Apache to the latest version You can check the current version of apache by running...
- Apache won’t start and there is nothing in the logs Chance are, if apache isn’t starting and isn’t logging anything,...
- Using a custom VirtualHost template If you wish to change the setup of the VirtualHosts...
Related posts brought to you by Yet Another Related Posts Plugin.
