PHP5 CGI & CLI with an existing PHP4 Modules installation

[quote=bear;15189]Thank you

my main problem is that the /usr/lib/php5 and contents is not created for some reason every thing else seems to be there.
not sure why at present.[/quote]

So you should have ini files in /etc/php5/php.d/

for example if you do
rpm -ivh php5-mysql-5.2.0-CLI_CGI.rhe4x.1.0.2.i386.rpm you should have :

ls /etc/php5/php.d/

mysql.ini

and

ls /usr/lib/php5/

mysql.so

So what happens if you do for example

rpm -ivh /usr/src/redhat/RPMS/i386/php5-mbstring-5.2.0-CLI_CGI.rhe4x.1.0.2.i386.rpm

Paul

all working now, uninstalled all rpm and started again.
this time it created all the directory’s including the modules that i had a problem with.

i have at the moment php4 as CGI and php5 as CGI/fastCGI can i have php4 as a module with php5 as CGI ?

at present php4 uses php file setup, if i want to setup php5 to use php and not have to have files ending php5.
what do i have to put in .htaccess ?

can php5 share ionCube setup for php4 or is that a seperate setup also.

Thanks for your help

use suPHP

If you didn’t change any vhost, then by default .php files is parsed by php4 module.

To use both php4 and php5 files under the same vhost you need suPHP

Look here
http://www.interworx.com/forums/showthread.php?t=1762 our posts 5,6,7,8

Everything is possible !
run php4 and php5 with .php files, run php4 with .php4 or php5 with .php5 etc !!!
Paul

can php5 share ionCube setup for php4 or is that a seperate setup also.

php4 ini files are in /etc/php.ini and etc/php.d/
php5 ini files are in /etc/php5/php.ini and /etc/php5/php.d/
Using suPHP you can also define a php.ini file per domains.

So you can have ioncube for php4 and not php5 or php5 and not php4 or for both !
Also ioncube can just be added in the directory you need it !

So for example if you have in html/ all files parsed by php5 then you just have to put the corresponding ioncube loader, if you have, for example, a directory called html/app-php4/ which parse all php files with php4 then you just need to put there the ioncube loader for php4.4.4
etc…

With suphp you can define what you want !
just use :
suPHP_AddHandler and AddHandler in the vhost config file and in an htaccess file !

See this
http://www.interworx.com/forums/showpost.php?p=15211&postcount=5
and
http://www.interworx.com/forums/showpost.php?p=15213&postcount=7
and
http://www.interworx.com/forums/showpost.php?p=15214&postcount=8

Paul