mod_lsapi and PHP Selector
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Michael Holforty
  2. Monday, 20 February 2017
  3.  Subscribe via email
Simple question I don't seem to see a direct answer to...

Should I be able to have the server setup so that a new cPanel account can go to PHP Selector, select the PHP version they want, select the extensions they want, and run with the lsapi without manually adding AddType or SetHandler to the .htaccess file?
Rate this post:
  1. 21.02.2017 08:02:39
  2. # 1
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Your customers are not supposed to control if they would mod_lsapi or not. You do that as system administrator.

If you have mod_lsapi enabled globally with switch_mod_lsapi --enable-global then all domains will use mod_lsapi.

Otherwise you enable it per domains (that model will place directives into .htaccess) like:

switch_mod_lsapi --enable-domain domain1.com
switch_mod_lsapi --enable-domain domain2.com
  1. 21.02.2017 10:02:34
  2. # 2
Michael Holforty Accepted Answer
Posts: 14
Joined: 07.03.2014
0
Votes
Undo
That really didn't answer the question. I don't care if the user can change between CGI/FastCGI or LiteSpeed.

The question is can the users choose the PHP version and extensions using the PHP Selector with mod_lsapi enabled? Very, very simply, does CL mod_lsapi work with the PHP Selector?

If so, is it enabling it globally that gets me there?

I ask because I have tried the per domain, and PHP Selector doesn't work with that. It only installs the CL Native PHP 5.6 version with static extension.
  1. 21.02.2017 11:02:36
  2. # 3
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Sure it does. Mod_lsapi works perfectly with PHP Selector. No matter if globally enabled or enabled per domain.

If it is not working on your server - something is not configured properly. Better to create support ticket at https://helpdesk.cloudlinux.com .
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.