Discussion:
[devinfo] PHP FPM progress
John Crisp
2017-10-05 13:17:48 UTC
Permalink
After running our new smeserver-php-fpm stuff on my personnal server for
a few days, I think it's ready for some wider use.
I've pushed it to our stable repo (fws), and have converted the
I have been trying to install this on a testbox but am getting errors

(Note from your instructions the remi-safe repo seems to be set to
enabled by default ??)

yum --enablerepo=fws,epel,remi-safe install smeserver-php-fpm

Then lots of these:

Error: Package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64 (fws)
Requires: php56-php-opcache

If I do --enable=* it seems to pick them up from the remi repo

php56-php-opcache x86_64 5.6.31-1.el6.remi remi 98 k

Any suggestions ?
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Daniel Berteaud
2017-10-05 13:20:01 UTC
Permalink
Post by John Crisp
After running our new smeserver-php-fpm stuff on my personnal server for
a few days, I think it's ready for some wider use.
I've pushed it to our stable repo (fws), and have converted the
I have been trying to install this on a testbox but am getting errors
(Note from your instructions the remi-safe repo seems to be set to
enabled by default ??)
yum --enablerepo=fws,epel,remi-safe install smeserver-php-fpm
Error: Package: smeserver-php-fpm-0.1.1-1.el6.fws.x86_64 (fws)
Requires: php56-php-opcache
If I do --enable=* it seems to pick them up from the remi repo
php56-php-opcache x86_64 5.6.31-1 <tel:6456311>.el6.remi remi 98 k
Any suggestions ?
You shouldn't need remi-safe, but smecontribs instead. Unless I made a
mistake, all the required RPMS from remi-safe have been imported into
smecontribs

++
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Visio : http://vroom.fws.fr/dani
/www.firewall-services.com/
John Crisp
2017-10-05 13:46:46 UTC
Permalink
Post by Daniel Berteaud
You shouldn't need remi-safe, but smecontribs instead. Unless I made a
mistake, all the required RPMS from remi-safe have been imported into
smecontribs
yum --enablerepo=smecontribs,fws,epel install smeserver-php-fpm

Seems to fix it.

Have you got a wiki page with the various settings ?

Any idea how you set a PHP version if you have something installed in /opt ?
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Daniel Berteaud
2017-10-05 14:16:31 UTC
Permalink
Post by John Crisp
Post by Daniel Berteaud
You shouldn't need remi-safe, but smecontribs instead. Unless I made a
mistake, all the required RPMS from remi-safe have been imported into
smecontribs
yum --enablerepo=smecontribs,fws,epel install smeserver-php-fpm
Seems to fix it.
Have you got a wiki page with the various settings ?
Haven't written anything yet, but here are the big lines:

* You have by default one fpm pool per major PHP version installed
(the stock PHP, either 5.3.3 or 5.4.16, 5.6, 7.0 and 7.1)
* You can run additional pools, whith their own settings
* If you use the Shared Folders contrib, every share will use its own
fpm pool


For the default pools, you can configure them like this:

db configuration setprop php-fpm MemoryLimit 256M
db configuration setprop php70-php-fpm UploadMaxFilesize 20M
signal-event webapps-update

The available settings are:

* MemoryLimit
* MaxExecutionTime
* MaxInputTime
* AllowUrlFopen
* MaxChildren
* PostMaxSize
* UploadMaxFilesize
* OpenBasedir
* DisableFunctions

I think you'll find out to which PHP setting they map. See
/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default00Header for the
default values for each of them.

For Shared Folders, you have the same props, except they are prefixed
with PHP (PHPMemoryLimit, PHPMaxExecutionTime etc...). And you also have
PHPVersion which can switch from one version to another:


db accounts setprop my_share PHPVersion 70

signal-event share-modify my_share
Post by John Crisp
Any idea how you set a PHP version if you have something installed in /opt ?
For a custom app, you just have to replace the classic "AddType
application/x-httpd-php .php .php3" with:

AddHandler php70-fastcgi .php

Or

AddHandler php56-fastcgi .php


