This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

FPM/FastCGI Php changer
#1
[Solved] FPM/FastCGI Php changer
Been testing and i de like for someone to test this out
its another php changer but running Server API FPM/FastCGI
install module as normal if need be unistall old module
once installed and you set right user group save so you can acess it first thing hit the instructions buttom it may be useful


heres a bash script i'm working on if you just run the cmds either one at a time or a whole
Code:
#!/bin/bash
# init
cd
echo "############################################################"
echo "#  Php Fpm Builds"
echo "############################################################"
echo "############################################################"
echo "#  OnDaemonRun.hook.php Replace & Back up Original"
echo "############################################################"
echo  && sleep 5
cd /etc/sentora/panel/modules/apache_admin/hooks
sed '' /etc/sentora/panel/modules/apache_admin/hooks/OnDaemonRun.hook.php -i.bak
cd /etc/sentora/panel/modules/ub_php_ver
unzip -o ODR.zip
cp /etc/sentora/panel/modules/ub_php_ver/OnDaemonRun.hook.php /etc/sentora/panel/modules/apache_admin/hooks/
cd /etc/sentora/panel/modules/apache_admin/hooks
sed '' /etc/sentora/panel/modules/apache_admin/hooks/OnDaemonRun.hook.php -i.bak
cd /etc/sentora/panel/modules/ub_php_ver
unzip -o ODR.zip
cp /etc/sentora/panel/modules/ub_php_ver/OnDaemonRun.hook.php /etc/sentora/panel/modules/apache_admin/hooks/
echo  && sleep 5
cd
echo "############################################################"
echo "# Libraries Needed "
echo "############################################################"
add-apt-repository ppa:ondrej/php -y
apt-get update
echo "############################################################"
echo "# Php versions to install "
echo "############################################################"
apt-get -y install php5.6-fpm php5.6-dev php7.0-fpm php7.0-dev php7.1-fpm php7.1-dev php7.2-fpm php7.2-dev php7.3-fpm php7.3-dev php7.4-fpm php7.4-dev  php8.0-fpm php8.0-dev php8.1-fpm php8.1-dev php8.2-fpm php8.2-dev
echo  && sleep 5
cd
curl -O https://download.suhosin.org/suhosin-0.9.38.tar.gz
tar xzf suhosin-0.9.38.tar.gz
cd suhosin-0.9.38
/usr/bin/phpize5.6
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config5.6 --enable-suhosin
make -j2
make install
echo "
[suhosin]
extension=suhosin.so
suhosin.session.encrypt = Off
suhosin.session.cryptua = Off
suhosin.cookie.encrypt = Off
suhosin.memory_limit = 4096
suhosin.get.max_name_length = 512
suhosin.get.max_totalname_length = 512
suhosin.get.max_value_length = 1024
suhosin.post.max_vars = 4096
suhosin.post.max_array_index_length = 256
suhosin.post.max_name_length = 512
suhosin.post.max_totalname_length = 8192
suhosin.request.max_vars = 4096
suhosin.request.max_varname_length = 512
suhosin.request.max_array_index_length = 256
suhosin.request.max_totalname_length = 8192
suhosin.request.max_varname_length = 512
suhosin.executor.include.max_traversal = 4
suhosin.executor.disable_eval = Off
suhosin.executor.disable_emodifier = Off
suhosin.log.syslog = 511
suhosin.mail.protect = 2
suhosin.sql.bailout_on_error = On" >> /etc/php/5.6/mods-available/suhosin.ini
cp /etc/php/5.6/mods-available/suhosin.ini  /etc/php/5.6/fpm/conf.d/20-suhosin.ini
service php5.6-fpm restart
echo  && sleep 5
cd
git clone https://github.com/sektioneins/suhosin7
cd suhosin7
/usr/bin/phpize7.0
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config7.0 --enable-suhosin7
make -j2
make install
echo  && sleep 5
echo "
[suhosin]
extension=suhosin7.so
suhosin.session.encrypt = Off
suhosin.session.cryptua = Off
suhosin.cookie.encrypt = Off
suhosin.memory_limit = 4096
suhosin.get.max_name_length = 512
suhosin.get.max_totalname_length = 512
suhosin.get.max_value_length = 1024
suhosin.post.max_vars = 4096
suhosin.post.max_array_index_length = 256
suhosin.post.max_name_length = 512
suhosin.post.max_totalname_length = 8192
suhosin.request.max_vars = 4096
suhosin.request.max_varname_length = 512
suhosin.request.max_array_index_length = 256
suhosin.request.max_totalname_length = 8192
suhosin.request.max_varname_length = 512
suhosin.executor.include.max_traversal = 4
suhosin.executor.disable_eval = Off
suhosin.executor.disable_emodifier = Off
suhosin.log.syslog = 511
suhosin.mail.protect = 2
suhosin.sql.bailout_on_error = On" >> /etc/php/7.0/mods-available/suhosin7.ini
cp /etc/php/7.0/mods-available/suhosin7.ini  /etc/php/7.0/fpm/conf.d/20-suhosin7.ini
service php7.0-fpm restart
echo  && sleep 5

