Line 1: |
Line 1: |
| + | {{Warning box|This page is for SME v9 and is now deprecated and for reference only. |
| + | v10 uses systemd. See https://wiki.koozali.org/PHP |
| + | if you search to write your own contrib using php-fpm follow [[Building_Your_Contrib#PHP-FPM]]}} |
| + | |
| {{Languages}} | | {{Languages}} |
| <!-- here we define the contrib name variable --> | | <!-- here we define the contrib name variable --> |
Line 13: |
Line 17: |
| |licence= | | |licence= |
| |url= https://wiki.contribs.org | | |url= https://wiki.contribs.org |
− | |category= Category you want | + | |category= |
| |tags=php,fpm | | |tags=php,fpm |
| }} | | }} |
Line 22: |
Line 26: |
| | | |
| === Version === | | === Version === |
| + | |
| + | {{Warning box|DO NOT USE ON v10. |
| + | SME v9 is no longer supported. v10 has php-fpm built in. |
| + | Please refer to this page for more information.<br> |
| + | https://wiki.koozali.org/PHP}} |
| + | |
| + | |
| <!-- keep this first element as is, you can add some if needed --> | | <!-- keep this first element as is, you can add some if needed --> |
− | {{#smeversion: {{#var:smecontribname}} }} | + | {{#smeversion: smeserver-php-fpm }} |
− | {{#smeversion: {{#var:contribname}} }}
| + | |
| | | |
| === Description === | | === Description === |
Line 40: |
Line 51: |
| signal-event webapps-update | | signal-event webapps-update |
| service php-fpm start | | service php-fpm start |
− | service php-56 start | + | service php56-php-fpm start |
− | service php-70 start | + | service php70-php-fpm start |
− | service php-71 start | + | service php71-php-fpm start |
− | service php-72 start | + | service php72-php-fpm start |
− | service php-73 start | + | service php73-php-fpm start |
| | | |
| </syntaxhighlight> | | </syntaxhighlight> |
Line 370: |
Line 381: |
| | | | | |
| |- | | |- |
− | |DisableFunctions | + | |DisabledFunctions |
− | |system,show_source, symlink,exec,dl,shell_exec,passthru,phpinfo,escapeshellarg,escapeshellcmd | + | |system,show_source,symlink,exec,dl,shell_exec,passthru,phpinfo,escapeshellarg,escapeshellcmd |
| | | | | |
| |- | | |- |
Line 390: |
Line 401: |
| | | | | |
| |} | | |} |
− | you will then need two httpd.conf custom template fragment to use your pool. You will need to change '''VERSION''' and '''MYPOOL''' to what you want<syntaxhighlight lang="bash"> | + | you will then need two httpd.conf custom template fragment to use your pool. You will need to change '''MYPOOL''' to what you want<syntaxhighlight lang="bash"> |
− | mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
| |
− | vim /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/68FastCGIConfig15myphppool
| |
− | </syntaxhighlight><syntaxhighlight>
| |
− | Action phpMYPOOL-fastcgi /php-cgi-bin/phpMYPOOL-wrapper
| |
− | Alias /php-cgi-bin/phpMYPOOL-wrapper /var/www/php-cgi-bin/phpMYPOOL-wrapper
| |
− | FastCgiExternalServer /var/www/php-cgi-bin/phpMYPOOL-wrapper -socket /var/run/php-fpm/phpVERSION-MYPOOL.sock -pass-header Authorization -idle-timeout 120
| |
− | </syntaxhighlight><syntaxhighlight lang="bash">
| |
| mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ | | mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ |
| vim /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98mypoolusage | | vim /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98mypoolusage |
| </syntaxhighlight><syntaxhighlight lang="perl"> | | </syntaxhighlight><syntaxhighlight lang="perl"> |
− | <Directory "/home/e-smith/ibays/Primary/html/myfolder">
| + | <Directory /home/e-smith/files/ibays/test/html> |
| + | SSLRequireSSL |
| + | Options None |
| + | Options +Indexes |
| Options +FollowSymLinks | | Options +FollowSymLinks |
| + | DirectoryIndex index.php index.shtml index.htm index.html |
| + | AddHandler phpMYPOOL-fastcgi .php |
| AllowOverride All | | AllowOverride All |
− | AddHandler phpnextcloud-fastcgi .php\n"; | + | order deny,allow |
− | </Directory>
| + | deny from all |
| + | allow from all |
| + | </Directory> |
| | | |
− | | + | </syntaxhighlight>then just do signal-event webapps-update |
− | </syntaxhighlight> | |
| | | |
| === Uninstall === | | === Uninstall === |
Line 426: |
Line 436: |
| | | |
| <!-- list of category you want to see this page in --> | | <!-- list of category you want to see this page in --> |
− | [[Category: Contrib]] | + | [[Category: Deprecated_Contrib]] |
| <!-- Please keep there the template revision number as is --> | | <!-- Please keep there the template revision number as is --> |