MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Releases => Topic started by: MRatWork on 2014-05-10, 16:02:28
-
Because security issue related to php-fpm in php 5.3/5.4, php-fpm config need modified/adjustment.
In every php-fpm pool, must exists 'listen.owner', 'listen.group' and 'listen.mode' parameters. Without this parameters, we will see 'error 500' in website and panel.
To fix this issue, follow this steps:
yum clean all
## update Kloxo-MR and also others
yum update
## only for Kloxo-MR 6.5.1.b
sh /script/php53s-installer
## importance if using mariadb instead mysql
sh /script/php54s-installer
sh /script/fixlxphpexe php54s
## run cleanup
sh /script/cleanup
## to make sure php-fpm running well
killall -9 php-fpm
sh /script/restart
sh /script/restart-web
If using phpXYm series (aka 'multiple php'), reinstall via 'webserver configure'. The same way via ssh with 'sh /script/php53m-installer' (example for php53m).
-
Thanks for the instructions;
the udate went smoothly :)
Although I didn't find /script/php53s-installer on Centos 6, there is php53s-extension-install instead. What do we do now?
Thanks
-
Check again php53s-installer file. No problem if we still using 'old' version of php53s in 'new' version but not otherwise.
-
Hello Mustafa.
I am using the stable version of Kloxo-MR and I still can't use PHP-FPM after the update. I have followed your update instructions but cannot downgrade PHP53u
A. Kloxo-MR: 6.5.0.f-2014020301
B. OS: CentOS release 6.5 (Final) x86_64
C. Apps:
1. MySQL: mysql-5.5.34-1.el6.x86_64
2. PHP: php53u-5.3.28-3.ius.el6.x86_64
3. Httpd: httpd-2.2.27-1.el6.x86_64
4. Lighttpd: --uninstalled--
5. Nginx: --uninstalled--
6. Qmail: qmail-toaster-1.03-1.3.35.mr.el6.x86_64
- with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64
7. Dns: bind-9.9.5-1.el6.x86_64
D. Php-type (for Httpd/proxy): fcgid_event
Thanks for your help
-
This issue only impact for php-fpm_event/php-fpm_worker (in apache or -proxy) or nginx or lighttpd. No impact for fcgid/mod_php/suphp
-
Mustafa,
I am using fcgid because I cannot use PHP-FPM.... I thought that was implicit
EDIT: any help on fixing the issue would be great.
Thanks
-
I was able to fix the issue, for those who maybe facing the same issue with PHP 5.4 + PHP-FPM on the Kloxo MR Stable here is what I had to do:
(Make sure you're using PHP 5.4 in the webserver config of the control panel)
- on mratwork.repo add/modify:
[mratwork-ius]
name=MRatWork - IUS Community Packages for EL $releasever - arch
baseurl=http://dl.iuscommunity.org/pub/ius/stable/Redhat/$releasever/$basearch
mirrorlist=http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-el$releasever&arch=$basearch
enabled=1
gpgcheck=0
exclude=php52* mysql51* php53* php54*
[mratwork-ius-archive]
name=MRatWork - IUS Community Packages for EL $releasever (archive) - arch
baseurl=http://dl.iuscommunity.org/pub/ius/archive/Redhat/$releasever/$basearch
enabled=1
gpgcheck=0
exclude=mysql51* php53*-5.3.28* php54*-5.4.28
- then run the following:
yum clean all
yum downgrade php54*
sh /script/restart-web
If all goes well you should be on PHP 5.4.(x86_64 0:5.4.27-1.ius.el6) and PHP-FPM should be working.
Note: This should also work for PHP 5.3 but I did not test it.
-
Hello Mustafa.
I'm with a new installation of Kloxo 6.5.0.f in a clean VPS with Centos 6.5 64bit
I used the tutorial: https://github.com/mustafaramadhan/kloxo/blob/dev/how-to-install.txt
cd /
yum update -y
yum install yum-utils yum-priorities vim-minimal subversion curl zip unzip -y
yum install telnet wget -y
setenforce 0
echo 'SELINUX=disabled' > /etc/selinux/config
cd /tmp
wget https://github.com/mustafaramadhan/kloxo/raw/rpms/release/neutral/noarch/mratwork-testing-0.0.1-1.noarch.rpm --no-check-certificate
rpm -ivh mratwork-testing-0.0.1-1.noarch.rpm
cd /
yum update mratwork-* -y
yum install kloxomr -y
sh /script/upcp -y
reboot
After completing the installation the problem came with the update, because I can not find the file php53s-installer
(http://revendalinux.net.br/screenshot%20kloxomr-6.5.0.f.png)
What should I do to get a clean and updated installation of Kloxo-mr?
-
Php53s-installer only exist if install Kloxo-MR 6.5.1. Your Kloxo-MR is 6.5.0 and no need step:
## only for Kloxo-MR 6.5.1.b
sh /script/php53s-installer
## importance if using mariadb instead mysql
sh /script/php54s-installer
sh /script/fixlxphpexe php54s
-
Okay I understand
I had not read your instructions, I'm sorry.
Is there a way to install Kloxo 6.5.1.b without having to upgrade 6.5.0.f?
Because every time I follow with a clean install always results in version 6.5.0.f.
-
You must replace mratwork.repo with 'yum replace mratwork-release --replace-with=mratwork-testing' and then better re-run 'yum update; sh /script/cleanup'.