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.
- Download the source code from php site.
- cp php-4.2.2.tar.gz /usr/local //copy it to /usr/local/
- cd /usr/local/
- tar -xvzf php-4.2.2.tar.gz
- locate apxs
- 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?
cd /usr/local/php-4.2.2
./configure --with-apxs=usr/sbin/apxs \
--with-mysql \
--with-pgsql=xxxxxxxxxx \
--enable-track-vars
make
make install
cp /usr/local/php-4.2.2/libs/libphp4.so
/usr/lib/apache/libphp4.so
chmod 755 /usr/lib/apache/libphp4.so
- /etc/rc.d/init.d/httpd restart
- 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