Koozali.org: home of the SME Server

Need testers : Smeserver-php-scl

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Need testers : Smeserver-php-scl
« 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)

Code: [Select]
/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:
Code: [Select]
signal-event yum-modifythen install the contrib
Code: [Select]
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

Code: [Select]
[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

Code: [Select]
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.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: Need testers : Smeserver-php-scl
« Reply #1 on: February 11, 2015, 10:19:24 PM »
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?
- Mark

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #2 on: February 11, 2015, 11:00:56 PM »
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
« Last Edit: February 11, 2015, 11:05:45 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: Need testers : Smeserver-php-scl
« Reply #3 on: February 12, 2015, 12:54:21 AM »
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.

Code: [Select]
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
« Last Edit: February 12, 2015, 01:18:05 AM by Mophilly »
- Mark

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #4 on: February 12, 2015, 01:49:17 AM »
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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline bclayton

  • *
  • 137
  • +0/-0
Re: Need testers : Smeserver-php-scl
« Reply #5 on: February 12, 2015, 02:01:59 AM »
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!

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: Need testers : Smeserver-php-scl
« Reply #6 on: February 12, 2015, 02:05:20 AM »
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! :-)
- Mark

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #7 on: February 12, 2015, 02:18:06 AM »
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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #8 on: February 16, 2015, 05:34:30 PM »
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.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #9 on: February 21, 2015, 09:16:04 AM »
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

Code: [Select]
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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: Need testers : Smeserver-php-scl
« Reply #10 on: February 21, 2015, 06:23:24 PM »
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.

Code: [Select]
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   
« Last Edit: February 21, 2015, 06:25:00 PM by Mophilly »
- Mark

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: Need testers : Smeserver-php-scl
« Reply #11 on: February 21, 2015, 07:12:00 PM »
Ran the new update. Seems to be fine.

Spotted this error the httpd error log:
Quote
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.

Code: [Select]
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.
« Last Edit: February 21, 2015, 08:49:08 PM by Mophilly »
- Mark

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #12 on: February 21, 2015, 11:08:31 PM »
my bad :)

thanks for reporting
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

guest22

Re: Need testers : Smeserver-php-scl
« Reply #13 on: February 22, 2015, 12:34:04 AM »
my bad :)

thanks for reporting


I'm rolling out that shining guillotine again... ;-)

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #14 on: February 22, 2015, 05:40:09 PM »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #15 on: February 22, 2015, 06:06:16 PM »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

guest22

Re: Need testers : Smeserver-php-scl
« Reply #16 on: February 22, 2015, 09:49:02 PM »
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

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: Need testers : Smeserver-php-scl
« Reply #17 on: February 22, 2015, 10:01:18 PM »
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.
- Mark

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #18 on: February 22, 2015, 10:05:06 PM »
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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: Need testers : Smeserver-php-scl
« Reply #19 on: February 22, 2015, 10:19:32 PM »
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!
- Mark

guest22

Re: Need testers : Smeserver-php-scl
« Reply #20 on: February 22, 2015, 10:31:27 PM »
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.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #21 on: February 22, 2015, 10:42:54 PM »
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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline bclayton

  • *
  • 137
  • +0/-0
Re: Need testers : Smeserver-php-scl
« Reply #22 on: February 23, 2015, 12:20:48 AM »
I, too, installed and see no problems.  Thanks!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Need testers : Smeserver-php-scl
« Reply #23 on: February 23, 2015, 12:41:12 PM »
released
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!