Will DirectAdmin work with PHP5

Shayne

New member
Joined
Apr 23, 2005
Messages
2
Hello,
My web hosting company says they can't upgrade to the latest version of PHP (5.0.4) because DirectAdmin is not "Fully Functional" with it. We are stuck with 4.3.11, so I was wondering if this was true, or they just don't want to upgrade.

Thanks
 
It is not true upto a point. DirectAdmin does not depend on php for anything so it doesn't care what version you run. BUT DA's customapache system does not support php5 yet so you will have to download the source, configure and build by hand as well as modify the httpd.conf file accordingly at least the first time.

I have been running php5 and MySQL 4.1 on my servers for some time now without any problems.
 
Ok, thank you very much for the speedy reply... I will tell my hosting company that, Thanks :)
 
Basically what I did:

cd /usr/local/directadmin/customapache
Downloaded php source (www.php.net/downloads.php)
tar -zxf php-5.0.x.tar.gz
cd php-5.0.x
/usr/local/directadmin/customapache/configure.php
make
make install

Then edit the httpd.conf file removing the mod_php4 modules and/or adding or changing them to mod_php5
as well as their directives.

For example:

<IfModule mod_php4.c>
AddType application/x-httpd-php .inc .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>

would become:

<IfModule mod_php5.c>
AddType application/x-httpd-php .inc .php .php5 .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
 
Last edited:
I think your refering to MySQL upgrade from 4.0 to 4.1
There aren't any password issues that I know of during this php upgrade.
 
httpd.conf is located in /etc/httpd/conf/

One to many T's, I corrected my previous post.
 
I guess I will go ahead and upgrade to MySQL 4.1.x while I'm at it. Can you give me the steps to do this as you did for PHP?

Thanks :)
 
Last edited:
I had to work on that one awhile and went through many steps before I got it working. The method also depends on what Operating System your using.

At least for me on Debian, technically all I had to do was update the binary provided by MySQL AB and added
Code:
[mysqld]
old_passwords
to my /etc/my.cnf file
restart MySQL then recompile php using DirectAdmin's notes from:
http://www.directadmin.com/features.php?id=466

It took me longer because I also converted to the new installation method for Debian since my installation was done several months ago.
http://www.directadmin.com/features.php?id=477
 
jmstacey said:
It is not true upto a point. DirectAdmin does not depend on php for anything so it doesn't care what version you run. BUT DA's customapache system does not support php5 yet so you will have to download the source, configure and build by hand as well as modify the httpd.conf file accordingly at least the first time.

I have been running php5 and MySQL 4.1 on my servers for some time now without any problems.



This statement is untrue, I see this guy saying this all over these forums and I am here to tell you that it is untrue.

You can test this by installing php 5 as a fastcgi.

Direct admin will no longer parse its templates.

Sure it works fine for those of you who wish to use php in CLI and use a so called safe_mode
 
Back
Top