Click to See Complete Forum and Search --> : How to upgrade php4.0 to php4.22 on linux redhat 7.0?


ahchew1413
09-04-2002, 01:50 AM
i want to upgrade php4.0 to php4.22 on linux redhat 7.0. I am using apache, postgres and mysql. Will these command work?? or that was other more easy way to do it.

1. Download the source code from php site.
2. cp php-4.2.2.tar.gz /usr/local //copy it to /usr/local/
3. cd /usr/local/
4. tar -xvzf php-4.2.2.tar.gz
5. locate apxs
6. locate pgsql //i'm not sure this step correct or not
//i am using postgresql, but i do not know
//wheter i should locate pgsql or psql or postgres?


7. cd /usr/local/php-4.2.2
8. ./configure --with-apxs=usr/sbin/apxs \
9. --with-mysql \
10. --with-pgsql=xxxxxxxxxx \
11. --enable-track-vars

12. make
13. make install
14. cp /usr/local/php-4.2.2/libs/libphp4.so
/usr/lib/apache/libphp4.so

15. chmod 755 /usr/lib/apache/libphp4.so



16. /etc/rc.d/init.d/httpd restart
17. done

I am newcomer to linux, so, please show me the way to
do it if i am wrong at any step. Thanks for reading.

ahchew1413

malbera
09-04-2002, 03:56 AM
It might work
check phpinfo() and see how your old version was 'configured'
and afaik, php4.2.2 will copy liphp4.so where it should, will chmod it and configure httpd.conf (anyway it does so on my freebsd)

hope that helps