Help - Search - Members - Calendar
Full Version: 100% HOW TO GUIDE upgrade Plesk2.5.3 / php-4.2.2/ apache 1.3.26
The Planet Forums > Control Panels > Plesk
x007
..............-= UPDATED WORKING 100% on plesk 2.5.5 =-................

Upgrade PHP 4.2.2 – plesk standard version -

****REVISED 1 september 2002****

This procedure work #1 then is safe if you just take care then do proper
file backup before proceding at any change cp this file under another name..
Alway play safe...:-)

NOTE: I have 1 script that got problem to date whit php4.2.2 then work fine whit 4.1.2
, i'm currently in way to find why this script report someting wrong, but i think is because the
script use older programing that use fonctions not supported in php4.2.2 or a bug
in Php4.2.2.. Because i cant figure why this script act like this then no one look to have
an answer even the programmer of the script :-(.. So anyway else this Php4.2.2 look runing
great...

1. Backup httpd.conf and libphp4.so in case anything goes wrong.
cp /usr/local/psa/apache/conf/httpd.conf /usr/local/psa/apache/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:


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...
cd /usr/src
wget ftp://ftp.cac.washington.edu/imap/imap-2002.RC4.tar.Z
uncompress imap.tar.Z
tar xvf imap.tar
cd imap-2002.RC4
make slx

Also, copy the IMAP client header and lib files to appropriate
places, as described at http://www.php.net/manual/en/ref.imap.php

cp /usr/src/imap-2002.RC4/c-client/c-client.a /usr/lib/libc-client.a
cp /usr/src/imap-2002.RC4/src/c-client/mail.h /usr/include
cp /usr/src/imap-2002.RC4/src/c-client/rfc822.h /usr/include
cp /usr/src/imap-2002.RC4/c-client/linkage.h /usr/include

export LDFLAGS="-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam"



4. Install libiodbc, another component required by PHP.
rpm -U http://www.iodbc.org/dist/libiodbc-...386-glibc21.rpm
rpm -U http://www.iodbc.org/dist/libiodbc-...386-glibc21.rpm
5. Do apache revision correction
NOTE: not needed but add a touch ;-)pico /usr/local/psa/apache/include/httpd.h


Ctrl+W (to do a search) type : 1.3 then hit ENTER
Replace : SERVER_BASEREVISION "1.3.xx" by
SERVER_BASEREVISION "1.3.26"
Then now do a CTRL+W again type : 10322100 hit enter
Replace : APACHE_RELEASE 10322100 by
APACHE_RELEASE 10326100
CTRL+X (to quit) then hit ‘Y’ (for yes) then hit enter


6. Download and compile PHP.

cd /usr/src
wget http://us3.php.net/do_download.php?...hp-4.2.2.tar.gz
tar xvfz php-4.2.2.tar.gz
cd php-4.2.2

./configure
--with-apxs=/usr/local/psa/apache/bin/apxs
--prefix=/usr/local/psa/apache
--with-system-regex
--with-config-file-path=/usr/local/psa/apache/conf
--disable-debug
--disable-pear
--enable-sockets
--enable-track-vars
--with-gd
--with-mysql=/usr/local/psa/mysql
--with-iodbc=/usr/lib
--with-imap=/usr/src/imap-2002.RC4
--without-kerberos
--with-jpeg-dir=/usr/lib
--with-png-dir=/usr/lib
--with-zlib-dir=/usr/include
--with-mcrypt=/usr/local/lib


Note: this configure string use some option..
you may need some librairy you dont have on your system
You may want to remove the line gd,zlib,mcrypt,png,jpeg or setup as you need
Feel free to add/remove other options as you feel necessary :-)


7. Replace the PHP module used by Apache. /usr/local/psa/apache/bin/apachectl stop
cp -f /usr/src/php-4.2.2/.libs/libphp4.so /usr/local/psa/apache/libexec/libphp4.so
/usr/local/psa/apache/bin/apachectl start

If for some reason apache whont start just do:
cp -f /usr/local/psa/apache/libexec/libphp4.so.mybackup /usr/local/psa/apache/libexec/libphp4.so

then :
/usr/local/psa/apache/bin/apachectl start

8. View phpinfo again by visiting http://www.yourdomain.com/phpinfo.php ... It should now display the new version and other info for PHP.


9. Clean up any unnecessary files in /usr/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/2.5.5 to the latest PHP4.2.2 and latest apache 1.3.26 whit revision of apache corrected in phpinfo.
Thanks for all help, this will be usefull for a lot I think. As for newbie like me ;-)
mirage
Weeeeeeeeeeeeeeeeeeeeee! thank you from the bottom of my heart. I been having sleepless nights trying to upgrade/recompile my php. This did the trick. icon_smile.gif
viooltje
Also, copy the IMAP client header and lib files to appropriate places, as described at http://www.php.net/manual/en/ref.imap.php
(I'm newbie and don't understand this I copy and paste the codes it works so far when I'm here I'm stuck. Can someone please help me further?)
code:
md /usr/lib/libc-client.a
(when I do this I get this maybe because I haven't done the above first.)
bash: md: command not found
x007
QUOTE
Originally posted by viooltje
Also, copy the IMAP client header and lib files to appropriate places, as described at http://www.php.net/manual/en/ref.imap.php  
(I'm newbie and don't understand this I copy and paste the codes it works so far when I'm here I'm stuck. Can someone please help me further?)
code:  
md /usr/lib/libc-client.a  
(when I do this I get this maybe because I haven't done the above first.)
bash: md: command not found




mkdir /usr/lib/libc-client.a :-))


