Control Web Panel
WebPanel => PHP => Topic started by: TheRavenKing on February 17, 2017, 11:21:06 AM
-
Hi,
I spend some good time to get my php settings to my requirements.
After using the PHP Version Switcher to use a different php version I noticed all my settings are back to 'default', :(
Even the settings in the: Simple PHP.ini editor are 'reset' to default...
Is there a setting or trick to recompile but keep my modified settings or extend the Simple PHP.ini editor and make sure this one is not reset?
Thanks.
-
For the simple php.ini you could use chattr.
Write protecting a file using chattr command
Let say you want to write protect the file called data.txt so that no other users can change it including root user, enter (you must login as the root user to use chattr command):
# chattr +i data.txt
To remove i attribute, enter:
# chattr -i data.txt
Source: https://www.cyberciti.biz/faq/linux-write-protecting-a-file/
I'm new to CWP but it would be nice to have custom conf and ini files that survive updates and version switches.
-
@karel,
Thank you, I was hoping I had overlooked a setting somewhere so it bahave like cPanel, but it seems not, like you suggested chattr is the only option then so far, I really hope they make it like cPanel.
Thanks for your time to respond.