If you want to create a custom FPM pool, you can also do it:

db php set vtiger pool AllowUrlFopen enabled MemoryLimit 512M
signal-event webapps-update

Now in your httpd.conf template, use:

AddHandler phpvtiger-fastcgi .php

(it's always php<name of the fpm pool>-fastcgi)

This lets you create independent pools, without touching the defaults
one. You can even go further and increase security by running a pool
under its own user account. Just create a user, then use:

db php setprop vtiger User vtiger Group vtiger
signal-event webapps-update

Now the "vtiger" application is running under the vtiger user account

Hope it helps :-)
Let me know if it's not clear or if you need more info
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Visio : http://vroom.fws.fr/dani
/www.firewall-services.com/
John Crisp
2017-10-05 14:00:48 UTC
Permalink
After running our new smeserver-php-fpm stuff on my personnal server for
a few days, I think it's ready for some wider use.
Another question...

I presume I could set a version globally ? If so, how?

I am just thinking about my PHP debugger with xdebug as it needs a link
in php.ini to the correct xdebug library e.g.

zend_extension = "/usr/lib64/php/modules/xdebug.so"

This library is for single version be that 5.3/5.4/5.6 or whatever.

So kind of thinking rather than set it per ibay just set it globally.

Any suggestions ?
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.
Daniel Berteaud
2017-10-05 14:22:43 UTC
Permalink
Post by John Crisp
Another question...
I presume I could set a version globally ? If so, how?
Nope, there's no global version because the goal is get rid of mod_php.
When using only FPM pools, there's no default version. You can just run
as many pool you want, and use the one you want for each app.

For your xdebug extension, you should just install the version you
need/want from remi-safe repo

yum --enablerepo=remi-safe install php70-php-pecl-xdebug

Then restart the corresponding service:

/etc/init.d/php70-php-fpm

And you should be done
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Visio : http://vroom.fws.fr/dani
/www.firewall-services.com/
John Crisp
2017-10-10 12:38:15 UTC
Permalink
After running our new smeserver-php-fpm stuff on my personnal server for
a few days, I think it's ready for some wider use.
OK, I'm failing so far...


db accounts setprop Primary PHPVersion 56
signal-event share-modify Primary
signal-event webapps-update

If I add a phpinfo file in the Primary/html directory and then run:

php -f phpinfo.php |grep PHP\ Version

I get:

PHP Version => 5.3.3

I clearly have some pools running:

[***@test html]# ps -e |grep php
13254 ? 00:00:00 php-fpm
13255 ? 00:00:00 php-fpm
13256 ? 00:00:00 php-fpm
13257 ? 00:00:00 php-fpm
..... blah


db configuration show php-fpm
php-fpm=service
status=enabled

db configuration show php56-php-fpm
php56-php-fpm=service
status=enabled


I have missed something but no idea what or where !

_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Daniel Berteaud
2017-10-10 12:43:35 UTC
Permalink
Post by John Crisp
After running our new smeserver-php-fpm stuff on my personnal server for
a few days, I think it's ready for some wider use.
OK, I'm failing so far...
db accounts setprop Primary PHPVersion 56
signal-event share-modify Primary
signal-event webapps-update
For now, only Shared Folders are supported, not ibays yet. I was waiting
for some feedback before working with ibays (which will require
modifications in a core package), and so far, I had almost none.

++
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Matrix: @dani:fws.fr
/www.firewall-services.com/
John Crisp
2017-10-10 13:17:17 UTC
Permalink
Post by Daniel Berteaud
Post by John Crisp
After running our new smeserver-php-fpm stuff on my personnal server for
a few days, I think it's ready for some wider use.
OK, I'm failing so far...
db accounts setprop Primary PHPVersion 56
signal-event share-modify Primary
signal-event webapps-update
For now, only Shared Folders are supported, not ibays yet. I was waiting
for some feedback before working with ibays (which will require
modifications in a core package), and so far, I had almost none.
"Oh bother" said Pooh, as the pin fell out of the hand grenade....

I don't use shared folders anywhere. Happy to test for ibays.

