PHP Manager cant switch to LSAPI
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Nigel D
  2. Tuesday, 24 March 2020
  3.  Subscribe via email
Hay All

I am trying to switch php 7.0 from suphp to lsapi.

When in the WHM -> MultiPHP Manager

Under Set PHP version per domain i set my test domain to "inherit", to use cloudlinux php selection
Under PHP handlers 7.0 is set to use lsapi

But when i do an phpinfo it shows Server api as "CGI/FastCGI" and i cant get it to switch over.

What am i doing wrong?

Thanks
Rate this post:
  1. 24.03.2020 19:03:53
  2. # 1
Sergey Khristich Accepted Answer
Posts: 263
Joined: 20.05.2019
0
Votes
Undo
Hello Nigel,
Thank you for reaching out! It happens if mod_lsapi is not installed correctly or .htaccess is used in which the PHP version is set forcibly. We recommend reinstalling mod_lsapi and moving .htaccess.
If you have any other questions, feel free to ask here. Thank you for contacting us.
Marketing Manager
  1. 25.03.2020 11:03:13
  2. # 2
nigel Accepted Answer
Posts: 5
Joined: 08.01.2020
0
Votes
Undo
Hay

I just checked and .htaccess is blank a part from Cpanel basics.

How do i reinstall mod_lsapi, as i used the easy_apache to install the software

its very odd
  1. 25.03.2020 12:03:31
  2. # 3
Kate Grechishkina Accepted Answer
Posts: 32
Joined: 13.04.2019
0
Votes
Undo
Hello Nigel,
You say that you are using PHP Selector. Can you please tell me what is your System default PHP version in MultiPHPManager and what is your PHP Selector version?
You also need to switch your system default PHP version to lsapi to make it work.
  1. 25.03.2020 14:03:26
  2. # 4
nigel Accepted Answer
Posts: 5
Joined: 08.01.2020
0
Votes
Undo
You also need to switch your system default PHP version to lsapi to make it work

I did not know you need to do that, i give that an try

Can you please tell me what is your System default PHP version in MultiPHPManager

PHP 7.2 (ea-php72) that is running on "suphp"

PHP Selector version

Not sure how i find the version of the LVE php selector?
  1. 25.03.2020 14:03:09
  2. # 5
Kate Grechishkina Accepted Answer
Posts: 32
Joined: 13.04.2019
0
Votes
Undo
Hello,
To find out the version used in PHP Selector use this command:

# selectorctl -u USER -c
  1. 25.03.2020 15:03:20
  2. # 6
nigel Accepted Answer
Posts: 5
Joined: 08.01.2020
0
Votes
Undo
Thanks

I have it working when switching default PHP version to lsapi, i am guessing its not possable to have some sites running lsapi and others with suphp for example.

```sh
7.1 7.1.33 /opt/alt/php71/usr/bin/php-cgi
```
  1. 26.03.2020 10:03:17
  2. # 7
Sergey Khristich Accepted Answer
Posts: 263
Joined: 20.05.2019
0
Votes
Undo
Hello Nigel,
Thanks for following up! If you require any further information, let me know please.
Marketing Manager
  1. 26.03.2020 12:03:10
  2. # 8
nigel Accepted Answer
Posts: 5
Joined: 08.01.2020
0
Votes
Undo
Thanks

is it possible to have some sites running lsapi and others with suphp?

We want to test lsapi on an live server with out affecting all sites at once
  1. 26.03.2020 12:03:26
  2. # 9
Kate Grechishkina Accepted Answer
Posts: 32
Joined: 13.04.2019
0
Votes
Undo
Hello Nigel,
You can do that with some sites only if they are not running PHP Selector. If the PHP version is selected in MultiPHP Manager and it is different from the system default. All users that use PHP Selector will be moved to the mandler that is selected for the system default version.
  • 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.