Persist with the chosen PHP version.

elsevi

Verified User
Joined
Jan 27, 2020
Messages
38
How do you make the chosen PHP version stick based on your selection rather than the slot you picked? The problem is that if a user selects slot 1, which is PHP 8.4, and later switches to PHP 8.5, their application might not be compatible and would give an error. How can we make the version information persist by version instead of by slot and avoid this recurring issue?

Thanks
 
Hello,

There is no automation for this. You will need to address it manually through modifying php1_select= option in every /usr/local/directadmin/data/users/*/domains/*.conf file.



How can we make the version information persist by version instead of by slot and avoid this recurring issue?
 
I completely understand, but unfortunately, I have to say that this is not practical.

The issue is that we are constantly adding new PHP versions because the security ecosystem itself requires us to do so. In practice, this means adding the new versions to additional slots.

However, we have encountered situations on some of our servers where the primary PHP version slot has become obsolete, preventing Roundcube from being updated.

This raises several important concerns that I believe should be addressed. For example, if I have multiple slots with different PHP versions and later change the PHP version assigned to one of those slots, that change directly affects all users who are using it.

For this reason, the PHP version selected by each user should persist independently of any subsequent changes made to the slot itself. I believe this is an important issue that the DirectAdmin developers should investigate thoroughly.
 
Back
Top