Worth a post in the forums ?
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://list
Daniel Berteaud
2017-10-10 14:22:37 UTC
Permalink
Post by John Crisp
Post by Daniel Berteaud
For now, only Shared Folders are supported, not ibays yet. I was waiting
for some feedback before working with ibays (which will require
modifications in a core package), and so far, I had almost none.
"Oh bother" said Pooh, as the pin fell out of the hand grenade....
I don't use shared folders anywhere. Happy to test for ibays.
Give it a try. Shared Folders have quite some nice features, and is easy
to install ;-)
(I don't use ibays anywhere now, shared folders have replaced them for
all of my clients)
Post by John Crisp
Worth a post in the forums ?
Yeah, I should post this in the forum, just didn't take the time to do
it yet.

Cheers,
Daniel
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Matrix: @dani:fws.fr
/www.firewall-services.com/
John Crisp
2017-10-10 15:24:16 UTC
Permalink
Post by Daniel Berteaud
Post by John Crisp
I don't use shared folders anywhere. Happy to test for ibays.
Give it a try. Shared Folders have quite some nice features, and is easy
to install ;-)
(I don't use ibays anywhere now, shared folders have replaced them for
all of my clients)
I did on a test box yonks ago but prefer to keep things as simple as I
can. I don't really have complicated needs. Every extra contrib is a
potential source of disaster for me :-)
Post by Daniel Berteaud
Post by John Crisp
Worth a post in the forums ?
Yeah, I should post this in the forum, just didn't take the time to do
it yet.
I can do that if you want. Let me know.
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive a
David Beveridge
2017-10-10 21:13:42 UTC
Permalink
Since you're running php from the command line, it defaults to the old
version.

I think php56 is installed as a software collection, so you can enable it
with the scl command.
e.g.

$ scl enable php56 'php -v'

$ scl -l
Post by John Crisp
After running our new smeserver-php-fpm stuff on my personnal server for
a few days, I think it's ready for some wider use.
OK, I'm failing so far...
db accounts setprop Primary PHPVersion 56
signal-event share-modify Primary
signal-event webapps-update
php -f phpinfo.php |grep PHP\ Version
PHP Version => 5.3.3
13254 ? 00:00:00 php-fpm
13255 ? 00:00:00 php-fpm
13256 ? 00:00:00 php-fpm
13257 ? 00:00:00 php-fpm
..... blah
db configuration show php-fpm
php-fpm=service
status=enabled
db configuration show php56-php-fpm
php56-php-fpm=service
status=enabled
I have missed something but no idea what or where !
_______________________________________________
Server Development Discussion
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Hsing-Foo Wang
2017-10-11 06:48:59 UTC
Permalink
I am thinking the same.
Post by David Beveridge
Since you're running php from the command line, it defaults to the old
version.
I think php56 is installed as a software collection, so you can enable
it with the scl command.
e.g.
$ scl enable php56 'php -v'
$ scl -l
After running our new smeserver-php-fpm stuff on my personnal server for
a few days, I think it's ready for some wider use.
OK, I'm failing so far...
db accounts setprop Primary PHPVersion 56
signal-event share-modify Primary
signal-event webapps-update
php -f phpinfo.php |grep PHP\ Version
PHP Version => 5.3.3
13254 ?        00:00:00 php-fpm
13255 ?        00:00:00 php-fpm
13256 ?        00:00:00 php-fpm
13257 ?        00:00:00 php-fpm
..... blah
db configuration show php-fpm
php-fpm=service
    status=enabled
db configuration show php56-php-fpm
php56-php-fpm=service
    status=enabled
I have missed something but no idea what or where !
_______________________________________________
Server Development Discussion
Searchable archive at
https://lists.contribs.org/mailman/public/devinfo/
<https://lists.contribs.org/mailman/public/devinfo/>
_______________________________________________
Server Development Discussion
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
John Crisp
2017-10-12 15:26:01 UTC
Permalink
After running our new smeserver-php-fpm stuff on my personnal server for
a few days, I think it's ready for some wider use.
OK, I took out the new php-fpm and tried installing PHP via SCL and that
seems to have an issue with

