version changer tested on ubuntu 14 workingRE: PHP version changer
02-23-2021, 09:09 AM
(This post was last modified: 02-25-2021, 05:44 AM by ccr1969.)
PHP version changer tested on ubuntu working
version changer tested on ubuntu 14 working
Click this bar to view the full image.
You can get more information on it at Runner[/b]
version changer tested on ubuntu 14 working
Click this bar to view the full image.
Read And Follow Carefully
There is edits that need to be done !!!
make sure you have installed: sudo apt-get install libapache2-mod-fcgid
Find Php realeases here
https://www.php.net/releases/
Step 1
mkdir /opt/56
mkdir /usr/local/src/php56-build
cd /usr/local/src/php56-build
wget https://www.php.net/distributions/php-5.6.40.tar.bz2
tar jxf php-5.6.40.tar.bz2
cd /usr/local/src/php56-build/php-5.6.40/
Step 2
Configure and build PHP 5.6.40 as follows (you can adjust the ./configure command to your needs, take a look at
./configure --help
what you want with php or just
When you execute ./configure, add the following argument: --prefix=/opt/56
so like this
./configure --prefix=/opt/56 so it don't over write existing php it installs to 56 not anywhere else
make
make install
Step 3
Copy php.ini and php-cgi
cp /usr/local/src/php56-build/php-5.6.40/php.ini-production /opt/56/php.ini
cp /opt/56/bin/php-cgi /opt/56/
Step 4
Now we must add this over write existing data cd /etc/apache2/mods-available
use your editor to edit the file fcgid.conf
add this to your fcgid.conf
<IfModule mod_fcgid.c>
MaxRequestLen 1000000000
IPCCommTimeout 9999
IPCConnectTimeout 100
FcgidBusyTimeout 600
IPCConnectTimeout 600
FcgidZombieScanInterval 30
FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 120
FcgidMaxProcessesPerClass 120
FcgidMinProcessesPerClass 60
FcgidConnectTimeout 600
FcgidIOTimeout 600
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
</IfModule>
Step 5
service apache2 restart
Done
Repeat steps if you want diffrent php versions adding say php 5.3.29 follow steps 1 thru 3 changing folder to work with 5.3 example : mkdir /opt/56 to mkdir /opt/53 change all to match the 53
You can change directory or add more Php Folders Etc by editing module.zpm just look at lay out you should figure it out Example:<option value="53">php 5.3.29</option> to say 54 or 72 than create folder 54 0r 72 what ever you changed option to than were it says php 5.3.29 change that to match new version
Thats it now go test it
Attached ThumbnailsThere is edits that need to be done !!!
make sure you have installed: sudo apt-get install libapache2-mod-fcgid
Find Php realeases here
https://www.php.net/releases/
Step 1
mkdir /opt/56
mkdir /usr/local/src/php56-build
cd /usr/local/src/php56-build
wget https://www.php.net/distributions/php-5.6.40.tar.bz2
tar jxf php-5.6.40.tar.bz2
cd /usr/local/src/php56-build/php-5.6.40/
Step 2
Configure and build PHP 5.6.40 as follows (you can adjust the ./configure command to your needs, take a look at
./configure --help
what you want with php or just
When you execute ./configure, add the following argument: --prefix=/opt/56
so like this
./configure --prefix=/opt/56 so it don't over write existing php it installs to 56 not anywhere else
make
make install
Step 3
Copy php.ini and php-cgi
cp /usr/local/src/php56-build/php-5.6.40/php.ini-production /opt/56/php.ini
cp /opt/56/bin/php-cgi /opt/56/
Step 4
Now we must add this over write existing data cd /etc/apache2/mods-available
use your editor to edit the file fcgid.conf
add this to your fcgid.conf
<IfModule mod_fcgid.c>
MaxRequestLen 1000000000
IPCCommTimeout 9999
IPCConnectTimeout 100
FcgidBusyTimeout 600
IPCConnectTimeout 600
FcgidZombieScanInterval 30
FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 120
FcgidMaxProcessesPerClass 120
FcgidMinProcessesPerClass 60
FcgidConnectTimeout 600
FcgidIOTimeout 600
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
</IfModule>
Step 5
service apache2 restart
Done
Repeat steps if you want diffrent php versions adding say php 5.3.29 follow steps 1 thru 3 changing folder to work with 5.3 example : mkdir /opt/56 to mkdir /opt/53 change all to match the 53
You can change directory or add more Php Folders Etc by editing module.zpm just look at lay out you should figure it out Example:<option value="53">php 5.3.29</option> to say 54 or 72 than create folder 54 0r 72 what ever you changed option to than were it says php 5.3.29 change that to match new version
Thats it now go test it
You can get more information on it at Runner[/b]