Still Dos in mind ;-))
viooltje
lol I found it on the plesk forums thanks anyway ...
Griffith
Now I need some good explanation here...

I followed the instructions, and all went fine. No errors so I hoped everything was working... BUT webmail.domain.com doesn't work. I get

"
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
"

Any ideas why this happends? How can I fix this?
murshed
maybe it is an old post .. but please bar with me

i really don't know why my php is not working ..

i received the server with a NON-WORKING php .. the tech and customer service didn't help me on that because they said that i upgraded the php .. well at that time i didn't upgrade it and i don't know why they said that ( actually i upgraded plesk to 2.5.5).
anyhow .. when i really was fedup and knew that i won't get help from them .. i did what you wrote in this post and the same thing happened .. no pages are viewable

try thing link
http://207.44.134.62/phpinfo.php

what is the problem ?
i dodn't get any error messages during upgrading though ..


thanks alot
x007
QUOTE
Originally posted by murshed
maybe it is an old post .. but please bar with me

i really don't know why my php is not working ..

i received the server with a NON-WORKING php .. the tech and customer service didn't help me on that because they said that i upgraded the php .. well at that time i didn't upgrade it and i don't know why they said that ( actually i upgraded plesk to 2.5.5).
anyhow .. when i really was fedup and knew that i won't get help from them .. i did what you wrote in this post and the same thing happened .. no pages are viewable

try thing link
http://207.44.134.62/phpinfo.php

what is the problem ?
i dodn't get any error messages during upgrading though ..


thanks alot


your phpinfo even not display....
i think you can try recompiling Php4... But its weird because if you have upgraded plesk to 2.5.5 the upgrade replace php whit 4.1.1 if i remender...

Is your php working fine before your upgrade ?
Is your apache running ok on html ?


Check this tread Procudure for php upgrade updated here :
http://forum.plesk.com/showthread.php?s=&threadid=4987
murshed
hi
my php wasn't working at alllllllll

i received the server with a faulty php .. i upgraded plesk to 2.5.5 .. and thats all .. i contacted the tech support .. with a long story .. then opened a ticket and they said you upgraded the php and this is a breach .. ! i then upgraded by my own reading this article .. and it is still not working
the html was and is working fine ..
it is really strange

thanks for all
x007
QUOTE
Originally posted by murshed
hi
my php wasn't working at alllllllll

i received the server with a faulty php .. i upgraded plesk to 2.5.5 .. and thats all .. i contacted the tech support .. with a long story .. then opened a ticket and they said you upgraded the php and this is a breach .. ! i then upgraded by my own reading this article .. and it is still not working  
the html was and is working fine ..
it is really strange  

thanks for all


Try to reinstall it whit the updated procedure again...

then make sure in httpd.conf
you have the modules loaded for php...

your httpd.conf should be in

/usr/local/psa/apache/conf/httpd.conf

make sure the php module is active !

are you just buy the server or ?
murshed
solved the problem

i had to comment this line in httpd.include:
php_admin_flag engine off

thats all..... thanks to all
ooxnet
when i try to install the libiodbc, i get these errors,
any idea on what im doing wrong ?
please help, thanks

rpm -U http://www.iodbc.org/dist/libiodbc-3.0.6-2...386-glibc21.rpm
file /etc/odbc.ini from install of libiodbc-3.0.6-2 conflicts with file from package unixODBC-2.0.7-3
file /etc/odbcinst.ini from install of libiodbc-3.0.6-2 conflicts with file from package unixODBC-2.0.7-3

rpm -U http://www.iodbc.org/dist/libiodbc-devel-3...386-glibc21.rpm
error: failed dependencies:
libiodbc is needed by libiodbc-devel-3.0.6-2
ooxnet
i got the libiodbc working and installed php,
but now i got this error,

/usr/local/psa/apache/bin/apachectl start
Syntax error on line 247 of /usr/local/psa/apache/conf/httpd.conf:
Cannot load /usr/local/psa/apache/libexec/libphp4.so into server: /usr/local/psa/apache/libexec/libphp4.so: invalid ELF header
/usr/local/psa/apache/bin/apachectl start: httpd could not be started

any help appreciated
ooxnet
i tried to re install php and get this after i run "make",

*** 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.
/usr/bin/ld:stub.lo: file format not recognized; treating as linker script
/usr/bin/ld:stub.lo:2: parse error
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/src/php-4.2.3'
make: *** [all-recursive] Error 1
SimGuy
There are no files listed in /lib for me..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.