Hi,
I'm trying to upgrade from PHP4 to PHP5 in a Red Hat Enterprise Linux. I downloaded the tar.gz from php.net. Then I did the:
./configure
--with-apxs2=/usr/local/apache2/bin/apxs
--with-zlib
--with-openssl
--with-gd
--with-jpeg
--with-png
--with-mysql
--enable-sockets
make
/etc/rc.d/ini.d/httpd stop
make INSTALL
/etc/rc.d/ini.d/httpd start
Our webserver has apache 2.0.52 that came with the distribution. In the instructions to configure the apache for php it says:
Edit your httpd.conf to load the PHP module. The path on the right hand
side of the LoadModule statement must point to the path of the PHP
module on your system. The make install from above may have already
added this for you, but be sure to check.
For PHP 5:
LoadModule php5_module libexec/libphp5.so
I find the libphp5.so in /usr/local/apache2/modules.
But I can't make PHP4 upgrade to PHP5.
I also made a script to help me check if php already upgraded.
<?php
phpinfo();
?>
Is there any other way to upgrage PHP4 to PHP5?
Please I need a step-by-step procedure for this..
Many thanks!
LuluHave you removed the old LoadModule line for PHP 4 from the httpd.conf file?Have you removed the old LoadModule line for PHP 4 from the httpd.conf file?
Actualy there is no line like "LoadModule for PHP4" when I edited the httpd.conf file.
Whenever I put this line "LoadModule php5_module modules/libphp5.so" our pages wont work.
I don't know what's wrong with my procedure. Can you give me a better procedure for this?
Many thanks!
LuluWhen you use phpinfo() does it show the old PHP version 4, also, it will tell you whether PHP 4 was running as a cgi or server module. If it is running as a CGI, the httpd.conf file will contain an Action line for PHP 4, you'll need to remove this.When you use phpinfo() does it show the old PHP version 4,
Yes.
also, it will tell you whether PHP 4 was running as a cgi or server module. If it is running as a CGI, the httpd.conf file will contain an Action line for PHP 4, you'll need to remove this.
The httpd.conf file does not contain an Action line for PHP 4.
Please I need to clarify if my procedure for upgrading our PHP4 to PHP5 is correct or not. If not, please tell me what's wrong or give me step-by-step procedure how to correct it.
Many thanks!
Lulu
I'm trying to upgrade from PHP4 to PHP5 in a Red Hat Enterprise Linux. I downloaded the tar.gz from php.net. Then I did the:
./configure
--with-apxs2=/usr/local/apache2/bin/apxs
--with-zlib
--with-openssl
--with-gd
--with-jpeg
--with-png
--with-mysql
--enable-sockets
make
/etc/rc.d/ini.d/httpd stop
make INSTALL
/etc/rc.d/ini.d/httpd start
Our webserver has apache 2.0.52 that came with the distribution. In the instructions to configure the apache for php it says:
Edit your httpd.conf to load the PHP module. The path on the right hand
side of the LoadModule statement must point to the path of the PHP
module on your system. The make install from above may have already
added this for you, but be sure to check.
For PHP 5:
LoadModule php5_module libexec/libphp5.so
I find the libphp5.so in /usr/local/apache2/modules.
But I can't make PHP4 upgrade to PHP5.
I also made a script to help me check if php already upgraded.
<?php
phpinfo();
?>
Is there any other way to upgrage PHP4 to PHP5?
Please I need a step-by-step procedure for this..
Many thanks!
LuluHave you removed the old LoadModule line for PHP 4 from the httpd.conf file?Have you removed the old LoadModule line for PHP 4 from the httpd.conf file?
Actualy there is no line like "LoadModule for PHP4" when I edited the httpd.conf file.
Whenever I put this line "LoadModule php5_module modules/libphp5.so" our pages wont work.
I don't know what's wrong with my procedure. Can you give me a better procedure for this?
Many thanks!
LuluWhen you use phpinfo() does it show the old PHP version 4, also, it will tell you whether PHP 4 was running as a cgi or server module. If it is running as a CGI, the httpd.conf file will contain an Action line for PHP 4, you'll need to remove this.When you use phpinfo() does it show the old PHP version 4,
Yes.
also, it will tell you whether PHP 4 was running as a cgi or server module. If it is running as a CGI, the httpd.conf file will contain an Action line for PHP 4, you'll need to remove this.
The httpd.conf file does not contain an Action line for PHP 4.
Please I need to clarify if my procedure for upgrading our PHP4 to PHP5 is correct or not. If not, please tell me what's wrong or give me step-by-step procedure how to correct it.
Many thanks!
Lulu