Skip to content
/ vestacp-multiphp Public template

multiphp tpl files that goes to /usr/local/vesta/data/templates/web/apache2/

Notifications You must be signed in to change notification settings

alnux/vestacp-multiphp

Repository files navigation

Centos 7 VestaCP MultiPhp

PHP-FPM

ok, thi is my backup of how crate vestacp apache multiPhp (php-fpm) Centos 7. NOTE: All this proccess is after install VESTCP

1.- first of all you have to update your apache to work with AMP EVENT. you see worker with "httpd -V" command and you have to confirm the next info My actual version is Apache/2.4.46 (codeit) under centos 7 (if you have apache 2.4.6 please updade it)

Server MPM: event

if you does not have this you can enable it by edit the next file

/etc/httpd/conf.modules.d/00-mpm.conf

uncomment

LoadModule mpm_event_module modules/mod_mpm_event.so

and comment other ones

on the next file /etc/httpd/conf.modules.d/00-proxy.conf

uncomment

proxy_module
proxy_fcgi_module

2.- you have to have remi, if you does not have it. can be installed by (or install it with vestacp install setup config --> fresh installation)

yum install epel-release
yum install yum-utils
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum clean all
yum update

3.-

install the remi php-fpm that you want except the main php that you are using in my case PHP7.2

PHP5.6

yum install -y php56-php-imap php56-php-process php56-php-pspell php56-php-xml php56-php-xmlrpc php56-php-pdo php56-php-ldap php56-php-pecl-zip php56-php-common php56-php php56-php-mcrypt php56-php-mysqlnd php56-php-gmp php56-php-mbstring php56-php-gd php56-php-tidy php56-php-pecl-memcache php56-php-fpm --enablerepo=remi

PHP7.1

yum install -y php71-php-imap php71-php-process php71-php-pspell php71-php-xml php71-php-xmlrpc php71-php-pdo php71-php-ldap php71-php-pecl-zip php71-php-common php71-php php71-php-mcrypt php71-php-gmp php71-php-mysqlnd php71-php-mbstring php71-php-gd php71-php-tidy php71-php-pecl-memcache php71-php-fpm --enablerepo=remi

PHP7.2

yum install -y php72-php-imap php72-php-process php72-php-pspell php72-php-xml php72-php-xmlrpc php72-php-pdo php72-php-ldap php72-php-pecl-zip php72-php-common php72-php php72-php-mcrypt php72-php-gmp php72-php-mysqlnd php72-php-mbstring php72-php-gd php72-php-tidy php72-php-pecl-memcache php72-php-fpm --enablerepo=remi

PHP7.3

yum install -y php73-php-imap php73-php-process php73-php-pspell php73-php-xml php73-php-xmlrpc php73-php-pdo php73-php-ldap php73-php-pecl-zip php73-php-common php73-php php73-php-mcrypt php73-php-gmp php73-php-mysqlnd php73-php-mbstring php73-php-gd php73-php-tidy php73-php-pecl-memcache php73-php-fpm --enablerepo=remi

PHP7.4

yum install -y php74-php-imap php74-php-process php74-php-pspell php74-php-xml php74-php-xmlrpc php74-php-pdo php74-php-ldap php74-php-pecl-zip php74-php-common php74-php php74-php-mcrypt php74-php-gmp php74-php-mysqlnd php74-php-mbstring php74-php-gd php74-php-tidy php74-php-pecl-memcache php74-php-fpm --enablerepo=remi

thats all, after install the php-fpm that you need copy the files that i attachment to the next directory

/usr/local/vesta/data/templates/web/httpd

by the whay make executable the sh commands

chmod a+x /usr/local/vesta/data/templates/web/httpd/PHP-FPM-56.sh
chmod a+x /usr/local/vesta/data/templates/web/httpd/PHP-FPM-71.sh
chmod a+x /usr/local/vesta/data/templates/web/httpd/PHP-FPM-72.sh
chmod a+x /usr/local/vesta/data/templates/web/httpd/PHP-FPM-73.sh
chmod a+x /usr/local/vesta/data/templates/web/httpd/PHP-FPM-74.sh

i hope that it help you. bye

About

multiphp tpl files that goes to /usr/local/vesta/data/templates/web/apache2/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published