smeserver-dl-0.2.1-1.el6.fws.noarch

Oct 12 17:16:40 home esmith::event[24539]: WARNING in
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/68FastCGIConfig15Dl:
Use of uninitialized value $esmith::__TEMPLATE__::7::fastcgi_mod in
string eq at
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/68FastCGIConfig15Dl
line 2.

Oct 12 17:16:41 home esmith::event[24539]: WARNING in
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/98Dl: Use of
uninitialized value $esmith::__TEMPLATE__::7::fastcgi_mod in string eq
at /etc/e-smith/templates//etc/httpd/conf/httpd.conf/98Dl line 40.

Oct 12 17:16:41 home esmith::event[24539]: WARNING in
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/98Dl: Use of
uninitialized value $esmith::__TEMPLATE__::7::fascgi_mod in string eq at
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/98Dl line 43.

And my xdebug.so doesn't want to work with it either :-(

_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Daniel Berteaud
2017-10-12 15:29:36 UTC
Permalink
Post by John Crisp
After running our new smeserver-php-fpm stuff on my personnal server for
a few days, I think it's ready for some wider use.
OK, I took out the new php-fpm and tried installing PHP via SCL and that
seems to have an issue with
smeserver-dl-0.2.1-1.el6.fws.noarch
please report:

rpm -q smeserver-php-fpm smeserver-dl smeserver-webapps-common
Post by John Crisp
Oct 12 17:16:40 home esmith::event[24539]: WARNING in
Use of uninitialized value $esmith::__TEMPLATE__::7::fastcgi_mod in
string eq at
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/68FastCGIConfig15Dl
line 2.
Oct 12 17:16:41 home esmith::event[24539]: WARNING in
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/98Dl: Use of
uninitialized value $esmith::__TEMPLATE__::7::fastcgi_mod in string eq
at /etc/e-smith/templates//etc/httpd/conf/httpd.conf/98Dl line 40.
Oct 12 17:16:41 home esmith::event[24539]: WARNING in
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/98Dl: Use of
uninitialized value $esmith::__TEMPLATE__::7::fascgi_mod in string eq at
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/98Dl line 43.
And my xdebug.so doesn't want to work with it either :-(
smeserver-dl makes use of php56. Have you installed
php56-php-pecl-xdebug (from remi-safe), and then restart php56-php-fpm ?
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Matrix: @dani:fws.fr
/www.firewall-services.com/
John Crisp
2017-10-12 15:39:32 UTC
Permalink
On 12/10/17 17:29, Daniel Berteaud wrote:

Sorry - I missed this bit.
Post by Daniel Berteaud
Post by John Crisp
And my xdebug.so doesn't want to work with it either :-(
smeserver-dl makes use of php56. Have you installed
php56-php-pecl-xdebug (from remi-safe), and then restart php56-php-fpm ?
xdebug - no as I was using xdebug.so from komodo (I use their IDE)

I can try that.


As I can't use php-fpm on stock ibays (which I need to as I have no
requirement for shared folders) I had removed it.

I left in smeserver-dl and installed php-scl
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
John Crisp
2017-10-12 15:31:02 UTC
Permalink
Post by Daniel Berteaud
rpm -q smeserver-php-fpm smeserver-dl smeserver-webapps-common
[***@home conf.d]# rpm -q smeserver-php-fpm smeserver-dl
smeserver-webapps-common
package smeserver-php-fpm is not installed
smeserver-dl-0.2.1-1.el6.fws.noarch
smeserver-webapps-common-0.2.21-1.el6.fws.noarch


smeserver-php-scl-0.4-15.el6.sme.noarch
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Daniel Berteaud
2017-10-12 15:43:08 UTC
Permalink
Post by Daniel Berteaud
Post by Daniel Berteaud
rpm -q smeserver-php-fpm smeserver-dl smeserver-webapps-common
smeserver-webapps-common
package smeserver-php-fpm is not installed
smeserver-dl-0.2.1-1.el6.fws.noarch
smeserver-dl requires smeserver-webapps-common, which in turn should
require smeserver-php-fpm. But I just saw that I haven't specified the
minimum version of smeserver-webapps-common needed. You need 0.3.0 or
superior, which will pull smeserver-php-fpm
All my PHP based contrib now work with this common stack, now way around it.

