DA and Debian work together in Peace!

Handyman

Verified User
Joined
Jul 30, 2006
Messages
15
*EDIT*: After using the below tutorial, I noticed that the mail does not work, I have been unable to get over that issue, so I'm just using DA's Apache right now.
*/EDIT*


After much Head Banging, I finally got DA to use Debians Apache, php4 and php5.

Here is how I did it... this doesn't use DA's apache so if it's possible not to install it, that would be good.

I finally got DA to work with Debian, apache2, php5 and php4-cgi

it works like this:

#1) Make sure the DA is set to apache 2 by setting "apache_ver=2.0" in your /usr/local/directadmin/conf/directadmin.conf file

#2) edit /etc/apache2/apache2.conf

at the very bottom where it says:
"# Include the virtual host configurations:"

Add:

"#Start DirectAdmin Settings
Alias /config /var/www/html/redirect.php
Alias /phpMyAdmin /var/www/html/phpMyAdmin/
Alias /phpmyadmin /var/www/html/phpMyAdmin/
Alias /webmail /var/www/html/webmail/
Alias /squirrelmail /var/www/html/squirrelmail/

NameVirtualHost YourIP:80
NameVirtualHost YourIP:443"

then after:
#3) "Include /etc/apache2/sites-enabled/[^.#]*"

add the users httpd.conf files for example:

"Include /usr/local/directadmin/data/users/username1/httpd.conf
Include /usr/local/directadmin/data/users/username2/httpd.conf
Include /usr/local/directadmin/data/users/username3/httpd.conf"

#4) the restart apache /etc/init.d/apache2 restart

#5)Edit /usr/local/directadmin/conf/directadmin.conf and change the httpd.conf file path to apache2.conf. Remember to restart DA after the change.

And if you want php4 and php5 installed in about 5 minutes you can have both running... just follow the tutorial found here: http://michaellewismusic.com/forum/viewforum.php?f=41

I hope that helps.

Blessings
Handyman

P.S. Thanks to John in the support department for helping me get setup.
 
Last edited:
*REMOVED*
I added this reply into the first post.
 
Last edited:
Back
Top