Go Back   Runner > Coding Corner > Php

Php PHP is a general-purpose scripting language especially suited to web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-28-2021, 02:02 PM
Runner's Avatar
Runner Runner is offline
Administrator
 
Join Date: Nov 2020
Location: Moose Jaw
Posts: 318
Send a message via Skype™ to Runner
Default PHP version changer tested on Windows working

PHP version changer tested on Windows working


the zpp has 3 PHP versions included 56 71 74


To add more Php download your flavor create new folder in C:\Sentora\panel\modules\Php_Ver\php.


name it Example: 80 in C:\Sentora\panel\modules\Php_Ver\php

Once upload you will need to edit C:\Sentora\panel\modules\Php_Ver\module.zpm


By adding to this if you delete a php you also remove this



<option value="74">Php 7.4.1</option> Example: <option value="80">Php 8.0.1</option>



Code:
Read And Follow Carefully

 
There is edits that need to be done !!!
  1. Now you canProceed to your apache\conf\httpd.conf . Open in your editor look for this line #LoadModule fcgid_module modules/mod_fcgid.so Remove # from it if you don't have this module go to https://httpd.apache.org/mod_fcgid/ download to your apache version.
  2. Add this to your httpd.conf this is just a guideline you can test your own settings in this module... look it up google is a friend # Use FastCGI to process .fcg .fcgi & .fpl scripts # Don't do this if mod_fastcgi is present, as it will try to do the same thing <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>
  3. Inside modules you will find php_ver in side that folder you will find folder php it has 3 folders named 56 74 71 this is were you will store your downloaded php versions. These versions come with it already in folder .
  4. Once you have installed these versions you have to make sure your ini is in it already included only needed if you add more.
  5. 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="8">Php 8 change 8 to say 54 or 72 than create folder 54 0r 72 what ever you changed option to than were it says php 8 change that to match new version same goes for your ini files add or delete them
Thats it now go test it
Attached Images
File Type: png win php ver.png (14.8 KB, 66 views)
File Type: png win server info php ver.png (9.9 KB, 1 views)
Attached Files
File Type: zpp Php_Ver.zpp (65.00 MB, 11 views)
Reply With Quote
  #2  
Old 02-28-2021, 11:16 PM
Runner's Avatar
Runner Runner is offline
Administrator
 
Join Date: Nov 2020
Location: Moose Jaw
Posts: 318
Send a message via Skype™ to Runner
Default Module_Zpm_Win.zpp to add to drop list of your Server

MODULE_ZPM Edit Php_Ver module.zpm
module.zpm You can edit the zpm for your Server...Edit file you want to meet your servers need



Change options for adding or taking away Php_Ver
Attached Images
File Type: png I Do Host zadmin.png (11.3 KB, 21 views)
File Type: png Screenshot_2021-02-28 https idohost cf.png (4.9 KB, 2 views)
File Type: png Screenshot_2021-03-04 I Do Host zadmin.png (10.7 KB, 2 views)
File Type: jpg Screenshot_2021-03-04 I Do Host zadmin(1).jpg (67.1 KB, 2 views)
Attached Files
File Type: zpp Module_Zpm_Win.zpp (3.8 KB, 6 views)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:29 PM.


Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright ©2020 - 2021, Runner
Ad Management plugin by RedTyger