++
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Matrix: @dani:fws.fr
/www.firewall-services.com/
John Crisp
2017-10-12 15:55:47 UTC
Permalink
Post by Daniel Berteaud
Post by Daniel Berteaud
Post by Daniel Berteaud
rpm -q smeserver-php-fpm smeserver-dl smeserver-webapps-common
smeserver-webapps-common
package smeserver-php-fpm is not installed
smeserver-dl-0.2.1-1.el6.fws.noarch
smeserver-dl requires smeserver-webapps-common, which in turn should
require smeserver-php-fpm. But I just saw that I haven't specified the
minimum version of smeserver-webapps-common needed. You need 0.3.0 or
superior, which will pull smeserver-php-fpm
All my PHP based contrib now work with this common stack, now way around it.
Ahh that's a royal pain in the backside then. I have no need of shared
folders and just want to use stock ibays (the cloud box that does my
crm, mail and DL only uses one ibay for the crm and no others so shared
folders is completely pointless).

The less I install the less chance of breakage IMHO. That's served me
well over the years.

I use DL as it is extremely handy, but I and being forced into a corner
then.

Time to look for other solutions.
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.
Daniel Berteaud
2017-10-12 15:59:14 UTC
Permalink
Post by John Crisp
Post by Daniel Berteaud
Post by Daniel Berteaud
Post by Daniel Berteaud
rpm -q smeserver-php-fpm smeserver-dl smeserver-webapps-common
smeserver-webapps-common
package smeserver-php-fpm is not installed
smeserver-dl-0.2.1-1.el6.fws.noarch
smeserver-dl requires smeserver-webapps-common, which in turn should
require smeserver-php-fpm. But I just saw that I haven't specified the
minimum version of smeserver-webapps-common needed. You need 0.3.0 or
superior, which will pull smeserver-php-fpm
All my PHP based contrib now work with this common stack, now way around it.
Ahh that's a royal pain in the backside then.
It's just easier for me to define a common framework, and then use
everywhere
Post by John Crisp
I have no need of shared
folders and just want to use stock ibays (the cloud box that does my
crm, mail and DL only uses one ibay for the crm and no others so shared
folders is completely pointless).
You don't need to use shared folders, just pull smeserver-php-fpm for DL
(or any other of my contrib), and do as usuall with smeserver-php-scl
for example for everything else. If you already use smeserver-php-scl,
then smeserver-php-fpm will not bring a lot more of other stuff.

++
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Matrix: @dani:fws.fr
/www.firewall-services.com/
John Crisp
2017-10-12 16:21:51 UTC
Permalink
Post by Daniel Berteaud
You don't need to use shared folders, just pull smeserver-php-fpm for DL
(or any other of my contrib), and do as usuall with smeserver-php-scl
for example for everything else. If you already use smeserver-php-scl,
then smeserver-php-fpm will not bring a lot more of other stuff.
FYI

yum --enablerepo=fws install smeserver-php-fpm

Installing : mod_fastcgi-2.4.6-3.el6.fws.x86_64

5/25
semodule: SELinux policy is not managed or store cannot be accessed.
warning: %post(mod_fastcgi-2.4.6-3.el6.fws.x86_64) scriptlet failed,
exit status 1
Non-fatal POSTIN scriptlet failure in rpm package
mod_fastcgi-2.4.6-3.el6.fws.x86_64

_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Daniel Berteaud
2017-10-12 16:33:06 UTC
Permalink
Post by John Crisp
Post by Daniel Berteaud
You don't need to use shared folders, just pull smeserver-php-fpm for DL
(or any other of my contrib), and do as usuall with smeserver-php-scl
for example for everything else. If you already use smeserver-php-scl,
then smeserver-php-fpm will not bring a lot more of other stuff.
FYI
yum --enablerepo=fws install smeserver-php-fpm
Installing : mod_fastcgi-2.4.6-3.el6.fws.x86_64
5/25
semodule: SELinux policy is not managed or store cannot be accessed.
warning: %post(mod_fastcgi-2.4.6-3.el6.fws.x86_64) scriptlet failed,
exit status 1
Non-fatal POSTIN scriptlet failure in rpm package
mod_fastcgi-2.4.6-3.el6.fws.x86_64
Thanks. I'll try to fix it.

