New DA User - php4 to php5 migration..

robj

Verified User
Joined
Aug 4, 2007
Messages
56
Before I start putting anyone on my server, I'd like to upgrade to php5 as php4 will no long be developed after Dec 31, 2007.

I'm not exactly comfortable yet with ssh but would am asking for detailed instructions on how to upgrade. Also, are there any issues I might need to know about, besides the php4 specific programming? Will a DA update overwrite these changes?

I found these instructions, here:

cd /usr/local/directadmin/customapache
rm -f configure.php
./build clean
./build update
nano -w ./build - change php version number

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

Coment out

#<IfDefine HAVE_PHP4>
#LoadModule php4_module modules/libphp4.so
#</IfDefine>
#LoadModule php4_module /usr/lib/apache/libphp4.so

###<IfDefine HAVE_PHP4>
#AddModule mod_php4.c
###</IfDefine>

Change

<IfModule mod_php4.c> to
<IfModule mod_php5.c>

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

I'm not sure of the instructions after 'Coment Out'. The above is said to work great. Can some one please elaborate further? Or would anyone be interested in doing the upgrade for me? I want to learn, but I don't want this to be a long drawn-out process.

Thanks

rob
 
Can someone explain step 2 of this tutorial a little better.

I'm not comfortable with shell commands just yet, and would appreciate a brief expaination of what is going to happen after I type:
Code:
nano build

Everything else seems pretty clear.

thanks
robj
 
Nano is a text editor much like notepad with the exception of no mouse. Use your arrow keys to navigate also pay attention to the bottom because it gives you the ctrl-key combos that allow you to save and search.
 
Back
Top