Uninstall DA

bengrubb

Verified User
Joined
May 20, 2006
Messages
18
Hey all,

I would like to uninstall and then reinstall Direct Admin because I upgraded to PHP 5 and it broke a few things :o .
I have looked at: http://www.directadmin.com/forum/showthread.php?t=3365 and am trying to convert it to my servers way of doing so. I am using Debian.

1) Remove all users through DA.
2) Remove the /etc/cron.d/directadmin_cron file
3) rm -rf /usr/local/directadmin
4) Do a dpkg --list to get a list of the installed programs.
5) Find the main services installed by DA (how do I know which ones are installed by Direct Admin?) and then use dpkg --purge to remove them.
6) Apache and PHP are installed from source, so removing them would have to be done manually. (How would one do so?) would i just need to do this:
a) remove apache: "remove httpd"
b) remove php: "dpkg --purge php-4.4.6"
Would I need to remove the other PHP versions installed as well?

Any help is much appreciated.:)
 
Wouldn't that break a lot of things

Well yes but so would uninstalling DA. You will have to create users and add domains again.

If your problem is with php5 then simple install php4 again and change the apache config to use php4. You don't have to reinstall DA.
 
Well yes but so would uninstalling DA. You will have to create users and add domains again.

If your problem is with php5 then simple install php4 again and change the apache config to use php4. You don't have to reinstall DA.

I ended up fixing PHP by reinstalling PHP4 with the help of a friend. I now just need a nice safe way of compiling PHP5 and I am thinking of using the beta build (http://directadmin.com/forum/showthread.php?t=17004) to do so.

To get PHP5 is this all I would need to do:

Install the Beta 'build'

cd /usr/local/directadmin
mv custombuild custombuild.old
wget http://files.directadmin.com/services/custombuild/beta/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build update_data
./build all d

Compile PHP5:
./build php5

And we're done.
 
Last edited:
This is what I do for php5:

Code:
cd /usr/local/directadmin/customapache
rm -f configure.php
./build clean
./build update
nano -w build (change php version number to 5.2.1)

wget http://ch2.php.net/get/php-5.2.1.tar.gz/from/us2.php.net/mirror
tar xzf php-5.2.1.tar.gz
cd php-5.2.1
/usr/local/directadmin/customapache/configure.php
make
make install
nano -w /etc/httpd/conf/httpd.conf

Comment out all php4 references and change <IfModule mod_php4.c> to <IfModule mod_php5.c>

/etc/rc.d/init.d/httpd restart

I think you also have to:
yum -y install libxml2-devel libxml2

There may be some other yum packages to install as well.
 
There may be some other yum packages to install as well.

And I'm sure it would spit it out at the end if there was any needed after the make install, btw I'm using Debian so I'd just apt-get install.
 
Last edited:
Back
Top