++
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Matrix: @dani:fws.fr
/www.firewall-services.com/
John Crisp
2017-10-12 16:44:41 UTC
Permalink
Post by Daniel Berteaud
Thanks. I'll try to fix it.
Not sure if this is relevant as well but I noticed there were only two
versions here:

[***@home remi]# pwd
/etc/e-smith/templates/etc/opt/remi
[***@home remi]# ll
total 8
drwxr-xr-x 4 root root 4096 Oct 12 18:20 php70
drwxr-xr-x 4 root root 4096 Oct 12 18:20 php71

_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
John Crisp
2017-10-12 16:47:03 UTC
Permalink
Post by Daniel Berteaud
Thanks. I'll try to fix it.
And also this here - which pki should it use ?

[***@esmith opt]# pwd
/opt
[***@esmith opt]# ll
total 20
drwxr-xr-x 5 root root 4096 Jul 29 2014 phpki
drwxr-xr-x 5 root root 4096 Oct 2 2016 phpki.new
drwxr-xr-x 5 root root 4096 Oct 2 2016 phpki.orig
drwxr-xr-x 7 root root 4096 Oct 12 15:46 remi
lrwxrwxrwx 1 root root 34 Oct 2 2016 setup.php ->
/opt/phpki/html/setup.php-presetup

_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Hsing-Foo Wang
2017-10-12 19:06:47 UTC
Permalink
IMHO I think this is becoming over complicated for the average user that
simply wants to use a single contrib. Pulling in multiple contribs, just
bits if they are not used, will still over complicate things. We still
need to adhere to the 'simple admin' opposed to the advanced linux
crack. Hence the e-smith heritage.

Software Collections should be just Software Collections etc etc.

I would hesitate and even decline installing a contrib that is linked
with dependencies to other contribs, and in their turn linked to other
contribs. e.g. There are a zillion people that do not need shared
folders and simply want to use PHP 5.6 in 1 ibay

My 2C
Post by John Crisp
Post by Daniel Berteaud
Thanks. I'll try to fix it.
And also this here - which pki should it use ?
/opt
total 20
drwxr-xr-x 5 root root 4096 Jul 29 2014 phpki
drwxr-xr-x 5 root root 4096 Oct 2 2016 phpki.new
drwxr-xr-x 5 root root 4096 Oct 2 2016 phpki.orig
drwxr-xr-x 7 root root 4096 Oct 12 15:46 remi
lrwxrwxrwx 1 root root 34 Oct 2 2016 setup.php ->
/opt/phpki/html/setup.php-presetup
_______________________________________________
Server Development Discussion
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
John Crisp
2017-10-12 23:29:04 UTC
Permalink
Post by Hsing-Foo Wang
IMHO I think this is becoming over complicated for the average user that
simply wants to use a single contrib. Pulling in multiple contribs, just
bits if they are not used, will still over complicate things. We still
need to adhere to the 'simple admin' opposed to the advanced linux
crack. Hence the e-smith heritage.
I would agree that trying to KISS, minimise dependencies, and no hidden
surprises is always a good thing.

Having spent a couple of days on and off messing with this, I have been
giving this a bit more thought and believe that there are some great
opportunities to make a mess of an SME installation, particularly for
some of the less experienced users.

Where I think it gets tricky is particularly if you have SCL installed
already.

So you are running SCL (which I think a lot of people do).

You decide to say install Download Ticket. This then pulls in the php-fm
dependencies on which it now depends - there is nothing in the wiki to
say this would happen.

Conversely, you could have an older version of DL installed already,
added SCL, and for whatever good reason update the DL contrib.

