PHP 5.2 with Elastix 2.0 stable

arrow1

Joined
Nov 21, 2010
Messages
89
Likes
0
Points
0
#1
With fully respect Elastix 2.0 has obsolete PHP 5.1 version that almost everyone in programmers world using 5.2 at least.

I am new to Elastix and messing up with PHP without any hints is not a best idea especially on life and company' PBX .....

Unfortunately 5.2 is not easy set up with 2.0


One guy wrote on the forum that he was able to set up 5.2 with Elastix 2.0 but he did not gave any details and asked by others for that one line of stupid code did not reply.

I thought people share knowledge on this forum

Regards,

Arrow
 

izrunas

Joined
Mar 4, 2009
Messages
94
Likes
0
Points
0
#2
I need information on this as well. I need to be able to run PHP 5.2.8 or better on my Elastix 2.x servers.

Thanks!
 

RustBoy

Joined
Apr 13, 2011
Messages
97
Likes
0
Points
16
#3
This is the third thread that I have found asking this same question. So far, no answers. :(
 

danardf

Joined
Dec 3, 2007
Messages
8,069
Likes
10
Points
88
#4
Hi.

Maybe try to asking your issue into bugs.elastix.org across an official manner?
This kind of stuff:
Impossible to install php5.2 into an Elastix server.

However, if i compare your demand with my hosting, with an .htaccess file, i can select a different php engine. Basically, i've php4, and i can select php5.2 by these parameters.

Code:
AddHandler x-httpd-php5 .php
AddType application/x-httpd-php5 .php
Maybe it's a way?!

If i was you, i'll try to find the way to install 2 php engine in the same server.

From my side, i don't know how to do it. but....Here you may have 2 solutions.

Regards
 

layen

Joined
Jul 31, 2010
Messages
9
Likes
0
Points
0
#5
just add in /etc/yum.repos.d/elastix.repo



[nux-php52]
name=nux-php52
baseurl=http://dl.nux.ro/rpm/$releasever/php52/$basearch/
gpgcheck=0
enabled=1


open ssh console

yum update php*

reboot after use in ssh console

php -v

good you have php 5.2 installed

you can install vtiger 5.3

if you want cdr report work after installing php 5.2, you must edit the file /var/www/html/libs/paloSantoCDR.class.php
In function listarCDRs() find a string:

$sPeticionSQL .= " LIMIT ? OFFSET ?";

and replace with:

$sPeticionSQL .= " LIMIT ".$limit." OFFSET ".$offset;

and comment a next string:
//array_push($paramSQL, $limit, $offset);

Good bye!
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,898
Messages
130,879
Members
17,560
Latest member
manuelc
Top