cd
git clone https://github.com/sektioneins/suhosin7
cd suhosin7
/usr/bin/phpize7.1
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config7.1 --enable-suhosin7
make clean -j2
make -j2
make install
echo "
[suhosin]
extension=suhosin7.so
suhosin.session.encrypt = Off
suhosin.session.cryptua = Off
suhosin.cookie.encrypt = Off
suhosin.memory_limit = 4096
suhosin.get.max_name_length = 512
suhosin.get.max_totalname_length = 512
suhosin.get.max_value_length = 1024
suhosin.post.max_vars = 4096
suhosin.post.max_array_index_length = 256
suhosin.post.max_name_length = 512
suhosin.post.max_totalname_length = 8192
suhosin.request.max_vars = 4096
suhosin.request.max_varname_length = 512
suhosin.request.max_array_index_length = 256
suhosin.request.max_totalname_length = 8192
suhosin.request.max_varname_length = 512
suhosin.executor.include.max_traversal = 4
suhosin.executor.disable_eval = Off
suhosin.executor.disable_emodifier = Off
suhosin.log.syslog = 511
suhosin.mail.protect = 2
suhosin.sql.bailout_on_error = On" >> /etc/php/7.1/mods-available/suhosin7.ini
cp /etc/php/7.1/mods-available/suhosin7.ini  /etc/php/7.1/fpm/conf.d/20-suhosin7.ini
service php7.1-fpm restart
echo  && sleep 5
cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize7.2
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config7.2 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/7.2/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/7.2/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/7.2/mods-available/snuffleupagus.ini
cp /etc/php/7.2/mods-available/snuffleupagus.ini  /etc/php/7.2/fpm/conf.d/20-snuffleupagus.ini
echo
service php7.2-fpm restart
echo  && sleep 5
cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize7.3
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config7.3 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/7.3/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/7.3/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/7.3/mods-available/snuffleupagus.ini
cp /etc/php/7.3/mods-available/snuffleupagus.ini  /etc/php/7.3/fpm/conf.d/20-snuffleupagus.ini
service php7.3-fpm restart
echo  && sleep 5

cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize7.4
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config7.4 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/7.3/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/7.4/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/7.4/mods-available/snuffleupagus.ini
cp /etc/php/7.4/mods-available/snuffleupagus.ini  /etc/php/7.4/fpm/conf.d/20-snuffleupagus.ini
service php7.4-fpm restart
echo  && sleep 5

cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize8.0
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config8.0 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/8.0/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/8.0/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/8.0/mods-available/snuffleupagus.ini
cp /etc/php/8.0/mods-available/snuffleupagus.ini  /etc/php/8.0/fpm/conf.d/20-snuffleupagus.ini
service php8.0-fpm restart
echo  && sleep 5

cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize8.1
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config8.1 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/8.1/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/8.1/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/8.1/mods-available/snuffleupagus.ini
cp /etc/php/8.1/mods-available/snuffleupagus.ini  /etc/php/8.1/fpm/conf.d/20-snuffleupagus.ini
service php8.1-fpm restart
echo  && sleep 5

cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize8.2
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config8.2 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/8.2/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/8.2/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/8.2/mods-available/snuffleupagus.ini
cp /etc/php/8.2/mods-available/snuffleupagus.ini  /etc/php/8.2/fpm/conf.d/20-snuffleupagus.ini
service php8.2-fpm restart
echo  && sleep 5
cd
a2enmod proxy_fcgi setenvif
echo  && sleep 5
cd
service apache2 restart
echo  && sleep 5
cd
update-alternatives --config php
cd


Attached Files Thumbnail(s)
               

.zpp   ub_php_ver.zpp (Size: 51.81 KB / Downloads: 4)
Easy come Easy go 
Reply
Thanks given by: TGates
#2
[Solved] RE: FPM/FastCGI Php changer
(08-06-2023, 10:43 AM)ccr1969 proof of concept Wrote: Been testing and i de like for someone to test this out
its another php changer but running Server API FPM/FastCGI
install module as normal if need be unistall old module
once installed and you set right user group save so you can acess it first thing hit the instructions buttom it may be useful


