[SOLVED] User selectable PHP version

Discussion in 'Installation/Configuration' started by rob-air, Nov 6, 2022.

  1. rob-air

    rob-air New Member

    Hi there!
    I'm having an issue with multiple PHP versions: after configuring a few PHP versions, only I (the admin account) can change the PHP version used for any given website.

    Notes on the ispconfig setup:
    - multi-server under Debian 11, ISPConfig v3.2.8p1 on all nodes
    - PHP default version is 7.4
    - web server on web hosting node is apache 2.4.52-1~deb11u2
    - each PHP version i've configured was already installed on the system from initial ispconfig installation, I've just added them to "Additional PHP Versions" in ispconfig panel and made them available to all clients by not binding them to a single one (I've assumed that as the expected behaviour, but the issue is the same if i do bind a specific version to a single client)

    Each individual PHP version works fine, I tested them all (i've configured 5.6, 7.4, 8.0 & 8.1), both with FastCGI & FPM, no errors in logs at startup nor runtime, no visible issue in phpinfo() or elsewhere.
    Users can see the select menu with all available versions, they can select one and hit save... but it doesn't apply. It only applies when done from the admin account.

    Is there an option that I've missed regarding this? I am doing something wrong? I'm looking for any help on this, at this point I'm pretty sure I've just made a dumb mistake or missed a very clear menu option and am looking forward to having it sorted out.

    Thank you in advance for any help on this.
    Have a good day!
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I think that it because you modified the client's web settings as an admin. This had been discussed before so try searching the forum for its solution. Bump again if you still cannot resolve it.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Sites that you create as admin are protected from being changed by customers. Sites that you create for the customer via login or that the customer creates himself are unprotected. This is protection feature is configurable under System > interface > main config.
     
  4. rob-air

    rob-air New Member

    Thank you both for your quick and accurate reply!
    I've found the option and disabled it, problem solved.
    I had seen this option before but didn't know what it did. I also didn't know about the "login as client" option... A clear case of acute pebkac. Sorry and thanks again.

    About this client protection option, if i switch it back on later, will it affect the same users as today? Is there a way to reset the protection for affected users so i can switch the global option back on without blocking them?
     
    Th0m likes this.
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    When enabling/disabling it, it changes it for all existing websites.
     
    ahrasis likes this.
  6. rob-air

    rob-air New Member

    Ok, great! Thanks a lot.
     

Share This Page