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.

mod_fastcgi multiple php version
#1
mod_fastcgi multiple php version
Hi devs, 

I've been using Sentora for a few years now and it was becoming increasingly more difficult to run sites on my server because of the PHP constraint.

I was wondering whether or not it is possible to upgrade sentora to enable a dropdown in the domain listing pages to change the PHP version of a website. 

Looking at it, with a little thought and effort this seems doable. 

Ways to do it? 

The way I see it being done is as follows:
  • Check the servers php version and make not of this.
  • Backup all php configuration files for easy revert later if needs be 
  • Backup vhost file just incase something screws up
  • Remove all versions of php on the machine
  • Clean up the configs (so not to leave any garbage)
  • Install/Enable mod_fastcgi
  • Install the cgi scripts ready
  • Allow the install script to offer which versions of php install so not to overload the system with PHP versions which aren't necessary (PHP5.6 and PHP7.0 should be defaults)
  • Run a command or something similar to update the vhosts. 
  • Create and update a php_versions table in the database with the installed versions
  • Add a new column to the domains table with a php version id (Makes life easier when figuring out what version is being used when it comes to updating the php version )
  • Add a new inline form field to: domains, sub domains and parked domains (?) which enables the user to select a PHP version
  • Done? I think.
Of course this will require mod_fastcgi to be enabled and some custom CGI scripts but it could also cause major issues with peoples installs if they've forcefully upgraded PHP without the use of the Sentora upgrade scripts.

It is also a cause for concern because it will be a major switch from PHP to PHP-FPM.

I think this feature will be very useful since many sites are upgrading to PHP7.1 and others are left to rot on PHP5.6.

With that being said it will be very difficult to upgrade to newer versions without suhosin, until that is released this project is kind of a sitting duck.
Reply
Thanks given by:
#2
RE: mod_fastcgi multiple php version
Your server will not be secure unless you setup a user for each account.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#3
RE: mod_fastcgi multiple php version
(05-17-2017, 06:15 PM)Me.B Wrote: Your server will not be secure unless you setup a user for each account.

M B

Having an account per user would be a drastic security improvement even with one version of PHP but would more than likely mean FTP needs some parts rewriting to work with it.
Reply
Thanks given by:


Forum Jump:


Users browsing this thread: 3 Guest(s)