Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: stephdl on February 07, 2015, 11:28:52 PM
-
Something new to play.
The contrib allows two different things : ONLY for SME9_64bit
- Choose the php version you want per Ibay
- Choose the php version for the whole server.
Of course since it is Christmas
- you can choose between php54,php55,php56
- You have a panel for the Ibay settings
- You don't modify your server since all is based on the php scl collection of remi
From what I have tested, it is workable, except that our venerable Horde doesn't like recent version of PHP, you will have a lot of warnings in logs. But any other Webbapp I have tested are fine (I tested sogo and owncloud)
/sbin/e-smith/db yum_repositories set remi repository \
Name 'Remi - EL6' \
BaseURL 'http://rpms.famillecollet.com/enterprise/6/remi/$basearch/' \
EnableGroups no \
GPGCheck yes \
GPGKey http://rpms.famillecollet.com/RPM-GPG-KEY-remi \
Visible yes \
Exclude mysql*,php-* \
status disabled
After adding it to the database updating the configuration file is required:
signal-event yum-modify
then install the contrib
wget http://mirror.de-labrusse.fr/Sme-Server/smeserver-php-scl/smeserver-php-scl-0.4-1.el6.sme.x86_64.rpm
yum install smeserver-php-scl-0.4-1.el6.sme.x86_64.rpm --enablerepo=remi
signal-event php-update
For ibay you can use the panel, but if you want to set the php version for the whole server, you have to use the command line, first see the new db entries
[root@sme9b3dev64 ~]# config show php54
php54=configuration
AllowUrlFopen=Off
MaxExecutionTime=30
MaxFileUpload=20
MaxInputTime=60
MemoryLimit=128M
PhpModule=disabled
PostMaxSize=20M
UploadMaxFilesize=10M
[root@sme9b3dev64 ~]# config show php55
php55=configuration
AllowUrlFopen=Off
MaxExecutionTime=30
MaxFileUpload=20
MaxInputTime=60
MemoryLimit=128M
PhpModule=disabled
PostMaxSize=20M
UploadMaxFilesize=10M
[root@sme9b3dev64 ~]# config show php56
php56=configuration
AllowUrlFopen=Off
MaxExecutionTime=30
MaxFileUpload=20
MaxInputTime=60
MemoryLimit=128M
PhpModule=disabled
PostMaxSize=20M
UploadMaxFilesize=10M
in fact you have to choose which version you want to use in the phpmod of apache, for example
config setprop php56 PhpModule enabled
signal-event php-update
Since just one version can be used with php-mod, the lower version is used. After that if you need to install rpm for php needs, you have to install them from the remi repository and you have a lot of rpm. It starts by php54-php-xxx, something following the SCL php version.
-
This is an excellent contribution. Thank you for taking the time to create it.
We tested this on a new SME 9 config, and it is working nicely using the ibay specific option.
We use ownCloud with the postgres pdo and have compiled it into the SME PHP module. We will need it enabled in PHP 5.4 or 5.5.
Is that an option using the REMI bits? Do we need to compile PHP 5.4 and 5.5 with pgsql.so?
-
We use ownCloud with the postgres pdo and have compiled it into the SME PHP module. We will need it enabled in PHP 5.4 or 5.5.
Is that an option using the REMI bits? Do we need to compile PHP 5.4 and 5.5 with pgsql.so?
well php scl are a bit different if you want to build your own rpm, quite sure this could be done, but it is specific.
As I can see you have some module for pgsql in the remi repository, can you test and report ???
http://rpms.famillecollet.com/enterprise/6/remi/x86_64/
does the php-mod of the contrib is workable (load a new version of php for the whole server ?)
EDIT: it seems that you need to install it by yum
yum install php56-php-pgsql php55-php-pgsql php54-php-pgsql --enablerepo=remi
-
As I can see you have some module for pgsql in the remi repository, can you test and report ???
Yes, I am happy to try it. I will post back here as soon as possible but may be a day or two.
EDIT: As it happens, I have time now. I ran the yum install. It terminated normally. The system log contained the following lines. Note the errors at the end. Nevertheless, ownCloud 7 appears to work; I can log in and view the admin page.
EDIT 2: I enabled phpModule for php-56 per your post. The server manager comes up and I did not see any errors in the http-errors or system logs. I don't have webmail enabled on this box, so I cannot check horde.
Feb 11 16:01:34 japatul /etc/e-smith/web/panels/manager/cgi-bin/phpscl[4774]: /home/e-smith/db/accounts: OLD owncloud=ibay|AllowOverride|All|CgiBin|enabled|FollowSymLinks|enabled|Gid|5000|Group|admin|Name|ownCloud 7|PHPBaseDir|/home/e-smith/files/ibays/owncloud/:/tmp/|PasswordSet|no|PhpVersion|disabled|PublicAccess|global|SSL|enabled|Uid|5000|UserAccess|wr-group-rd-everyone
Feb 11 16:01:34 japatul /etc/e-smith/web/panels/manager/cgi-bin/phpscl[4774]: /home/e-smith/db/accounts: NEW owncloud=ibay|AllowOverride|All|CgiBin|enabled|FollowSymLinks|enabled|Gid|5000|Group|admin|Name|ownCloud 7|PHPBaseDir|/home/e-smith/files/ibays/owncloud/:/tmp/|PasswordSet|no|PhpVersion|php55|PublicAccess|global|SSL|enabled|Uid|5000|UserAccess|wr-group-rd-everyone
Feb 11 16:01:34 japatul esmith::event[4775]: Processing event: php-update
Feb 11 16:01:34 japatul esmith::event[4775]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Feb 11 16:01:34 japatul esmith::event[4775]: expanding /etc/php.ini
Feb 11 16:01:34 japatul esmith::event[4775]: expanding /etc/httpd/conf/httpd.conf
Feb 11 16:01:35 japatul esmith::event[4775]: expanding /opt/remi/php55/root/etc/php.ini
Feb 11 16:01:35 japatul esmith::event[4775]: expanding /opt/remi/php54/root/etc/php.ini
Feb 11 16:01:35 japatul esmith::event[4775]: expanding /opt/remi/php56/root/etc/php.ini
Feb 11 16:01:35 japatul esmith::event[4775]: generic_template_expand=action|Event|php-update|Action|generic_template_expand|Start|1423699294 935845|End|1423699295 175335|Elapsed|0.23949
Feb 11 16:01:35 japatul esmith::event[4775]: Running event handler: /etc/e-smith/events/actions/adjust-services
Feb 11 16:01:35 japatul esmith::event[4775]: adjusting supervised httpd-e-smith (sigusr1)
Feb 11 16:01:35 japatul esmith::event[4775]: adjusting supervised httpd-e-smith (up)
Feb 11 16:01:35 japatul esmith::event[4775]: adjust-services=action|Event|php-update|Action|adjust-services|Start|1423699295 175516|End|1423699295 212551|Elapsed|0.037035
Feb 11 16:01:35 japatul httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_pgsql.so' - /usr/lib64/php/modules/pdo_pgsql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
Feb 11 16:01:35 japatul httpd: PHP Warning: Module 'pgsql' already loaded in Unknown on line 0
-
Well I'm sorry but all php bug reports should be done to remi, He has a forum and an IRC chat also.
For now, when you will need a specific rpm, think to install it from remi
Please test and report
-
I agree--a Great Contrib. I installed it on my fully update v 9 and it seems to work perfectly. I have ownCloud and Joomla 3.3 running and it works on both. Thanks!
-
Well I'm sorry but all php bug reports should be done to remi, He has a forum and an IRC chat also.
For now, when you will need a specific rpm, think to install it from remi
Please test and report
Ok. I wasn't expecting specific assistance. I just posted what I saw in case it helped you.
Thanks for the contribution! :-)
-
Nice to see that it can help you, my next work will be to add a panel to set the php-mod, but i hadn't the time to do it
-
Can you post here the rpms that you installed from remi, like this we could add these as dependencies if they are important or really interesting.
-
New version with a panel to select the php version in php-mod
http://mirror.de-labrusse.fr/Sme-Server/smeserver-php-scl/
Please test and report
yum install http://mirror.de-labrusse.fr/Sme-Server/smeserver-php-scl/smeserver-php-scl-0.4-2.el6.sme.x86_64.rpm --enablerepo=remi
signal-event php-update
-
Can you post here the rpms that you installed from remi, like this we could add these as dependencies if they are important or really interesting.
As requested. This lists the packages installed after installing the php packages that have support for postgres, and before applying your recent update.
Installed Packages
gd-last.x86_64 2.1.1-1.el6.remi
php54.x86_64 2.0-2.el6.remi
php54-php.x86_64 5.4.37-1.el6.remi
php54-php-bcmath.x86_64 5.4.37-1.el6.remi
php54-php-cli.x86_64 5.4.37-1.el6.remi
php54-php-common.x86_64 5.4.37-1.el6.remi
php54-php-enchant.x86_64 5.4.37-1.el6.remi
php54-php-gd.x86_64 5.4.37-1.el6.remi
php54-php-imap.x86_64 5.4.37-1.el6.remi
php54-php-ldap.x86_64 5.4.37-1.el6.remi
php54-php-mbstring.x86_64 5.4.37-1.el6.remi
php54-php-mysqlnd.x86_64 5.4.37-1.el6.remi
php54-php-pdo.x86_64 5.4.37-1.el6.remi
php54-php-pear.noarch 1:1.9.5-4.el6.remi
php54-php-pecl-zip.x86_64 1.12.4-2.el6.remi
php54-php-pgsql.x86_64 5.4.37-1.el6.remi
php54-php-process.x86_64 5.4.37-1.el6.remi
php54-php-tidy.x86_64 5.4.37-1.el6.remi
php54-php-xml.x86_64 5.4.37-1.el6.remi
php54-runtime.x86_64 2.0-2.el6.remi
php55.x86_64 2.0-2.el6.remi
php55-php.x86_64 5.5.21-1.el6.remi
php55-php-bcmath.x86_64 5.5.21-1.el6.remi
php55-php-cli.x86_64 5.5.21-1.el6.remi
php55-php-common.x86_64 5.5.21-1.el6.remi
php55-php-enchant.x86_64 5.5.21-1.el6.remi
php55-php-gd.x86_64 5.5.21-1.el6.remi
php55-php-imap.x86_64 5.5.21-1.el6.remi
php55-php-ldap.x86_64 5.5.21-1.el6.remi
php55-php-mbstring.x86_64 5.5.21-1.el6.remi
php55-php-mysqlnd.x86_64 5.5.21-1.el6.remi
php55-php-pdo.x86_64 5.5.21-1.el6.remi
php55-php-pear.noarch 1:1.9.5-4.el6.remi
php55-php-pecl-jsonc.x86_64 1.3.6-1.el6.remi
php55-php-pecl-zip.x86_64 1.12.4-2.el6.remi
php55-php-pgsql.x86_64 5.5.21-1.el6.remi
php55-php-process.x86_64 5.5.21-1.el6.remi
php55-php-tidy.x86_64 5.5.21-1.el6.remi
php55-php-xml.x86_64 5.5.21-1.el6.remi
php55-runtime.x86_64 2.0-2.el6.remi
php56.x86_64 2.0-2.el6.remi
php56-php.x86_64 5.6.5-1.el6.remi
php56-php-bcmath.x86_64 5.6.5-1.el6.remi
php56-php-cli.x86_64 5.6.5-1.el6.remi
php56-php-common.x86_64 5.6.5-1.el6.remi
php56-php-enchant.x86_64 5.6.5-1.el6.remi
php56-php-gd.x86_64 5.6.5-1.el6.remi
php56-php-imap.x86_64 5.6.5-1.el6.remi
php56-php-ldap.x86_64 5.6.5-1.el6.remi
php56-php-mbstring.x86_64 5.6.5-1.el6.remi
php56-php-mysqlnd.x86_64 5.6.5-1.el6.remi
php56-php-pdo.x86_64 5.6.5-1.el6.remi
php56-php-pear.noarch 1:1.9.5-4.el6.remi
php56-php-pecl-jsonc.x86_64 1.3.6-1.el6.remi
php56-php-pecl-zip.x86_64 1.12.4-2.el6.remi
php56-php-pgsql.x86_64 5.6.5-1.el6.remi
php56-php-process.x86_64 5.6.5-1.el6.remi
php56-php-tidy.x86_64 5.6.5-1.el6.remi
php56-php-xml.x86_64 5.6.5-1.el6.remi
php56-runtime.x86_64 2.0-2.el6.remi
-
Ran the new update. Seems to be fine.
Spotted this error the httpd error log:
PHP: syntax error, unexpected '~' in /opt/remi/php55/root/etc/php.ini on line 97
I do not know what, if anything, the tilde character represents. Line 97 follows what may be the end of a custom template inclusion or a mod for the package.
Line 93: ;added by stephdl
Line 94: allow_url_include = Off
Line 95: default_socket_timeout = 60
Line 96:
Line 97: ~
Line 98: date.timezone = "America/Los_Angeles"
Line 99: [Syslog]
EDIT: I posted this error to the forum at famillecollet.com. Remi responded, saying that the line 97 is not part of the packages as distributed. I gather that means the extra character is being introduced downstream.
-
my bad :)
thanks for reporting
-
my bad :)
thanks for reporting
I'm rolling out that shining guillotine again... ;-)
-
yum install http://mirror.de-labrusse.fr/Sme-Server/smeserver-php-scl/smeserver-php-scl-0.4-3.el6.sme.x86_64.rpm --enablerepo=remi
signal-event php-update
-
http://wiki.contribs.org/PHP_Software_Collections
Please Add Missing Informations
-
What missing info please? And why is there a seperate page for all Software Collections pages are listed here http://wiki.contribs.org/Software_collections and PHP specific here http://wiki.contribs.org/Software_Collections:PHP
-
The three pages appear to offer different information.
"Software Collections" provides a synopsis of the category and offers a generalized instruction for adding new collections. The other two pages describe different collections for a single module, PHP.
"Software Collections:PHP" seems to describe how to change the PHP for the entire system. If I understand this correctly, there is a risk of unwanted behavior in dependent modules.
"PHP Software Collections" provides a server panel to control which of three PHP installations is run for a given iBay, and these other PHP installs run beside the PHP in the SME distro. That strikes me as a very safe approach.
-
I just wanted to get a page for the contrib software, and no informations about the hack of the beginning, but feel free to reorganise. However people if they need a contrib, they won't go to the howto side to find it
-
Regarding smeserver-php-scl-0.4-3.el6.sme.x86_64.rpm, I installed it. No errors on install, reboot was normal. The httpd error log is clear too.
Thanks!
-
The three pages appear to offer different information.
"Software Collections" provides a synopsis of the category and offers a generalized instruction for adding new collections. The other two pages describe different collections for a single module, PHP.
"Software Collections:PHP" seems to describe how to change the PHP for the entire system. If I understand this correctly, there is a risk of unwanted behavior in dependent modules.
"PHP Software Collections" provides a server panel to control which of three PHP installations is run for a given iBay, and these other PHP installs run beside the PHP in the SME distro. That strikes me as a very safe approach.
The Software Collections:PHP page needs to be updated with all other info. It was created but then abandoned. We need consistency on Software Collections.
-
Regarding smeserver-php-scl-0.4-3.el6.sme.x86_64.rpm, I installed it. No errors on install, reboot was normal. The httpd error log is clear too.
Thanks!
Then It smells like a soon release, thanks
-
I, too, installed and see no problems. Thanks!
-
released