Now you have SCl running PHP on an ibay and php-fm running DL - at least
that is what I presume happens

Yes, I know that the two systems can theoretically lie side by side as
they rely on a lot of common packages.

But will the user know what is going on, and what controls what? The db
keys look very similar and there is plenty of room for confusion there.

I'm not completely stupid, but I have had to spend a good while looking
at how this works and the ramifications, and I am still not sure exactly
how secure all this is. I am sure there will be a lot less experienced
users than me who will try to install things without realising all the
consequences.

The inability for php-fm to be used on standard ibays, which the SCL
version can, is a blocker for many I would imagine. It also means if you
want to run say Download Ticket (or a.n. other contrib which now depends
on php-fm) AND a different version of PHP on ibays, you need two
different versions of running PHP, on top of the stock installed php
5.3.3 which is pretty ugly IMHO. (php -v at a prompt gets you pretty
confused....)

I am sure that the php-fm solution is probably a good one, and quite
possibly more flexible than the SCL version.

But it should surely be easy to swap between the two (which would enable
easy migration) with minimum disruption, which is clearly not the case
at the minute.

Certainly SME v9 benefits from having updated versions of PHP, but
perhaps some more thought needs to be given to potential side effects,
and it's implementation and integration with existing additions to SME.

_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Daniel Berteaud
2017-10-13 09:03:00 UTC
Permalink
Post by John Crisp
I would agree that trying to KISS, minimise dependencies, and no hidden
surprises is always a good thing.
KISS is subjective. As for the surprise, well, at which point the
dependency chain becomes a surprise ? A number of packages ? A total
size in Mo ? All the PHP stuff is just clean dependency of DL, and as
long as there's no dependency issue, everything is in the correct repo,
and everything works as explained in the doc, I see no issue.
Post by John Crisp
Having spent a couple of days on and off messing with this, I have been
giving this a bit more thought and believe that there are some great
opportunities to make a mess of an SME installation, particularly for
some of the less experienced users.
If things are breaking (which it might, it's working for me but want
feedback from others), then please explain what's breaking and how, and
I'll try my best to fixe it.
Post by John Crisp
Where I think it gets tricky is particularly if you have SCL installed
already.
So you are running SCL (which I think a lot of people do).
You decide to say install Download Ticket. This then pulls in the php-fm
dependencies on which it now depends - there is nothing in the wiki to
say this would happen.
I don't see a particular need to details every dependency in the wiki.
Stay simple. Why would an average user be frighten with things like SCL
which he doesn't care about ? He wants DL, and DL he will have running.
That's it. The details of how the PHP engine is used is an
implementation detail.
Post by John Crisp
Conversely, you could have an older version of DL installed already,
added SCL, and for whatever good reason update the DL contrib.
Yes, I need to make dependency version more specific, like you pointed
out yesterday. Will try to correct this.
Post by John Crisp
Now you have SCl running PHP on an ibay and php-fm running DL - at least
that is what I presume happens
Indeed.
Post by John Crisp
Yes, I know that the two systems can theoretically lie side by side as
they rely on a lot of common packages.
But will the user know what is going on, and what controls what?
Should they ? Maybe I could write a bit of doc for where to find logs
for FPM pools. But, appart from this, what users should do as long as
everything is working ?
Post by John Crisp
The db
keys look very similar and there is plenty of room for confusion there.
Yes, for technical reasons, I had to use the DB keys php56-php-fpm,
php70-php-fpm etc... and not the already existing php56, php70 etc...
The reason is that FPM are services which must be started, so the DB key
must match the service name. I used the same prop name as the SCL
contrib though, so only the key changes.
Post by John Crisp
I'm not completely stupid, but I have had to spend a good while looking
at how this works and the ramifications, and I am still not sure exactly
how secure all this is. I am sure there will be a lot less experienced
users than me who will try to install things without realising all the
consequences.
The inability for php-fm to be used on standard ibays, which the SCL
version can, is a blocker for many I would imagine.
That's something I definitely want to do. I just started with Shared
Folders for two reasons

