version changer tested on ubuntu 14 working
upload php_ver.zpp
Read And Follow Carefully
There is edits that need to be done !!!
make sure you have installed: sudo apt-get install libapache2-mod-fcgid
as root and install the packages required to build the Php extension.
php 7 will complain
add this
sudo apt-get -y install gcc make autoconf libc-dev libsqlite3-dev libxml2-dev pkg-config
Find Php realeases here
https://www.php.net/releases/
Step 1
mkdir /opt/80
mkdir /usr/local/src/php80-build
cd /usr/local/src/php80-build
wget https://www.php.net/distributions/php-8.0.2.tar.bz2
tar jxf php-8.0.2.tar.bz2
cd /usr/local/src/php80-build/php-8.0.2/
Step 2
Configure and build PHP 8.0.2 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/80
so like this
./configure --prefix=/opt/80 so it don't over write existing php it installs to 80 not anywhere else
make -j2 #i have 4 cores but use 2 i7 proccesor
make install
Step 3
Copy php.ini and php-cgi
cp /usr/local/src/php80-build/php-8.0.2/php.ini-production /opt/80/php.ini
cp /opt/80/bin/php-cgi /opt/80/
service apache2 restart
Done
Repeat steps if you want diffrent php versions adding say php 8.0.2 follow steps 1 thru 3 changing folder to work with 5.3 example : mkdir /opt/80 to mkdir /opt/80 change all to match the 80
add this to your fcgid.conf /etc/apache2/mods_available
<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
Must do edits
- 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 it