Created New Domain under user but showing wrong PHP Versions

matthew01

Verified User
Joined
Dec 24, 2019
Messages
14
Hi All,

I am new to DirectAdmin and have setup a new user and Domain, I have logged in with the new user account to go and start uploading the website and I have noticed the PHP Version under the User vs Admin is different.

I have got openlitespeed as my webserver and under the admin section I have got PHP 7.4 lsphp and PHP 7.3 lsphp

When I login as the user account PHP shows PHP 7.4 mod_php and PHP 7.3 mod_php

How do I fix this issue up so new domains I add use openlitespeed and php 7.4 lsphp and PHP 7.3 lsphp

Matthew
 
Hi All,

I am new to DirectAdmin and have setup a new user and Domain, I have logged in with the new user account to go and start uploading the website and I have noticed the PHP Version under the User vs Admin is different.

I have got openlitespeed as my webserver and under the admin section I have got PHP 7.4 lsphp and PHP 7.3 lsphp

When I login as the user account PHP shows PHP 7.4 mod_php and PHP 7.3 mod_php

How do I fix this issue up so new domains I add use openlitespeed and php 7.4 lsphp and PHP 7.3 lsphp

Matthew
This may help for understanding.

https://help.directadmin.com/item.php?id=2094

Note: The first php version will be the default, and will run all webapps. Everything else is optional.

Just as an FYI

lets say you have set currently
php 1 7.2
php 2 5.6
php 3 7.3
php 4 7.0

So some user chooses number php 3 7.3

Later you move them around to something different.

php 1 7.4
php 2 5.6
php 3 7.2
php 4 7.3

the users are now using php7.2 since it is in position 3. Its position based switching not version based switching.
 
Hi Brent and John,

Thank you for your assistance attached is a screenshot of what I see under Admin that i have configured for PHP and what I see under the User

As you can see I can see PHP 7.4 and PHP 7.3 lsphp under Admin View

and under User View its showing

PHP 7.4 and PHP 7.3 mod_php

How can this be when I don't have either php versions set as mod_php

Regards

Matthew
 

Attachments

  • DirectAmin_PHP_issues.PNG
    DirectAmin_PHP_issues.PNG
    20.5 KB · Views: 170
If my memory is correct, DA treats lsphp as mod_php. I've just confirmed this in the code, where if DA reads lsphp, it swaps it with lsphp so all templates still work correctly with the mod_php settings/bits.

John
 
Back
Top