Php 5.2 and 5.5 with cb 1.x

Djunity

Verified User
Joined
Mar 9, 2008
Messages
243
Location
Holland
Hi all,

I have try'd several things to accomplish to have primary php running 5.2 as it is now and add secondairy php version php 5.5 as my box is a production version with script running that have been written from 2007 so i need to have 5.5 as second.

I have searched the forum and found a few forum posts allready about this most about cb 2.x i have try'd but unsuccesfull
I have manually build php 5.5 in /usr/local/php55 and try to load it true htaccess but it aint working.

I have try'd serveral addhandler options but either it is loading the default 5.2 or not loading php at all.

i try'd:
AddHandler application/x-httpd-php55 .php

AddHandler x-mapp-php55 .php

AddHandler application/x-httpd-php55 .php .php5 .php4 .php3

<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
AddHandler application/x-httpd-php55 .php .php5 .php4 .php3
</FilesMatch>

How can i get php 5.5 working without changing apache confs but per domain base with htaccess ?

Do i need to set some variable where to find php55 or something like that ?

Thanks in advanced
 
Hello,

How do you have php55 installed? That should be suPHP.

Should you need someone to do it for you, please let me know by PM. I'll be happy to give you my hand and set it up for you.
 
I'd recommend having CB 2.0 installed on the system. It still allows you to install PHP 5.2 manually.
 
Hello,

How do you have php55 installed? That should be suPHP.

Should you need someone to do it for you, please let me know by PM. I'll be happy to give you my hand and set it up for you.

Well i finaly got it installed true custombuild using: http://forum.directadmin.com/showthread.php?t=35175

But if i now add:
<FilesMatch "\.php$">
AddHandler x-httpd-php6 .php
</FilesMatch>

I get the script i tested i know for sure should be running fine under php 5.3

even a simple
PHP:
<?php echo "Hello world.";?>
wont work

Internal Server Error

Could not execute script "/home/user/domains/domain.com/public_html/index.php"
suPHP 0.7.1
 
Back
Top