PDA

View Full Version : Some problems.



bamorim2
11-13-2008, 09:50 AM
Hi there, I'm new here.

Recently i ordered a dedicated server in LeaseWeb, me and 3 friends, and we've selected Direct Admin as control panel.

But we have some problems, one friend of mine has installed Apache+PHP+MySQL before people of LeaseWeb install DA.

Now we have apache, php and mysql installed but no integration with DA.

So there's no tool in DA to manage my Web Server, i wan't to know if there's a way to re-install apache-mysql-php and integrate it with Direct Admin.


Gratefully,
Bernardo Amorim

DirectAdmin Support
11-14-2008, 01:51 AM
Hello,

As it mentions on the install page, DA installs everything for you, and a "clean" server is recommended. Basically, installing things in your own way and then trying to force DA to read them usually doesn't work so well.

For apache/php, you should be able to type:
cd /usr/local/directadmin/custombuild
./build update
./build all d
./build rewrite_confsthen restart apache.

For mysql it really depends on what exactly is broken.
If there are not yet any databases, you should be able to type:
cd /usr/local/directadmin/scripts
./mysql.sh rootpass da_admin daadminpasswhere the bold bits can be any passwords you want. Select "y" when it asks you to delete previous data, as an empty/new db must be used for the script to setup the passwords correctly. This is a related guide if you're stuck halfway:
http://help.directadmin.com/item.php?id=45

John