Hello I have 2 sites on ISPConfig panel, i switched them to PHP8.2. But i think server uses php 8.1 because it uses php8.1 ini file. How can i make server to use php8.2 on ISPConfig panel? Also when i install php-redis on server, is it loaded on all php versions or should i login to each site SSH and load it? Other question is, if i use web4 ssh details and login, when i want to make sudo action it requires sudo password. Where can i find it? I use the root password of the server but it doesn't work. Is it different? Thank you
you do not make the server use a different php. it uses the default php version for that release of the OS, changing it will break things. you can install multiple versions of php, and configure them in the ispconfig gui, and use any of those additional php version on hosted websites, the ispconfig gui remains on the default php. if you want php-redis installed for different php versions, install it for each one, eg apt install php8.1-redis php8.2-redis php8.3-redis etc.. it's then installed for that php version for the entire server, you do not load it to each site. if you're ssh'ing into the server using a website user, you do not use sudo, firstly, if the website ssh users are jailkitted, sudo is not included in the jailkit.. they do not have access to that command. secondly, if you already know the root login, use it.. or use the account that does have access, eg aws ubuntu ec2 installs, root is not allowed to login directly, you login as ubuntu, and that can sudo to root. being ssh'd in as (a non-jailkitted) web4 and sudo'ing to root may make things a littler quicker/easier for you, but it breaks the concept of least privilege, the web4 user should not have any way to access permissions to make server-wide changes, they don't need that right, they should not have that right. it might seem easier to add web4 to the sudoers list now, but what about if the web4 login gets compromised, it's allowed to try brute-forcing it's way to root.. and then you've got a whole new set of problems.