100% HOW TO GUIDE upgrade Plesk2.5.3 / php-4.2.2/ apache 1.3.26
..............-= UPDATED WORKING 100% on plesk 2.5.3 =-................
Added revision 1.3.26 fix (let display the good ver. of apache when you see in phpinfo)
Upgrade PHP 4.2.2 – plesk standard version
PHP 4.2.2, and it includes "Highly improved performance" and "Lots of fixes and new functions"...so I figured it was worth installing. Here are the steps for the benefit of others that would like to upgrade.
1. Backup httpd.conf and libphp4.so in case anything goes wrong.
cp conf/httpd.conf conf/httpd.conf.mybackup
cp libexec/libphp4.so libexec/libphp4.so.mybackup
2. Get current PHP info. Create a PHP file (phpinfo.php, for example) in the httpdocs folder of one of your domains. This file should contain:
<? phpinfo(); ?>
When you view this file through your browser (ie., http://www.yourdomain.com/phpinfo.php ), it'll show you lots of information about the PHP installation on your server. Save the output to a local file so you can compare it to similar output after the upgrade.
3. Download and compile IMAP. This is used by Webmail, so it's required by PHP...
5. Do apache revision correction
cp /usr/local/psa/apache/include/httpd.h httpd.h.mybackup
Ctrl+W (to do a search) type : 1.3 then hit ENTER
Replace : SERVER_BASEREVISION "1.3.xx" by
Then now do a CTRL+W again type : 10322100 hit enter
Replace : APACHE_RELEASE 10322100 by
CTRL+X (to quit) then hit ‘Y’ (for yes) then hit enter
6. Download and compile PHP.
tar xvfz php-4.2.2.tar.gz
./configure --with-apxs=/usr/local/psa/apache/bin/apxs \
--prefix=/usr/local/psa/apache --with-system-regex \
--disable-debug --disable-pear --enable-sockets \
--enable-track-vars --without-gd \
--with-mysql=/usr/local/psa/mysql --with-iodbc=/usr/lib \
The configuration options here are based on what was displayed in the phpinfo before the upgrade. Feel free to add other options as you feel necessary.
9. Clean up any unnecessary files in /usr/local/src
If you come across any errors in this procedure, please let me know. There may be better ways to do some of the things I've listed...just mention it and I'll update the procedure. This will update Plesk2.5.3 to the latest PHP4.2.2 and latest apache 1.3.26 whit revision of apache corrected in phpinfo.
Thanks for all help to do this guide, this will be usefull for a lot I think.
If you find any error let me know ;-) Expect this help someone, you may have less search to do, all is there :-)
-= Newbie but learning Every day =-
-= I'M sleep whit my server =-
-= 115% uptime, may be sometime =-
this just results in me getting the below after make, can anyone tell me why its giving me this error?
*** Warning: This library needs some functionality provided by /usr/local/psa/mysql/lib/mysql/libmysqlclient.la.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
make: Leaving directory `/usr/local/src/php-4.2.2'