Skip to content

Instantly share code, notes, and snippets.

@jaircuevajunior
Last active August 10, 2023 23:12
Show Gist options
  • Save jaircuevajunior/ddb8569e6fe0630d07449d2252973fe5 to your computer and use it in GitHub Desktop.
Save jaircuevajunior/ddb8569e6fe0630d07449d2252973fe5 to your computer and use it in GitHub Desktop.
Instalando PHP 5.6 FPM no Plesk Obisidian utilizando Ubuntu 18.04

Instalando PHP 5.6 FPM no Plesk Obisidian utilizando Ubuntu 18.04

add-apt-repository ppa:ondrej/php &&\
apt-get update &&\
apt-get install php5.6-fpm php5.6-curl php5.6-gd php5.6-mbstring php5.6-mysql php5.6-xml php5.6-zip -y

mkdir -p /opt/plesk/php/5.6/{bin,etc,sbin} &&\
\
ln -s /etc/php/5.6/fpm/pool.d /opt/plesk/php/5.6/etc/php-fpm.d &&\
ln -s /etc/php/5.6/fpm/php.ini /opt/plesk/php/5.6/etc/php.ini &&\
ln -s /etc/php/5.6/fpm/php-fpm.conf /opt/plesk/php/5.6/etc/php-fpm.conf &&\
ln -s /usr/sbin/php-fpm5.6 /opt/plesk/php/5.6/sbin/php-fpm &&\
ln -s /usr/bin/phar.phar5.6 /opt/plesk/php/5.6/bin/phar &&\
ln -s /usr/bin/php /opt/plesk/php/5.6/bin/php &&\
\
plesk bin php_handler --add \
-id "custom-php56-fpm" \
-displayname "5.6" \
-path /opt/plesk/php/5.6/sbin/php-fpm \
-clipath /opt/plesk/php/5.6/bin/php \
-phpini /opt/plesk/php/5.6/etc/php.ini \
-type fpm \
-service php56-fpm \
-poold /opt/plesk/php/5.6/etc/php-fpm.d &&\
\
echo "Done! :)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment