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.

For Testing PHP version changer tested on ubuntu working
#1
[Not Solved] For Testing PHP version changer tested on ubuntu working
PHP version changer tested on ubuntu working

version changer tested on ubuntu 14 working
upload php_ver.zpp


[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

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

  1. 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 Files
.zpp   php_ver(2).zpp (Size: 46.26 KB / Downloads: 0)
Reply
Thanks given by:
#2
[Not Solved] RE: For Testing PHP version changer tested on ubuntu working
Sorry forgot to add zpp
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
For Testing PHP version changer tested on Windows working ccr1969 1 199 03-29-2021, 03:42 AM
Last Post: ccr1969
PHP version changer ccr1969 25 2 002 03-08-2021, 03:22 AM
Last Post: ccr1969
PHP version changer Theo 60 77 307 01-31-2021, 01:45 PM
Last Post: ccr1969

Forum Jump:


Users browsing this thread: 1 Guest(s)