LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Development Forums » Kloxo Development » PHP 5.3 for Kloxo
PHP 5.3 for Kloxo [message #97796] Sun, 22 April 2012 14:52 Go to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
If you want to test out using PHP 5.3 test out the following.

wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm
rpm -i ius-release-1.0-10.ius.el5.noarch.rpm
rpm -i epel-release-5-4.noarch.rpm

yum -y remove php php-common
yum -y install php53u php53u-cli php53u-devel php53u-gd php53u-imap php53u-mbstring php53u-mysql php53u-pdo php53u-pear php53u-xml
cp /usr/local/lxlabs/kloxo/file/phpini/php.ini.template-5.2 /usr/local/lxlabs/kloxo/file/phpini/php.ini.template-5.3
chown -R lxlabs:lxlabs /usr/local/lxlabs/kloxo/file/phpini/php.ini.template-5.3


Then you will have to edit some Kloxo code so it better detects PHP's version.

In /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/lib.php
change:
function find_php_version()
{
        global $global_dontlogshell;
        $global_dontlogshell = true;
        $ret = lxshell_output("rpm", "-q", "php");
        $ver =  substr($ret, strlen("php-"), 3);
        $global_dontlogshell = false;
        return $ver;
}


to

function find_php_version()
{
        global $global_dontlogshell;
        $global_dontlogshell = true;
        //Can't use lxshell_output because of the STDERR
        $ret = shell_exec('php -r \'echo phpversion();\' 2>nul');
        $ver =  substr($ret, 0, 3);
        $global_dontlogshell = false;
        return $ver;
}


php -v should give you this output:

Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220090626,NTS
PHP 5.3.10 (cli) (built: Feb  2 2012 17:34:38)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with the ionCube PHP Loader v4.0.14, Copyright (c) 2002-2011, by ionCube Ltd.


I haven't looked further into that error yet.

You'll need to go to the PHP COnfiguration page in Kloxo for the changes to take effect.


https://www.mercuryvps.com
HyperVM Xen VPS hosting

[Updated on: Sun, 22 April 2012 14:54]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #97818 is a reply to message #97796] Tue, 24 April 2012 03:20 Go to previous messageGo to next message
mihha is currently offline mihha  Croatia
Messages: 4
Registered: April 2011
Location: Zagreb
Member
Hi Shazar,

I tried your suggested upgrade process on two different VPS servers and the results are somehow different on those servers.

On one server php was upgraded to version 5.3.3. On another server php was upgraded to 5.3.10. I have to say that both servers had exactly the same starting configuration.

I also noticed that suphp is not working at all. I tried to remove suphp with yum and install new version from the source code but it just doesn't work.

Can you please try to explain how to make suphp to work correctly with new version of php? Or any other secure mod for apache. Without this feature, hosting any kind of php system (for example Joomla) doesn't make sense on such environment

Thank you very much for this tutorial. Can you please try to extend it to work correctly with the secure environment?

Thank you in advance!
Re: PHP 5.3 for Kloxo [message #97821 is a reply to message #97818] Tue, 24 April 2012 08:52 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
Well I am only working on this with mod_php, though I am working to secure it. This PHP process is an extension of my work on a new apache driver that uses the mpm-itk which provides running php per user. Also I will be adding some more things in to allow all of the configurations in Kloxo to be hard set and unchangable by the users even with mod_php. Some of these settings include the max memory and disabled functions. Sorry that I can't do anything with the suphp portion of this. If you want to test out the full driver that I am working on, you can send me a PM as I requested in my other thread regarding the driver.

https://www.mercuryvps.com
HyperVM Xen VPS hosting
Re: PHP 5.3 for Kloxo [message #97825 is a reply to message #97796] Tue, 24 April 2012 15:13 Go to previous messageGo to next message
mihha is currently offline mihha  
Messages: 4
Registered: April 2011
Location: Zagreb
Member
PM sent
Re: PHP 5.3 for Kloxo [message #98134 is a reply to message #97825] Sat, 12 May 2012 11:18 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
I'm using ruid2 with PHP 5.4.3 from remi-repo. Works great.

PHP 5.4.3 (cli) (built: May  9 2012 17:03:20)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with TrueBug PHP Loader v1.2.0, Copyright (c) 2006-2011, by TrueBug Software
    with the ionCube PHP Loader v4.1.0, Copyright (c) 2002-2012, by ionCube Ltd.

[Updated on: Sat, 12 May 2012 11:26]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #98147 is a reply to message #98134] Sun, 13 May 2012 09:29 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
But again Spacedust, you've half-assed it. Kloxo will not find it as version 5.4 for certain things. I told you how you can patch this temporarily, but you ignored me. I do plan to add the version checking change to Kloxo, once thoroughly tested.

https://www.mercuryvps.com
HyperVM Xen VPS hosting
Re: PHP 5.3 for Kloxo [message #98150 is a reply to message #98134] Sun, 13 May 2012 16:58 Go to previous messageGo to next message
mihha is currently offline mihha  
Messages: 4
Registered: April 2011
Location: Zagreb
Member
Spacedust wrote on Sat, 12 May 2012 17:18
I'm using ruid2 with PHP 5.4.3 from remi-repo. Works great.

PHP 5.4.3 (cli) (built: May  9 2012 17:03:20)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with TrueBug PHP Loader v1.2.0, Copyright (c) 2006-2011, by TrueBug Software
    with the ionCube PHP Loader v4.1.0, Copyright (c) 2002-2012, by ionCube Ltd.



Would you care to provide step by step instructions how you installed this and configured it to work correctly without a problem?

Thank you in advance!
Re: PHP 5.3 for Kloxo [message #98216 is a reply to message #98150] Fri, 18 May 2012 12:50 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
Create file

touch /usr/local/lxlabs/kloxo/file/phpini/htaccesstemp


copy and paste contents of this file using vim:

vim /usr/local/lxlabs/kloxo/file/phpini/htaccesstemp


CTRL+C for the code below then CTLR+V

then type :wq! to save the file

php_value upload_max_filesize 128M
php_value max_execution_time  120
php_value max_input_time  -1
php_value memory_limit  128M
php_value post_max_size  128M
php_flag display_errors  __lx__display_error_flag
php_flag file_uploads  __lx__file_uploads_flag
php_flag log_errors  __lx__log_errors_flag
php_flag output_buffering  __lx__output_buffering_flag
php_flag register_argc_argv  __lx__register_argc_argv_flag
php_flag mysql.allow_persistent  __lx__mysql_allow_persistent_flag
php_flag register_long_arrays  __lx__register_long_arrays_flag
php_flag allow_url_fopen  __lx__allow_url_fopen_flag
php_flag cgi.force_redirect  __lx__cgi_force_redirect_flag
php_flag enable_dl  __lx__enable_dl_flag


Protect the file against Kloxo updates:

chattr +i /usr/local/lxlabs/kloxo/file/phpini/htaccesstemp


Create file:

touch /usr/local/lxlabs/kloxo/file/phpini/php.ini.temp


vim /usr/local/lxlabs/kloxo/file/phpini/php.ini.temp


CTRL+C for the code below then CTLR+V

then type :wq! to save the file

[PHP]
engine = On
asp_tags = Off
precision = 14
output_buffering = __lx__output_buffering_flag
zlib.output_compression = __lx__output_compression_flag
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
disable_functions = shell_exec
disable_classes =
zend.enable_gc = On
expose_php = Off
max_execution_time = 180
max_input_time = -1
memory_limit = 128M
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
display_errors = __lx__display_error_flag
display_startup_errors = Off
log_errors = __lx__log_errors_flag
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = __lx__register_argc_argv_flag
auto_globals_jit = On
post_max_size = 128M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
enable_dl = __lx__enable_dl_flag
file_uploads = __lx__file_uploads_flag
upload_max_filesize = 128M
max_file_uploads = 20
allow_url_fopen = __lx__allow_url_fopen_flag
allow_url_include = __lx__allow_url_include_flag
default_socket_timeout = 60
[CLI Server]
cli_server.color = On
[Date]
[filter]
[iconv]
[intl]
[sqlite]
[sqlite3]
[Pcre]
[Pdo]
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=
[Phar]
[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
mail.add_x_header = On
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]
ibase.allow_persistent = 1
ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = __lx__mysql_allow_persistent_flag
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
[OCI8]
[PostgreSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[bcmath]
bcmath.scale = 0
[browscap]
[Session]
session.save_handler = files
session.save_path = __lx__session_save_path_flag
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = Off
session.bug_compat_warn = Off
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 5
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
[Assertion]
[COM]
[mbstring]
[gd]
[exif]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[mcrypt]
[dba]

date.timezone = "Europe/Warsaw"

zend_extension=/usr/lib/kloxophp/ioncube/ioncube_loader_lin_5.4.so


Protect the file against Kloxo updates:

chattr +i /usr/local/lxlabs/kloxo/file/phpini/php.ini.temp


Download IonCube loaders for PHP 5.4 and unpack them into: /usr/lib/kloxophp/ioncube

cd /usr/lib/kloxophp;
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz;
tar -xzvf ioncube_loaders_lin_x86-64.tar.gz


Install remi repo:

wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm;
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm;
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm


Update php:

yum update php --enablerepo=remi-test


Then just update php.ini files:

/script/fixphp


and restart apache

/etc/init.d/httpd restart


or lighttpd:

/etc/init.d/lighttpd restart


That's it !
Re: PHP 5.3 for Kloxo [message #98219 is a reply to message #98216] Fri, 18 May 2012 15:19 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
What are the negatives to putting this php rpm in the lxcenter repo? Will certain configs not work? In the driver I am working on, I am making mod_php as secure as suphp, so that will be one less thing to worry about.

https://www.mercuryvps.com
HyperVM Xen VPS hosting
Re: PHP 5.3 for Kloxo [message #98261 is a reply to message #98219] Tue, 22 May 2012 03:51 Go to previous messageGo to next message
djscooby is currently offline djscooby  Greece
Messages: 90
Registered: August 2011
Valuable Member
Hi shazam and spacedust

Any updates on whats working and whats not ?
I really need a newer version of php cuase of some issues with current one, and i don't know which one of these to try ?

also is it possible to revert back in your releases to previous working version ?

looking forward for your answers

thanks
Re: PHP 5.3 for Kloxo [message #98744 is a reply to message #98261] Tue, 19 June 2012 22:35 Go to previous messageGo to next message
webmaisterpro is currently offline webmaisterpro  Thailand
Messages: 3
Registered: July 2011
Location: Pattaya, Thailand
Member

I definitely look to test PHP 5.3 on Kloxo, I guess that in near future all scripts will support only 5.3

Re: PHP 5.3 for Kloxo [message #98751 is a reply to message #98744] Wed, 20 June 2012 07:42 Go to previous messageGo to next message
Artis is currently offline Artis  Croatia
Messages: 37
Registered: February 2011
Location: Zagreb, Croatia
Member
@ shazar - I install by your instructions PHP 5.3 but when I try php -v nothing is in output.

I install php 5.4 and it is working

Shazar if you say how to install PHP 5.3 I can test php on server (test server with 4 clients) and user will report problems.
Re: PHP 5.3 for Kloxo [message #98753 is a reply to message #98751] Wed, 20 June 2012 07:47 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
Artis - Is there any indication of a failure in the instructions? I have run through these quite a few times with no problems. I would suggest starting from a fresh install of the OS and Kloxo and then trying my php 5.3 instructions line by line doing some checks to ensure that each line ran successfully.

https://www.mercuryvps.com
HyperVM Xen VPS hosting
Re: PHP 5.3 for Kloxo [message #98756 is a reply to message #98753] Wed, 20 June 2012 08:26 Go to previous messageGo to next message
Artis is currently offline Artis  Croatia
Messages: 37
Registered: February 2011
Location: Zagreb, Croatia
Member
Today i will try again from fresh install and will let you know what is the result of installation
Re: PHP 5.3 for Kloxo [message #98786 is a reply to message #98756] Thu, 21 June 2012 08:18 Go to previous messageGo to next message
Artis is currently offline Artis  Croatia
Messages: 37
Registered: February 2011
Location: Zagreb, Croatia
Member
Here i have problem

[root@Server ~]# rpm -i ius-release-1.0-10.ius.el5.noarch.rpm
warning: ius-release-1.0-10.ius.el5.noarch.rpm: Header V4 DSA signature: NOKEY, key ID 9cd4953f
error: Failed dependencies:
        epel-release is needed by ius-release-1.0-10.ius.el5.noarch
[root@Server ~]# rpm -i epel-release-5-4.noarch.rpm
warning: epel-release-5-4.noarch.rpm: Header V4 DSA signature: NOKEY, key ID 9cd4953f

[Updated on: Thu, 21 June 2012 08:18]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #98787 is a reply to message #98786] Thu, 21 June 2012 08:30 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
Artis - Sorry I have not tried 5.4 at all. My instructions are for 5.3. SpaceDust hijacked the thread a little sorry for the confusion. I will not be testing 5.4 anytime soon. Also if testing the Apache driver that I PMed you, please don't mix the testing.

https://www.mercuryvps.com
HyperVM Xen VPS hosting
Re: PHP 5.3 for Kloxo [message #98788 is a reply to message #98787] Thu, 21 June 2012 08:37 Go to previous messageGo to next message
Artis is currently offline Artis  Croatia
Messages: 37
Registered: February 2011
Location: Zagreb, Croatia
Member
This eror i get when i try to install PHP 5.3 from your instructions on the top of this topic.

I'm reinstalling my server now for appache testing, it will take about 2 hours because i must backup my clients first.


Re: PHP 5.3 for Kloxo [message #98789 is a reply to message #98788] Thu, 21 June 2012 08:51 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
I haven't done any testing with backup and restore. So keep that in mind...

Regarding that error, I'll test it out tonight.


https://www.mercuryvps.com
HyperVM Xen VPS hosting
Re: PHP 5.3 for Kloxo [message #98982 is a reply to message #98789] Sun, 01 July 2012 09:40 Go to previous messageGo to next message
florian26 is currently offline florian26  France
Messages: 50
Registered: May 2012
Valuable Member
Hello,

I have this problem too to install php 5.3.10, server put me 5.3.3 :/
Re: PHP 5.3 for Kloxo [message #98986 is a reply to message #98787] Sun, 01 July 2012 12:05 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
shazar wrote on Thu, 21 June 2012 14:30
Artis - Sorry I have not tried 5.4 at all. My instructions are for 5.3. SpaceDust hijacked the thread a little sorry for the confusion. I will not be testing 5.4 anytime soon. Also if testing the Apache driver that I PMed you, please don't mix the testing.


The same instructions are for PHP 5.3. Just don't use remi-test repo, but normal remi repo.

yum update php --enablerepo=remi


and change line in php.ini:

zend_extension=/usr/lib/kloxophp/ioncube/ioncube_loader_lin_5.3.so

[Updated on: Sun, 01 July 2012 12:05]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #98987 is a reply to message #98982] Sun, 01 July 2012 12:12 Go to previous messageGo to next message
florian26 is currently offline florian26  France
Messages: 50
Registered: May 2012
Valuable Member
I think i have found :

not do :
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm
rpm -i ius-release-1.0-10.ius.el5.noarch.rpm
rpm -i epel-release-5-4.noarch.rpm


do :
sudo yum install yum-plugin-replace



but i see :
package php is not installed

in Compoment Info, and php is red.


and with php -v :
Quote:
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220090
626,NTS
PHP 5.3.14 (cli) (built: Jun 25 2012 11:39:59)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with the ionCube PHP Loader v4.0.14, Copyright (c) 2002-2011, by ionCube Ltd.

[Updated on: Sun, 01 July 2012 12:16]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #98988 is a reply to message #98987] Sun, 01 July 2012 13:17 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Php 5.3+ need zend-guard-loader instead zen-optimizer-loader. Sadly, no zend package from ius. Get this package from atomic.

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: PHP 5.3 for Kloxo [message #98990 is a reply to message #98988] Sun, 01 July 2012 14:22 Go to previous messageGo to next message
florian26 is currently offline florian26  France
Messages: 50
Registered: May 2012
Valuable Member
Hello mustafaramadhan,

How can i install zend-guard-loader and remove zen-optimizer-loader ? zen-optimizer is not used so i can remove it, no?

And with this, compoment info will be green with php ?

Friendly,
Florian

[Updated on: Sun, 01 July 2012 14:23]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #98995 is a reply to message #98990] Sun, 01 July 2012 16:52 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Ioncube and zend-loader only needed when some php script needed. If not, you can remove from 'php config'.

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: PHP 5.3 for Kloxo [message #98996 is a reply to message #98995] Sun, 01 July 2012 17:04 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

If still want installed, follow this step:

1. Uninstall/disable xcache, ioncube and zend from 'php config' on kloxo panel
2. create /etc/yum.repos.d/atomic.repo with content:
[atomic]
name=atomic - atomicrocketturtle.com
baseurl=http://www.atomicorp.com/channels/atomic/centos/5/$basearch/
enabled=1
gpgcheck=0
includepkgs=mod_ruid* php-zend*

3. install one-by-one depend on what you want:
yum install php53u-xcache
yum install php-zend-guard-loader
yum install php53u-ioncube-loader
yum install php53u-xcache
yum install php53u-suhosin


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Sun, 01 July 2012 17:40]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #98997 is a reply to message #98996] Sun, 01 July 2012 17:18 Go to previous messageGo to next message
florian26 is currently offline florian26  France
Messages: 50
Registered: May 2012
Valuable Member
Hello,

Thanks Smile I will try after this question :
yum install php-XXXXX
it's not php53-XXXXX ? to have php 5.3.xx ?
Re: PHP 5.3 for Kloxo [message #98998 is a reply to message #98997] Sun, 01 July 2012 17:41 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Thanks. Make correction for it.

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: PHP 5.3 for Kloxo [message #98999 is a reply to message #98998] Sun, 01 July 2012 17:52 Go to previous messageGo to next message
florian26 is currently offline florian26  France
Messages: 50
Registered: May 2012
Valuable Member
I have seen our modification, but "php-zend-guard-loader" it's good?

And how do it do ? what is their utilities ?

I can install it and disable it in kloxo and able if i want after ?

[Updated on: Sun, 01 July 2012 18:08]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #99000 is a reply to message #98999] Sun, 01 July 2012 18:27 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

1. It's because ius not serve zend-guard, so must taken from atomic
2. if using xcache, zend and ioncue, don't change setting on 'php config' except disable for them. It's because kloxo have their own package and not compatible with php 5.3
3. zend-guard is zend-optimizer but for php 5.3+


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Sun, 01 July 2012 18:31]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #99003 is a reply to message #99000] Mon, 02 July 2012 00:50 Go to previous messageGo to next message
florian26 is currently offline florian26  France
Messages: 50
Registered: May 2012
Valuable Member
Ok thanks Smile !

I have seen our modification, but "php-zend-guard-loader" it's good?

what do it do ? what is their utilities exactly ?

I see mod_ruid, what is it ? and what is mod_php and other exactly ?

And, do you know how kloxo can see php 5.3 in Component Info ?

To do the upgrade, before i used "rpm -qa | grep -i php" but how can i check update and update php and his package ?

Sorry to all this question, i try to understand perfectly ^^.

[Updated on: Mon, 02 July 2012 00:52]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #99005 is a reply to message #99003] Mon, 02 July 2012 04:00 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Ioncube and zend only needed when we are using php encyption code (payed apps like cpanel, directadmin). If we are using open-source only we don't need ioncube and zend.

Kloxo (until current version; 6.1.12) using 'special' ioncube and zend. So, disabling it from kloxo panel make kloxo not handle them. And then we need manual install when need ioncube and zend. Also because ioncube and zend from kloxo not compatible for php 5.3+.

If using php from ius, php upgrade with command 'yum upgrade php53u' (except for zend-guard; need 'yum upgrade php-zend-guard-loader).


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: PHP 5.3 for Kloxo [message #99011 is a reply to message #99005] Mon, 02 July 2012 12:33 Go to previous messageGo to next message
florian26 is currently offline florian26  France
Messages: 50
Registered: May 2012
Valuable Member
Ok. Perfect !

And to Php Type (in webserver config on kloxo), how can i choose ? with kloxo again ? and what is their difference exactly ?

In php config on kloxo, in Advanced PHP Config, can i change this configuration or i must do other way ?

Thanks,

Friendly,
Florian
Re: PHP 5.3 for Kloxo [message #99013 is a reply to message #99011] Mon, 02 July 2012 13:08 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

All facilities still work except you must set disable xcache, zend and ioncube (and then install manually). In this current version, using suphp (select on 'webserver config') always using php 5.2. Need modified kloxo code. But, you can selet mod_php_ruid2 as alternative.

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: PHP 5.3 for Kloxo [message #99015 is a reply to message #99013] Mon, 02 July 2012 14:05 Go to previous messageGo to next message
florian26 is currently offline florian26  France
Messages: 50
Registered: May 2012
Valuable Member
Ok. Thanks.

I use mod_php, it's good ? and what is their difference betwen suphp / suphp_worker / suphp_event / mod_php / mod_php_ruid2 / mod_php_itk ?
Re: PHP 5.3 for Kloxo [message #99020 is a reply to message #99015] Mon, 02 July 2012 23:02 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

florian26 wrote on Tue, 03 July 2012 01:05
Ok. Thanks.

I use mod_php, it's good ? and what is their difference betwen suphp / suphp_worker / suphp_event / mod_php / mod_php_ruid2 / mod_php_itk ?

Use mod_php_ruid2 because speed like mod_php and secure. Also minimize ftp issue.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: PHP 5.3 for Kloxo [message #99036 is a reply to message #99020] Tue, 03 July 2012 07:08 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
mustafaramadhan wrote on Tue, 03 July 2012 05:02
florian26 wrote on Tue, 03 July 2012 01:05
Ok. Thanks.

I use mod_php, it's good ? and what is their difference betwen suphp / suphp_worker / suphp_event / mod_php / mod_php_ruid2 / mod_php_itk ?

Use mod_php_ruid2 because speed like mod_php and secure. Also minimize ftp issue.


mod_php_ruid2 works ok till version 0.9.4. All newer editions are causing very high system load. Can you test this Mustafa ?
Re: PHP 5.3 for Kloxo [message #99041 is a reply to message #99036] Tue, 03 July 2012 07:31 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Spacedust wrote on Tue, 03 July 2012 18:08
mustafaramadhan wrote on Tue, 03 July 2012 05:02
florian26 wrote on Tue, 03 July 2012 01:05
Ok. Thanks.

I use mod_php, it's good ? and what is their difference betwen suphp / suphp_worker / suphp_event / mod_php / mod_php_ruid2 / mod_php_itk ?

Use mod_php_ruid2 because speed like mod_php and secure. Also minimize ftp issue.


mod_php_ruid2 works ok till version 0.9.4. All newer editions are causing very high system load. Can you test this Mustafa ?

Not testing because more focus/interest to optimizing php-fpm (in context httpd and nginx-proxy).

For using php-fpm, apache-optimize not importance but need optimize for php-fpm.

For mod_php_ruid2 (also other mod_php), optimize value for 'max_children' is around 10 (on 512 MB ram). Nothing problem 'max_children' until around 40 for php-fpm. Speed near equal for the same 'max_children' value.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Tue, 03 July 2012 07:37]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #99070 is a reply to message #99041] Tue, 03 July 2012 17:44 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
Can you tell me if php-fpm shows script path instead of /usr/sbin/httpd when your run top and press c just like php-cgi on lighttpd ?

[Updated on: Tue, 03 July 2012 17:44]

Report message to a moderator

Re: PHP 5.3 for Kloxo [message #99071 is a reply to message #99070] Tue, 03 July 2012 17:57 Go to previous messageGo to next message
xXTensaZenXx is currently offline xXTensaZenXx  United States
Messages: 4
Registered: July 2012
Member
Sweet
Re: PHP 5.3 for Kloxo [message #99078 is a reply to message #99070] Wed, 04 July 2012 01:45 Go to previous messageGo to previous message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5669
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Spacedust wrote on Wed, 04 July 2012 04:44
Can you tell me if php-fpm shows script path instead of /usr/sbin/httpd when your run top and press c just like php-cgi on lighttpd ?


Example when select 'running process' on webmin for nginx-proxy (select php-fpm_event on 'webserver confing' for httpd):

index.php?t=getfile&id=1665&private=0
Note:

- We can see 5 php-fpm instances because my fork setting max_children always as 5.
- On php 5.2, php-fpm instance only for 'static' but have 'static', 'dynamic' and 'ondemand' for php 5.3.3+


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Wed, 04 July 2012 01:54]

Report message to a moderator

Previous Topic:apache-optimize should be removed until better thought out.
Next Topic:seeking for help dns
Goto Forum:
  


Current Time: Sun May 19 11:11:07 EDT 2013

Total time taken to generate the page: 0.01961 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software