├── README.md ├── sk-php-selector.sh ├── sk-php-selector2.sh ├── sk-php-selector3.sh ├── sk-php52-installer.sh ├── sk-php52.sh ├── sk-php54-centos.sh ├── sk-php54-u14.sh ├── sk-php55-centos.sh ├── sk-php55-u14.sh ├── sk-php56-centos.sh ├── sk-php56-u14.sh ├── sk-php70-centos.sh ├── sk-php70-u14.sh ├── sk-php71-centos.sh ├── sk-php72-centos.sh ├── sk-php73-centos.sh ├── sk-php74-centos.sh └── sk-php80-centos.sh /README.md: -------------------------------------------------------------------------------- 1 | # sk-php-selector 2 | PHP selector for centos 6/7 3 | 4 | # RUN AT YOUR OWN RISK 5 | 6 | This install php 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 and 8.0 in your centos 6 and centos 7 7 | 8 | **Use sk-php-selector2.sh, in this you can select what php version install 9 | sk-php-selector3.sh is same as sk-php-selector2.sh but with simplified code, now in testing ** 10 | 11 | # So you can select just one version runing it as: 12 | 13 | bash sk-php-selector2.sh php72 14 | 15 | bash sk-php-selector2.sh php80 16 | 17 | # Or install multiple version 18 | 19 | bash sk-php-selector2.sh php56 php71 20 | 21 | # or install all 22 | 23 | bash sk-php-selector2.sh all 24 | 25 | This works fine, the configuration of php need some work so try firts in test enviroment 26 | 27 | ------------ 28 | 29 | This can break phpmyadmin, in this case you need delete some mod_php files in /etc/httpd/conf.d/ you can move out all php??.conf just leave php.conf ( not delete maybe you need restore it ) 30 | 31 | This is aleatory and need more debugin, not always was broken so I cant say you exactly, but the solution is wasy 32 | 33 | # Diferences between version 2 and 3 34 | 35 | This work in same way, sk-php-selector3.sh have short code, and sk-php-selector2.sh have a lite more code, but this one you can modify in easy way, and you can add for each php version diferent modules, just edit yum install line as your need, if you need specific module in php 7 and orther in php 5 and want customice it use sk-php-selector2.sh 36 | 37 | sk-php-selector is a first version may work, but I not recomend you use it 38 | -------------------------------------------------------------------------------- /sk-php-selector.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Skamasle PHP SELECTOR for vesta 3 | # version = beta 0.2.4 4 | # From skamasle.com 5 | # Run at your risk. 6 | # This program is distributed in the hope that it will be useful, 7 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9 | # GNU General Public License for more details. http://www.gnu.org/licenses/ 10 | sistema=$(grep -o "[0-9]" /etc/redhat-release |head -n1) 11 | sklog=/var/log/skphp.log 12 | if [ ! -e /etc/yum.repos.d/remi.repo ]; then 13 | echo "I not found remi repo, stop install... " 14 | exit 2 15 | fi 16 | # fix php 7 version detection... 17 | vp=$(php -v |head -n1 |cut -c5) 18 | if [ "$vp" -eq 5 ];then 19 | actual=$(php -v| head -n1 | grep --only-matching --perl-regexp "5\.\\d+") 20 | elif [ "$vp" -eq 7 ];then 21 | actual=$(php -v| head -n1 | grep --only-matching --perl-regexp "7\.\\d+") 22 | elif [ "$vp" -eq 8 ];then 23 | actual=$(php -v| head -n1 | grep --only-matching --perl-regexp "8\.\\d+") 24 | else 25 | echo "Cant get actual php versión" 26 | echo "Run php -v and ask on forum or yo@skamasle.com" 27 | echo "Leaving instalation..." 28 | exit 4 29 | fi 30 | 31 | function phpinstall8 () { 32 | ver=8.0 33 | if [ $actual = $ver ];then 34 | echo "Skip PHP 8.0 actually installed" 35 | else 36 | tput setaf 2 37 | echo "Installing PHP 8.0" 38 | yum install -y php80-php-imap php80-php-process php80-php-pspell php80-php-xml php80-php-xmlrpc php80-php-pdo php80-php-ldap php80-php-pecl-zip php80-php-common php80-php php80-php-mcrypt php80-php-gmp php80-php-mysqlnd php80-php-mbstring php80-php-gd php80-php-tidy php80-php-pecl-memcache --enablerepo=remi >> $sklog 39 | echo "......." 40 | 41 | # Temporary source on my personal Github repo. 42 | curl -s https://raw.githubusercontent.com/samaphp/sk-php-selector/master/sk-php80-centos.sh > /usr/local/vesta/data/templates/web/httpd/sk-php80.sh 43 | 44 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php80.stpl 45 | 46 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php80.tpl 47 | 48 | ln -s /etc/opt/remi/php80/php.ini /etc/php80.ini 49 | 50 | ln -s /etc/opt/remi/php80/php.d /etc/php80.d 51 | 52 | chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php80.sh 53 | tput setaf 1 54 | echo "PHP 8.0 Ready!" 55 | tput sgr0 56 | fi 57 | } 58 | 59 | function phpinstall7 () { 60 | ver=7.0 61 | if [ $actual = $ver ];then 62 | echo "Skip PHP 7.0 actually installed" 63 | else 64 | tput setaf 2 65 | echo "Installing PHP 7.0" 66 | yum install -y php70-php-imap php70-php-process php70-php-pspell php70-php-xml php70-php-xmlrpc php70-php-pdo php70-php-ldap php70-php-pecl-zip php70-php-common php70-php php70-php-mcrypt php70-php-gmp php70-php-mysqlnd php70-php-mbstring php70-php-gd php70-php-tidy php70-php-pecl-memcache --enablerepo=remi >> $sklog 67 | echo "......." 68 | 69 | curl -s http://mirror.skamasle.com/vestacp/PHP/sk-php70-centos.sh > /usr/local/vesta/data/templates/web/httpd/sk-php70.sh 70 | 71 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php70.stpl 72 | 73 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php70.tpl 74 | 75 | ln -s /etc/opt/remi/php70/php.ini /etc/php70.ini 76 | 77 | ln -s /etc/opt/remi/php70/php.d /etc/php70.d 78 | 79 | chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php70.sh 80 | tput setaf 1 81 | echo "PHP 7.0 Ready!" 82 | tput sgr0 83 | fi 84 | } 85 | function phpinstall71 () { 86 | ver=7.1 87 | if [ $actual = $ver ];then 88 | echo "Skip PHP 7.1 actually installed" 89 | else 90 | tput setaf 2 91 | echo "Installing PHP 7.1" 92 | 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 php701-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 --enablerepo=remi >> $sklog 93 | echo "......." 94 | 95 | curl -s http://mirror.skamasle.com/vestacp/PHP/sk-php71-centos.sh > /usr/local/vesta/data/templates/web/httpd/sk-php71.sh 96 | 97 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php71.stpl 98 | 99 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php71.tpl 100 | 101 | ln -s /etc/opt/remi/php71/php.ini /etc/php71.ini 102 | 103 | ln -s /etc/opt/remi/php71/php.d /etc/php71.d 104 | 105 | chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php71.sh 106 | tput setaf 1 107 | echo "PHP 7.1 Ready!" 108 | tput sgr0 109 | fi 110 | } 111 | 112 | function phpinstall72 () { 113 | ver=7.2 114 | if [ $actual = $ver ];then 115 | echo "Skip PHP 7.2 actually installed" 116 | else 117 | tput setaf 2 118 | echo "Installing PHP 7.1" 119 | 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 php701-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 --enablerepo=remi >> $sklog 120 | echo "......." 121 | 122 | curl -s http://mirror.skamasle.com/vestacp/PHP/sk-php72-centos.sh > /usr/local/vesta/data/templates/web/httpd/sk-php72.sh 123 | 124 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php72.stpl 125 | 126 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php72.tpl 127 | 128 | ln -s /etc/opt/remi/php72/php.ini /etc/php72.ini 129 | 130 | ln -s /etc/opt/remi/php72/php.d /etc/php72.d 131 | 132 | chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php72.sh 133 | tput setaf 1 134 | echo "PHP 7.2 Ready!" 135 | tput sgr0 136 | fi 137 | } 138 | 139 | function phpinstall56 () { 140 | ver=5.6 141 | if [ $actual = $ver ];then 142 | echo "Skip php 5.6 actually installed" 143 | else 144 | tput setaf 2 145 | echo "Instaling PHP 5.6" 146 | 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 --enablerepo=remi >> $sklog 147 | echo "......." 148 | 149 | curl -s http://mirror.skamasle.com/vestacp/PHP/sk-php56-centos.sh > /usr/local/vesta/data/templates/web/httpd/sk-php56.sh 150 | 151 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php56.stpl 152 | 153 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php56.tpl 154 | 155 | ln -s /etc/opt/remi/php56/php.ini /etc/php56.ini 156 | 157 | ln -s /etc/opt/remi/php56/php.d /etc/php56.d 158 | 159 | chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php56.sh 160 | 161 | chmod 777 /opt/remi/php56/root/var/lib/php/session 162 | tput setaf 1 163 | echo "PHP 5.6 Ready!" 164 | tput sgr0 165 | fi 166 | } 167 | function phpinstall55 () { 168 | ver=5.5 169 | if [ $actual = $ver ];then 170 | echo "Skip php 5.5 actually installed" 171 | else 172 | tput setaf 2 173 | echo "Instaling PHP 5.5" 174 | yum install -y php55-php-imap php55-php-process php55-php-pspell php55-php-xml php55-php-xmlrpc php55-php-pdo php55-php-ldap php55-php-pecl-zip php55-php-common php55-php php55-php-mcrypt php55-php-mysqlnd php55-php-gmp php55-php-mbstring php55-php-gd php55-php-tidy php55-php-pecl-memcache --enablerepo=remi >> $sklog 175 | echo "......." 176 | 177 | curl -s http://mirror.skamasle.com/vestacp/PHP/sk-php55-centos.sh > /usr/local/vesta/data/templates/web/httpd/sk-php55.sh 178 | 179 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php55.stpl 180 | 181 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php55.tpl 182 | 183 | ln -s /etc/opt/remi/php55/php.ini /etc/php55.ini 184 | 185 | ln -s /etc/opt/remi/php55/php.d /etc/php55.d 186 | 187 | chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php55.sh 188 | chmod 777 /opt/remi/php55/root/var/lib/php/session 189 | tput setaf 1 190 | echo "PHP 5.5 Ready!" 191 | tput sgr0 192 | fi 193 | } 194 | function phpinstall54 () { 195 | ver=5.4 196 | if [ $actual = $ver ];then 197 | echo "Skip php 5.4 actually installed" 198 | else 199 | tput setaf 2 200 | echo "Instaling PHP 5.4" 201 | yum install -y php54-php-pspell php54-php-process php54-php-imap php54-php-xml php54-php-xmlrpc php54-php-pdo php54-php-ldap php54-php-pecl-zip php54-php-common php54-php-gmp php54-php php54-php-mcrypt php54-php-mysqlnd php54-php-mbstring php54-php-gd php54-php-tidy php54-php-pecl-memcache --enablerepo=remi >> $sklog 202 | echo "........" 203 | 204 | curl -s http://mirror.skamasle.com/vestacp/PHP/sk-php54-centos.sh > /usr/local/vesta/data/templates/web/httpd/sk-php54.sh 205 | 206 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php54.stpl 207 | 208 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php54.tpl 209 | 210 | ln -s /etc/opt/remi/php54/php.ini /etc/php54.ini 211 | 212 | ln -s /etc/opt/remi/php54/php.d /etc/php54.d 213 | 214 | 215 | chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php54.sh 216 | tput setaf 1 217 | echo "PHP 5.4 Ready!" 218 | tput sgr0 219 | fi 220 | } 221 | 222 | if [ -e /etc/redhat-release ];then 223 | if [[ "$sistema" -eq 7 || "$sistema" -eq 6 ]]; then 224 | tput setaf 4 225 | echo "You have remi repo installed and run: " 226 | cat /etc/redhat-release 227 | echo "##########" 228 | echo "Start installing aditional php version" 229 | echo "##########" 230 | tput setaf 2 231 | echo "Actually you runing php $actual, so I will skip it" 232 | tput sgr0 233 | phpinstall54 234 | phpinstall55 235 | phpinstall56 236 | phpinstall7 237 | phpinstall71 238 | phpinstall72 239 | phpinstall8 240 | echo "################################" 241 | echo "Aditional PHP versión installed!" 242 | echo "More info on skamasle.com or vestacp forums." 243 | fi 244 | else 245 | echo "Only support centos" 246 | exit 3 247 | fi 248 | -------------------------------------------------------------------------------- /sk-php-selector2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Skamasle PHP SELECTOR for vesta 3 | # version = beta 0.4.1 4 | # From skamasle.com 5 | # Run at your risk. 6 | sistema=$(grep -o "[0-9]" /etc/redhat-release |head -n1) 7 | sklog=/var/log/skphp.log 8 | if [ ! -e /etc/yum.repos.d/remi.repo ]; then 9 | echo "I not found remi repo, stop install... " 10 | exit 2 11 | fi 12 | # fix php 7 version detection... 13 | vp=$(php -v |head -n1 |cut -c5) 14 | if [ "$vp" -eq 5 ];then 15 | actual=$(php -v| head -n1 | grep --only-matching --perl-regexp "5\.\\d+") 16 | elif [ "$vp" -eq 7 ];then 17 | actual=$(php -v| head -n1 | grep --only-matching --perl-regexp "7\.\\d+") 18 | elif [ "$vp" -eq 8 ];then 19 | actual=$(php -v| head -n1 | grep --only-matching --perl-regexp "8\.\\d+") 20 | else 21 | echo "Cant get actual php versión" 22 | echo "Run php -v and ask on forum or yo@skamasle.com" 23 | echo "Leaving instalation..." 24 | exit 4 25 | fi 26 | 27 | fixit () { 28 | # Temporary the resource from my personal Github repo. 29 | curl -s https://raw.githubusercontent.com/samaphp/sk-php-selector/master/sk-php${1}-centos.sh > /usr/local/vesta/data/templates/web/httpd/sk-php${1}.sh 30 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php${1}.stpl 31 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php${1}.tpl 32 | if [ -e /etc/opt/remi/php${1}/php.ini ]; then 33 | ln -s /etc/opt/remi/php${1}/php.ini /etc/php${1}.ini 34 | ln -s /etc/opt/remi/php${1}/php.d /etc/php${1}.d 35 | fi 36 | chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php${1}.sh 37 | 38 | tput setaf 1 39 | echo "PHP ${1} Ready!" 40 | tput sgr0 41 | } 42 | function phpinstall80 () { 43 | ver=8.0 44 | if [ $actual = $ver ];then 45 | echo "Skip PHP 8.0 actually installed" 46 | else 47 | tput setaf 2 48 | echo "Installing PHP 8.0" 49 | yum install -y php80-php-imap php80-php-process php80-php-pspell php80-php-xml php80-php-xmlrpc php80-php-pdo php80-php-ldap php80-php-pecl-zip php80-php-common php80-php php80-php-mcrypt php80-php-gmp php80-php-mysqlnd php80-php-mbstring php80-php-gd php80-php-tidy php80-php-pecl-memcache --enablerepo=remi >> $sklog 50 | echo "......." 51 | 52 | fixit 80 53 | fi 54 | } 55 | function phpinstall70 () { 56 | ver=7.0 57 | if [ $actual = $ver ];then 58 | echo "Skip PHP 7.0 actually installed" 59 | else 60 | tput setaf 2 61 | echo "Installing PHP 7.0" 62 | yum install -y php70-php-imap php70-php-process php70-php-pspell php70-php-xml php70-php-xmlrpc php70-php-pdo php70-php-ldap php70-php-pecl-zip php70-php-common php70-php php70-php-mcrypt php70-php-gmp php70-php-mysqlnd php70-php-mbstring php70-php-gd php70-php-tidy php70-php-pecl-memcache --enablerepo=remi >> $sklog 63 | echo "......." 64 | 65 | fixit 70 66 | fi 67 | } 68 | function phpinstall71 () { 69 | ver=7.1 70 | if [ $actual = $ver ];then 71 | echo "Skip PHP 7.1 actually installed" 72 | else 73 | tput setaf 2 74 | echo "Installing PHP 7.1" 75 | 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 --enablerepo=remi >> $sklog 76 | echo "......." 77 | 78 | fixit 71 79 | fi 80 | } 81 | 82 | function phpinstall72 () { 83 | ver=7.2 84 | if [ $actual = $ver ];then 85 | echo "Skip PHP 7.2 actually installed" 86 | else 87 | tput setaf 2 88 | echo "Installing PHP 7.2" 89 | 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 --enablerepo=remi >> $sklog 90 | echo "......." 91 | 92 | fixit 72 93 | fi 94 | } 95 | function phpinstall73 () { 96 | ver=7.3 97 | if [ $actual = $ver ];then 98 | echo "Skip PHP 7.3 actually installed" 99 | else 100 | tput setaf 2 101 | echo "Installing PHP 7.3" 102 | 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 --enablerepo=remi >> $sklog 103 | echo "......." 104 | 105 | fixit 73 106 | fi 107 | } 108 | function phpinstall74 () { 109 | ver=7.4 110 | if [ $actual = $ver ];then 111 | echo "Skip PHP 7.4 actually installed" 112 | else 113 | tput setaf 2 114 | echo "Installing PHP 7.4" 115 | 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 --enablerepo=remi >> $sklog 116 | echo "......." 117 | 118 | fixit 74 119 | fi 120 | } 121 | 122 | function phpinstall56 () { 123 | ver=5.6 124 | if [ $actual = $ver ];then 125 | echo "Skip php 5.6 actually installed" 126 | else 127 | tput setaf 2 128 | echo "Instaling PHP 5.6" 129 | 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 --enablerepo=remi >> $sklog 130 | echo "......." 131 | 132 | fixit 56 133 | fi 134 | } 135 | function phpinstall55 () { 136 | ver=5.5 137 | if [ $actual = $ver ];then 138 | echo "Skip php 5.5 actually installed" 139 | else 140 | tput setaf 2 141 | echo "Instaling PHP 5.5" 142 | yum install -y php55-php-imap php55-php-process php55-php-pspell php55-php-xml php55-php-xmlrpc php55-php-pdo php55-php-ldap php55-php-pecl-zip php55-php-common php55-php php55-php-mcrypt php55-php-mysqlnd php55-php-gmp php55-php-mbstring php55-php-gd php55-php-tidy php55-php-pecl-memcache --enablerepo=remi >> $sklog 143 | echo "......." 144 | 145 | fixit 55 146 | fi 147 | } 148 | function phpinstall54 () { 149 | ver=5.4 150 | if [ $actual = $ver ];then 151 | echo "Skip php 5.4 actually installed" 152 | else 153 | tput setaf 2 154 | echo "Instaling PHP 5.4" 155 | yum install -y php54-php-pspell php54-php-process php54-php-imap php54-php-xml php54-php-xmlrpc php54-php-pdo php54-php-ldap php54-php-pecl-zip php54-php-common php54-php-gmp php54-php php54-php-mcrypt php54-php-mysqlnd php54-php-mbstring php54-php-gd php54-php-tidy php54-php-pecl-memcache --enablerepo=remi >> $sklog 156 | echo "........" 157 | 158 | fixit 54 159 | fi 160 | } 161 | all () { 162 | tput setaf 4 163 | echo "You Select install all php versions" 164 | tput sgr0 165 | phpinstall54 166 | phpinstall55 167 | phpinstall56 168 | phpinstall70 169 | phpinstall71 170 | phpinstall72 171 | phpinstall73 172 | phpinstall74 173 | phpinstall80 174 | } 175 | usage () { 176 | tput setaf 1 177 | echo "You can select php version you need, run your script as :" 178 | tput sgr0 179 | echo "bash $0 php55" 180 | echo "or" 181 | echo "bash $0 php56 php55 php71" 182 | tput setaf 1 183 | echo "or install all available versions :" 184 | tput sgr0 185 | echo "bash $0 all" 186 | tput setaf 1 187 | echo "###############################################" 188 | echo "Supported Versions: 54, 55, 56, 70, 71, 72, 73, 80" 189 | echo "###############################################" 190 | tput sgr0 191 | } 192 | 193 | if [ -e /etc/redhat-release ];then 194 | if [ -z "$1" ]; then 195 | usage 196 | exit 2 197 | fi 198 | if [[ "$sistema" -eq 7 || "$sistema" -eq 6 ]]; then 199 | tput setaf 4 200 | echo "You have remi repo installed and run: " 201 | cat /etc/redhat-release 202 | echo "##########" 203 | echo "Start installing aditional php version" 204 | echo "##########" 205 | tput sgr0 206 | for args in "$@" ; do 207 | tput setaf 2 208 | echo "Actually you runing php $actual, so I will skip it" 209 | tput sgr0 210 | case $args in 211 | php54) phpinstall54 ;; 212 | php55) phpinstall55 ;; 213 | php56) phpinstall56 ;; 214 | php70) phpinstall70 ;; 215 | php71) phpinstall71 ;; 216 | php72) phpinstall72 ;; 217 | php73) phpinstall73 ;; 218 | php74) phpinstall74 ;; 219 | php80) phpinstall80 ;; 220 | all) all ;; 221 | esac 222 | done 223 | echo "################################" 224 | echo "Aditional PHP versión installed!" 225 | echo "More info on skamasle.com or forum.vestacp.com or follwme in twiter @skamasle" 226 | echo "################################" 227 | fi 228 | else 229 | echo "Only support centos" 230 | exit 3 231 | fi 232 | -------------------------------------------------------------------------------- /sk-php-selector3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Skamasle PHP SELECTOR for vesta 3 | # version = beta 0.6 Code simplified just for testing 4 | # From skamasle.com 5 | # Run at your risk. 6 | sistema=$(grep -o "[0-9]" /etc/redhat-release |head -n1) 7 | sklog=/var/log/skphp.log 8 | if [ ! -e /etc/yum.repos.d/remi.repo ]; then 9 | echo "I not found remi repo, stop install... " 10 | exit 2 11 | fi 12 | # fix php 8 version detection... 13 | vp=$(php -v |head -n1 |cut -c5) 14 | if [ "$vp" -eq 5 ];then 15 | actual=$(php -v| head -n1 | grep --only-matching --perl-regexp "5\.\\d+") 16 | elif [ "$vp" -eq 7 ];then 17 | actual=$(php -v| head -n1 | grep --only-matching --perl-regexp "7\.\\d+") 18 | elif [ "$vp" -eq 8 ];then 19 | actual=$(php -v| head -n1 | grep --only-matching --perl-regexp "8\.\\d+") 20 | else 21 | echo "Cant get actual php version" 22 | echo "Run php -v and ask on forum or yo@skamasle.com" 23 | echo "Leaving instalation..." 24 | exit 4 25 | fi 26 | 27 | fixit () { 28 | # Temporary the resource from my personal Github repo. 29 | curl -s https://raw.githubusercontent.com/samaphp/sk-php-selector/master/sk-php${1}-centos.sh > /usr/local/vesta/data/templates/web/httpd/sk-php${1}.sh 30 | if [ ! -e /usr/local/vesta/data/templates/web/httpd/sk-php${1}.stpl ]; then 31 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php${1}.stpl 32 | fi 33 | if [ ! -e /usr/local/vesta/data/templates/web/httpd/sk-php${1}.tpl ]; then 34 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php${1}.tpl 35 | fi 36 | if [ -e /etc/opt/remi/php${1}/php.ini ] && [ ! -e /etc/php${1}.ini ]; then 37 | ln -s /etc/opt/remi/php${1}/php.ini /etc/php${1}.ini 38 | ln -s /etc/opt/remi/php${1}/php.d /etc/php${1}.d 39 | else 40 | if [ -e /opt/remi/php${1}/root/etc/php.ini ] && [ ! -e /etc/php${1}.ini ]; then 41 | ln -s /etc/opt/remi/php${1}/php.ini /etc/php${1}.ini 42 | ln -s /etc/opt/remi/php${1}/php.d /etc/php${1}.d 43 | fi 44 | fi 45 | chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php${1}.sh 46 | 47 | tput setaf 1 48 | echo "PHP ${ver2} Ready!" 49 | tput sgr0 50 | } 51 | 52 | installit() { 53 | ver=$1 54 | ver2=$2 55 | 56 | if [ $actual = $ver2 ];then 57 | echo "Skip php $ver2 actually installed" 58 | else 59 | tput setaf 2 60 | echo "Instaling PHP $ver2" 61 | yum install -y php${ver}-php-pspell php${ver}-php-process php${ver}-php-imap php${ver}-php-xml php${ver}-php-xmlrpc php${ver}-php-pdo php${ver}-php-ldap php${ver}-php-pecl-zip php${ver}-php-common php${ver}-php-gmp php${ver}-php php${ver}-php-mysqlnd php${ver}-php-mbstring php${ver}-php-gd php${ver}-php-tidy php${ver}-php-pecl-memcache --enablerepo=remi >> $sklog 62 | echo "........" 63 | fixit $ver $ver2 64 | fi 65 | } 66 | all () { 67 | tput setaf 4 68 | echo "You Select install all php versions" 69 | tput sgr0 70 | installit 54 5.4 71 | installit 55 5.5 72 | installit 56 5.6 73 | installit 70 7.0 74 | installit 71 7.1 75 | installit 72 7.2 76 | installit 73 7.3 77 | installit 74 7.4 78 | installit 80 8.0 79 | } 80 | usage () { 81 | tput setaf 1 82 | echo "You can select php version you need, run your script as :" 83 | tput sgr0 84 | echo "bash $0 php55" 85 | echo "or" 86 | echo "bash $0 php56 php55 php71" 87 | tput setaf 1 88 | echo "or install all available versions :" 89 | tput sgr0 90 | echo "bash $0 all" 91 | tput setaf 1 92 | echo "###############################################" 93 | echo "Supported Versions: 54, 55, 56, 70, 71, 72, 73, 80" 94 | echo "###############################################" 95 | tput sgr0 96 | } 97 | 98 | if [ -e /etc/redhat-release ];then 99 | if [ -z "$1" ]; then 100 | usage 101 | exit 2 102 | fi 103 | if [[ "$sistema" -eq 7 || "$sistema" -eq 6 ]]; then 104 | tput setaf 4 105 | echo "You have remi repo installed and run: " 106 | cat /etc/redhat-release 107 | echo "##########" 108 | echo "Start installing aditional php version" 109 | echo "##########" 110 | tput sgr0 111 | for args in "$@" ; do 112 | tput setaf 2 113 | echo "Actually you runing php $actual, so I will skip it" 114 | tput sgr0 115 | case $args in 116 | php54) installit 54 5.4 ;; 117 | php55) installit 55 5.5 ;; 118 | php56) installit 56 5.6 ;; 119 | php70) installit 70 7.0 ;; 120 | php71) installit 71 7.1 ;; 121 | php72) installit 72 7.2 ;; 122 | php73) installit 73 7.3 ;; 123 | php74) installit 74 7.4 ;; 124 | php80) installit 80 8.0 ;; 125 | all) all ;; 126 | esac 127 | done 128 | echo "################################" 129 | echo "Aditional PHP versión installed!" 130 | echo "More info on skamasle.com or forum.vestacp.com or follow me in twiter @skamasle" 131 | echo "################################" 132 | fi 133 | else 134 | echo "Only support centos" 135 | exit 3 136 | fi 137 | -------------------------------------------------------------------------------- /sk-php52-installer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Vesta PHP 5.2 compiler. 3 | # 29 febero 2016 4 | # Maks Skamasle -> skamasle.com | Twitter @skamasle 5 | 6 | OS=$(cat /etc/redhat-release |cut -d" " -f3|cut -d "." -f1) 7 | if [ $OS = "6" ]; then 8 | 9 | yum -y --enablerepo=remi install gcc make gcc-c++ cpp libxml2-devel openssl-devel bzip2-devel libjpeg-devel libpng-devel freetype-devel openldap-devel postgresql-devel aspell-devel net-snmp-devel libxslt-devel libc-client-devel libicu-devel gmp-devel curl-devel libmcrypt-devel unixODBC-devel pcre-devel sqlite-devel db4-devel enchant-devel libXpm-devel mysql-devel readline-devel libedit-devel recode-devel libtidy-devel 10 | else 11 | echo "This script run only in centos 6 and you have" 12 | cat /etc/redhat-release 13 | exit 1 14 | fi 15 | 16 | cd /usr/local/src 17 | 18 | wget http://mirror.skamasle.com/vestacp/PHP/bin/php-5.2.17.tar.gz 19 | 20 | tar xzf php-5.2.17.tar.gz 21 | cd php-5.2.17/ 22 | 23 | ./configure --with-libdir=lib64 --cache-file=./config.cache --prefix=/usr/local/php-5.2.17 --with-config-file-path=/usr/local/php-5.2.17/etc --disable-debug --with-pic --disable-rpath --with-bz2 --with-curl --with-freetype-dir=/usr/local/php-5.2.17 --with-png-dir=/usr/local/php-5.2.17 --enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr/local/php-5.2.17 --with-openssl --with-pspell --with-pcre-regex --with-zlib --enable-exif --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-wddx --with-kerberos --with-unixODBC=/usr --enable-shmop --enable-calendar --with-libxml-dir=/usr/local/php-5.2.17 --enable-pcntl --with-imap --with-imap-ssl --enable-mbstring --enable-mbregex --with-gd --enable-bcmath --with-xmlrpc --with-ldap --with-ldap-sasl --with-mysql=/usr --with-mysqli --with-snmp --enable-soap --with-xsl --enable-xmlreader --enable-xmlwriter --enable-pdo --with-pdo-mysql --with-pdo-pgsql --with-pear=/usr/local/php-5.2.17/pear --with-mcrypt --without-pdo-sqlite --with-config-file-scan-dir=/usr/local/php-5.2.17/php.d --enable-fastcgi 24 | 25 | status=$? 26 | 27 | if [ $status = 0 ];then 28 | make 29 | 30 | make install 31 | 32 | 33 | cp /usr/local/src/php-5.2.17/php.ini-recommended /usr/local/php-5.2.17/etc/php.ini 34 | 35 | curl -s http://mirror.skamasle.com/vestacp/PHP/sk-php52.sh > /usr/local/vesta/data/templates/web/httpd/sk-php52.sh 36 | 37 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php52.stpl 38 | 39 | ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php52.tpl 40 | chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php52.sh 41 | 42 | echo "PHP 5.2 compiled and templates installed" 43 | 44 | else 45 | echo "Stop compile, we get some errors" 46 | fi 47 | -------------------------------------------------------------------------------- /sk-php52.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=1000 13 | export PHP_FCGI_CHILDREN=20 14 | exec /usr/local/php-5.2.17/bin/php-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php54-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=500 13 | export PHP_FCGI_CHILDREN=10 14 | exec /usr/bin/php54-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php54-u14.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=1000 13 | export PHP_FCGI_CHILDREN=5 14 | exec /opt/skamasle/php/56/bin/php-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php55-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=500 13 | export PHP_FCGI_CHILDREN=10 14 | exec /usr/bin/php55-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php55-u14.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=1000 13 | export PHP_FCGI_CHILDREN=20 14 | exec /opt/skamasle/php55/bin/php-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php56-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=500 13 | export PHP_FCGI_CHILDREN=10 14 | exec /usr/bin/php56-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php56-u14.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=1000 13 | export PHP_FCGI_CHILDREN=20 14 | exec /opt/skamasle/php56/bin/php-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php70-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=500 13 | export PHP_FCGI_CHILDREN=10 14 | exec /usr/bin/php70-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php70-u14.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=1000 13 | export PHP_FCGI_CHILDREN=20 14 | exec /opt/skamasle/php70/bin/php-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php71-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=500 13 | export PHP_FCGI_CHILDREN=10 14 | exec /usr/bin/php71-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php72-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=500 13 | export PHP_FCGI_CHILDREN=10 14 | exec /usr/bin/php72-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php73-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=500 13 | export PHP_FCGI_CHILDREN=10 14 | exec /usr/bin/php73-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php74-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=500 13 | export PHP_FCGI_CHILDREN=10 14 | exec /usr/bin/php74-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /sk-php80-centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Adding php wrapper 3 | user="$1" 4 | domain="$2" 5 | ip="$3" 6 | home_dir="$4" 7 | docroot="$5" 8 | 9 | wrapper_script="#!/bin/sh 10 | PHPRC=/usr/local/lib 11 | export PHPRC 12 | export PHP_FCGI_MAX_REQUESTS=500 13 | export PHP_FCGI_CHILDREN=10 14 | exec /usr/bin/php80-cgi 15 | " 16 | wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter" 17 | 18 | echo "$wrapper_script" > $wrapper_file 19 | chown $user:$user $wrapper_file 20 | chmod -f 751 $wrapper_file 21 | 22 | exit 0 23 | --------------------------------------------------------------------------------