heres a bash script i'm working on if you just run the cmds either one at a time or a whole
Code:
#!/bin/bash
# init
cd
echo "############################################################"
echo "#  Php Fpm Builds"
echo "############################################################"
echo "############################################################"
echo "#  OnDaemonRun.hook.php Replace & Back up Original"
echo "############################################################"
echo  && sleep 5
cd /etc/sentora/panel/modules/apache_admin/hooks
sed '' /etc/sentora/panel/modules/apache_admin/hooks/OnDaemonRun.hook.php -i.bak
cd /etc/sentora/panel/modules/ub_php_ver
unzip -o ODR.zip
cp /etc/sentora/panel/modules/ub_php_ver/OnDaemonRun.hook.php /etc/sentora/panel/modules/apache_admin/hooks/
cd /etc/sentora/panel/modules/apache_admin/hooks
sed '' /etc/sentora/panel/modules/apache_admin/hooks/OnDaemonRun.hook.php -i.bak
cd /etc/sentora/panel/modules/ub_php_ver
unzip -o ODR.zip
cp /etc/sentora/panel/modules/ub_php_ver/OnDaemonRun.hook.php /etc/sentora/panel/modules/apache_admin/hooks/
echo  && sleep 5
cd
echo "############################################################"
echo "# Libraries Needed "
echo "############################################################"
add-apt-repository ppa:ondrej/php -y
apt-get update
echo "############################################################"
echo "# Php versions to install "
echo "############################################################"
apt-get -y install php5.6-fpm php5.6-dev php7.0-fpm php7.0-dev php7.1-fpm php7.1-dev php7.2-fpm php7.2-dev php7.3-fpm php7.3-dev php7.4-fpm php7.4-dev  php8.0-fpm php8.0-dev php8.1-fpm php8.1-dev php8.2-fpm php8.2-dev
echo  && sleep 5
cd
curl -O https://download.suhosin.org/suhosin-0.9.38.tar.gz
tar xzf suhosin-0.9.38.tar.gz
cd suhosin-0.9.38
/usr/bin/phpize5.6
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config5.6 --enable-suhosin
make -j2
make install
echo "
[suhosin]
extension=suhosin.so
suhosin.session.encrypt = Off
suhosin.session.cryptua = Off
suhosin.cookie.encrypt = Off
suhosin.memory_limit = 4096
suhosin.get.max_name_length = 512
suhosin.get.max_totalname_length = 512
suhosin.get.max_value_length = 1024
suhosin.post.max_vars = 4096
suhosin.post.max_array_index_length = 256
suhosin.post.max_name_length = 512
suhosin.post.max_totalname_length = 8192
suhosin.request.max_vars = 4096
suhosin.request.max_varname_length = 512
suhosin.request.max_array_index_length = 256
suhosin.request.max_totalname_length = 8192
suhosin.request.max_varname_length = 512
suhosin.executor.include.max_traversal = 4
suhosin.executor.disable_eval = Off
suhosin.executor.disable_emodifier = Off
suhosin.log.syslog = 511
suhosin.mail.protect = 2
suhosin.sql.bailout_on_error = On" >> /etc/php/5.6/mods-available/suhosin.ini
cp /etc/php/5.6/mods-available/suhosin.ini  /etc/php/5.6/fpm/conf.d/20-suhosin.ini
service php5.6-fpm restart
echo  && sleep 5
cd
git clone https://github.com/sektioneins/suhosin7
cd suhosin7
/usr/bin/phpize7.0
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config7.0 --enable-suhosin7
make -j2
make install
echo  && sleep 5
echo "
[suhosin]
extension=suhosin7.so
suhosin.session.encrypt = Off
suhosin.session.cryptua = Off
suhosin.cookie.encrypt = Off
suhosin.memory_limit = 4096
suhosin.get.max_name_length = 512
suhosin.get.max_totalname_length = 512
suhosin.get.max_value_length = 1024
suhosin.post.max_vars = 4096
suhosin.post.max_array_index_length = 256
suhosin.post.max_name_length = 512
suhosin.post.max_totalname_length = 8192
suhosin.request.max_vars = 4096
suhosin.request.max_varname_length = 512
suhosin.request.max_array_index_length = 256
suhosin.request.max_totalname_length = 8192
suhosin.request.max_varname_length = 512
suhosin.executor.include.max_traversal = 4
suhosin.executor.disable_eval = Off
suhosin.executor.disable_emodifier = Off
suhosin.log.syslog = 511
suhosin.mail.protect = 2
suhosin.sql.bailout_on_error = On" >> /etc/php/7.0/mods-available/suhosin7.ini
cp /etc/php/7.0/mods-available/suhosin7.ini  /etc/php/7.0/fpm/conf.d/20-suhosin7.ini
service php7.0-fpm restart
echo  && sleep 5

