- EDITED : New SRPM version for php5.2.0 *
- Download it *
- See http://www.interworx.com/forums/showpost.php?p=10804&postcount=5 *
Hello,
I’ve changed the existing php-5.1.2-iworx srpm to allow the rpm to be installed on a box with php4 already installed as a module.
The rpm will install both cgi and cli version
Bin are in /usr/bin/php5.2.0
lrwxrwxrwx 1 root root 7 Oct 1 15:42 php -> php-cgi
-r-x–x–x 1 root root 4723472 Oct 1 15:28 php-cgi
-r-x–x–x 1 root root 18004654 Oct 1 15:28 php-cli
Ini files are in /etc/php5/
-rw-r–r-- 1 root root 39517 Oct 1 15:28 php-cgi.ini
-rw-r–r-- 1 root root 39517 Oct 1 15:28 php-cli.ini
drwxr-xr-x 2 root root 4096 Oct 1 19:01 php.d
Extension are in /usr/lib/php5
mysql.so
etcx…
IT WORKS FOR US, BUT IT ?IGHT NOT FOR YOU. WE WON’T ASSUME ANY BROKS IN YOUR SYSTEM. CHECK THE SPEC FILE IF YOU ARE NOT SURE.
The php5.2.0 SRPM
http://clust01-carat01.carat-hosting.com/srpm/php5-5.2.0-CLI_CGI.rhe4x.1.0.2.src.rpm
Rebuild the SRPM will also install all these RPMS-
-rw-r--r-- 1 root root 548858 Oct 1 18:50 php-devel-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 41051 Oct 1 18:50 php-imap-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 22865 Oct 1 18:50 php-ldap-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 1018842 Oct 1 18:50 php-mbstring-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 17406 Oct 1 18:50 php-mcrypt-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 7710 Oct 1 18:50 php-mhash-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 26098 Oct 1 18:50 php-mysql-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 30459 Oct 1 18:50 php-ncurses-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 31546 Oct 1 18:50 php-odbc-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 2420 Oct 1 18:50 php-pear-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 45891 Oct 1 18:50 php-pgsql-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 14905 Oct 1 18:50 php-snmp-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
-rw-r--r-- 1 root root 44595 Oct 1 18:50 php-xmlrpc-5.2.0-cli_cgi.rhe4x.1.0.2.x86_64.rpm
To install the RPM do :
1- Download it
wget http://clust01-carat01.carat-hosting.com/srpm/php5-5.2.0-CLI_CGI.rhe4x.1.0.2.src.rpm
2- Rebuild it
rpmbuild --rebuild --with<yourarch> php-5.2.0-cli_cgi.rhe4x.1.0.3.src.rpm
Your arch mightr be
rht90
cos3x
fdr10
fdr20
fdr30
fdr40
whb3x
rhe2x
rhe3x
rhe4x (also for cos4x)
3- Install it
rpm -ivh /usr/src/redhat/RPMS/i386 ou x86_64/php-5.2.0-cli_cgi.rhe4x.1.0.2.rpm
If you want ot give to your users the ability to use PHP5 as CGI just update their vhost conf file or create an .htaccess file with something like this:
AddHandler x-httpd-php5 .php5
Action x-httpd-php5 /php5/php-cgi
ScriptAlias /php5/ /home/account/domaine/html/php5/
in the docroot of the user create a dir named php5 and copy in it the /usr/bin/php5.2.0/php-cgi
Chnage the owner of this file to allow suexec
Here is the reslult of phpinfo.php5 file in the php5 dir
http://clust01-carat01.carat-hosting.com/phpinfo.php5
Hope it helps some of you