* It's what I use myself everywhere
* It's a contrib, so I can use it as a playground. I wanted to check
if I made no design mistake before modifying a core package (ibays)
Post by John Crisp
It also means if you
want to run say Download Ticket (or a.n. other contrib which now depends
on php-fm) AND a different version of PHP on ibays, you need two
different versions of running PHP, on top of the stock installed php
5.3.3 which is pretty ugly IMHO.
There's nothing ugly. SCL are made specially for that: you can run
several PHP version at the same time. There's 4 major versions available
(stock: 5.3, 5.6, 7.0 and 7.1). With SCL alone you can already run
multiple versions (say 5.6 for one ibay and 7.0 for another).
Now, smeserver-php-fpm just brings another way to use those versions.
But if you use 5.6 with DL running FPM, and 5.6 on an ibay using SCL,
it's exactly the same PHP version. Just another way to run it.
Post by John Crisp
(php -v at a prompt gets you pretty
confused....)
php -v will always return the stock PHP version. You can use php56 php70
and php71 binary to run the alternative versions from the command line.
(note that this has nothing to do with FPM. It's exactly the same with
the SCL contrib)
Post by John Crisp
I am sure that the php-fm solution is probably a good one, and quite
possibly more flexible than the SCL version.
As already explained, it brings performances benefit, pool separations,
and potential security enhancement if you run pools under a specific user
Post by John Crisp
But it should surely be easy to swap between the two (which would enable
easy migration) with minimum disruption, which is clearly not the case
at the minute.
Ibays are not yet supported indeed, but you can run both side by side,
so the migration is even smoother, with no disruption.
Post by John Crisp
Certainly SME v9 benefits from having updated versions of PHP, but
perhaps some more thought needs to be given to potential side effects,
and it's implementation and integration with existing additions to SME.
I perfectly agree with that, and that's why I asked here for some
feedback. If there are side effect, I really want to know, so I can fixe it.

Cheers
Daniel
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Matrix: @dani:fws.fr
/www.firewall-services.com/
Daniel Berteaud
2017-10-13 08:46:08 UTC
Permalink
Post by Hsing-Foo Wang
IMHO I think this is becoming over complicated for the average user
that simply wants to use a single contrib.
Things are always complexe behind the scene. Average users don't have to
bother with this complexity. yum install will pull what's needed, that's
it. Nothing special here. Contribs always had dependencies.
Post by Hsing-Foo Wang
Pulling in multiple contribs, just bits if they are not used, will
still over complicate things.
Either things are working, win which case I see no issue at all, or
things are not working, in which case there's a bug I'll need to fixe.
Post by Hsing-Foo Wang
We still need to adhere to the 'simple admin' opposed to the advanced
linux crack. Hence the e-smith heritage.
That's what I tried to do. The install steps of my contribs have not
changed. It'll just automagically pull new stuff which is needed. The
admin doesn't have to understand or do anything particular about it.
It's a dependency like any other
Post by Hsing-Foo Wang
Software Collections should be just Software Collections etc etc.
Is there something special about SCL ? Why contribs couldn't make use of
SCL ?
Post by Hsing-Foo Wang
I would hesitate and even decline installing a contrib that is linked
with dependencies to other contribs, and in their turn linked to other
contribs. e.g. There are a zillion people that do not need shared
folders and simply want to use PHP 5.6 in 1 ibay
smeserver-php-fpm is a generic framework for running several PHP
versions in FPM mode. There's absolutely no link with Shared Folders. On
the other hand, I've also modified the Shared Folders contrib to make
use of smeserver-php-fpm if available.
--
Logo FWS

*Daniel Berteaud*

FIREWALL-SERVICES SAS.
Société de Services en Logiciels Libres
Tel : 05 56 64 15 32 <tel:0556641532>
Matrix: @dani:fws.fr
/www.firewall-services.com/
John Crisp
2017-10-12 16:43:45 UTC
Permalink
Post by John Crisp
And my xdebug.so doesn't want to work with it either :-(
It does now - with php-scl at least.

Notes added to the wiki here:

https://wiki.contribs.org/PHP_Software_Collections#Debug


_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/
Loading...