cd
git clone https://github.com/sektioneins/suhosin7
cd suhosin7
/usr/bin/phpize7.1
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config7.1 --enable-suhosin7
make clean -j2
make -j2
make install
echo "
[suhosin]
extension=suhosin7.so
suhosin.session.encrypt = Off
suhosin.session.cryptua = Off
suhosin.cookie.encrypt = Off
suhosin.memory_limit = 4096
suhosin.get.max_name_length = 512
suhosin.get.max_totalname_length = 512
suhosin.get.max_value_length = 1024
suhosin.post.max_vars = 4096
suhosin.post.max_array_index_length = 256
suhosin.post.max_name_length = 512
suhosin.post.max_totalname_length = 8192
suhosin.request.max_vars = 4096
suhosin.request.max_varname_length = 512
suhosin.request.max_array_index_length = 256
suhosin.request.max_totalname_length = 8192
suhosin.request.max_varname_length = 512
suhosin.executor.include.max_traversal = 4
suhosin.executor.disable_eval = Off
suhosin.executor.disable_emodifier = Off
suhosin.log.syslog = 511
suhosin.mail.protect = 2
suhosin.sql.bailout_on_error = On" >> /etc/php/7.1/mods-available/suhosin7.ini
cp /etc/php/7.1/mods-available/suhosin7.ini  /etc/php/7.1/fpm/conf.d/20-suhosin7.ini
service php7.1-fpm restart
echo  && sleep 5
cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize7.2
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config7.2 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/7.2/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/7.2/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/7.2/mods-available/snuffleupagus.ini
cp /etc/php/7.2/mods-available/snuffleupagus.ini  /etc/php/7.2/fpm/conf.d/20-snuffleupagus.ini
echo
service php7.2-fpm restart
echo  && sleep 5
cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize7.3
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config7.3 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/7.3/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/7.3/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/7.3/mods-available/snuffleupagus.ini
cp /etc/php/7.3/mods-available/snuffleupagus.ini  /etc/php/7.3/fpm/conf.d/20-snuffleupagus.ini
service php7.3-fpm restart
echo  && sleep 5

cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize7.4
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config7.4 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/7.3/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/7.4/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/7.4/mods-available/snuffleupagus.ini
cp /etc/php/7.4/mods-available/snuffleupagus.ini  /etc/php/7.4/fpm/conf.d/20-snuffleupagus.ini
service php7.4-fpm restart
echo  && sleep 5

cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize8.0
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config8.0 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/8.0/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/8.0/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/8.0/mods-available/snuffleupagus.ini
cp /etc/php/8.0/mods-available/snuffleupagus.ini  /etc/php/8.0/fpm/conf.d/20-snuffleupagus.ini
service php8.0-fpm restart
echo  && sleep 5

cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize8.1
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config8.1 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/8.1/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/8.1/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/8.1/mods-available/snuffleupagus.ini
cp /etc/php/8.1/mods-available/snuffleupagus.ini  /etc/php/8.1/fpm/conf.d/20-snuffleupagus.ini
service php8.1-fpm restart
echo  && sleep 5

cd
wget https://github.com/jvoisin/snuffleupagus/archive/refs/tags/v0.9.0.tar.gz
tar xzf v0.9.0.tar.gz
cd /root/snuffleupagus-0.9.0/src
/usr/bin/phpize8.2
PATH=/usr/bin/:$PATH ./configure --with-php-config=/usr/bin/php-config8.2 --enable-snuffleupagus
make -j2
make install
make clean
make -j$(nproc)
make install
echo "extension=snuffleupagus.so" >> /etc/php/8.2/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/sentora.rules" >> /etc/php/8.2/mods-available/snuffleupagus.ini
echo "sp.configuration_file=/etc/sentora/configs/php/sp/snuffleupagus.rules" >> /etc/php/8.2/mods-available/snuffleupagus.ini
cp /etc/php/8.2/mods-available/snuffleupagus.ini  /etc/php/8.2/fpm/conf.d/20-snuffleupagus.ini
service php8.2-fpm restart
echo  && sleep 5
cd
a2enmod proxy_fcgi setenvif
echo  && sleep 5
cd
service apache2 restart
echo  && sleep 5
cd
update-alternatives --config php
cd


Attached Files Thumbnail(s)
       
Easy come Easy go 
Reply
Thanks given by:
#3
[Solved] RE: FPM/FastCGI Php changer
Awesome! Have you checked to make sure suhosin and snuff are blocking disabled functions?
-Jettaman-

NEW: Sentora v.2.0.1 has been released!!!

Sentora's quick recovery depends on community support and donations. We need to stand as one and help Sentora into the future.

Donate HERE and do your part. We thank you for your support.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Php Version Changer "Enjoy" ccr1969 0 589 06-27-2023, 04:21 AM
Last Post: ccr1969

Forum Jump:


Users browsing this thread: 1 Guest(s)