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.

PHP version changer
#8
version changer tested on ubuntu 14 workingRE: PHP version changer
PHP version changer tested on ubuntu working

version changer tested on ubuntu 14 working


[Image: wol_error.gif]
Click this bar to view the full image.
[Image: phpinfo.png]


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
[Image: attachment.php?attachmentid=47&stc=1&thu...1614053640]   [Image: attachment.php?attachmentid=48&stc=1&thu...1614053640]Attached Thumbnails



You can get more information on it at Runner[/b]


Attached Files
.zpp   php_ver.zpp (Size: 46.26 KB / Downloads: 3)
Thanks given by:


Messages In This Thread
PHP version changer - by ccr1969 - 02-17-2021, 06:24 AM
RE: PHP version changer - by ccr1969 - 02-18-2021, 02:41 PM
RE: PHP version changer - by spoonman - 02-22-2021, 06:25 AM
RE: PHP version changer - by ccr1969 - 02-22-2021, 06:38 AM
version changer tested on ubuntu 14 workingRE: PHP version changer - by ccr1969 - 02-23-2021, 09:09 AM
RE: PHP version changer - by ccr1969 - 02-25-2021, 02:02 PM
RE: PHP version changer - by spoonman - 02-25-2021, 09:03 PM
RE: PHP version changer - by ccr1969 - 02-26-2021, 08:13 AM
RE: PHP version changer - by spoonman - 02-28-2021, 02:24 AM
RE: PHP version changer - by ccr1969 - 02-28-2021, 05:53 AM
RE: PHP version changer - by spoonman - 02-28-2021, 06:15 AM
RE: PHP version changer - by ccr1969 - 02-28-2021, 06:49 AM
RE: PHP version changer - by spoonman - 02-28-2021, 10:00 AM
RE: PHP version changer - by ccr1969 - 02-28-2021, 02:32 PM
RE: PHP version changer - by spoonman - 03-01-2021, 01:41 AM
RE: PHP version changer - by ccr1969 - 03-01-2021, 05:04 AM
RE: PHP version changer - by spoonman - 03-01-2021, 05:21 AM
RE: PHP version changer - by ccr1969 - 03-07-2021, 05:34 AM
RE: PHP version changer - by spoonman - 03-07-2021, 08:53 AM
RE: PHP version changer - by ccr1969 - 03-08-2021, 03:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
PHP version changer Theo 62 158 ,105 07-18-2023, 10:57 AM
Last Post: ccr1969
Sentastico MediaWiki Requires Newer Version of PHP? dsmarter 1 5 ,425 08-19-2017, 03:45 AM
Last Post: TGates
How to install Select PHP Version cangkirhost 5 30 ,648 11-03-2016, 12:03 PM
Last Post: cangkirhost

Forum Jump:


Users browsing this thread: 2 Guest(s)