Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
Quote:
Originally Posted by exmedia
Hello I just installed ispconfig 2.2.15 on Centos 5 and I was wondering if it could be possible to have a php.ini per website?
You can do this with e.g. SuPHP. Install SuPHP on your server, then enable it in ISPConfig in the config.inc.php file and then you can add a directive for a custom php.ini file in the apache directives field of the website in ISPConfig.
For example, will users be able to change things like memory_limit or max_execution_time in the php.ini file? If so is there a way to limit this behavior?
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
This is absolutely safe. Just make sure that you chown the file to the root user and group and give all other users and groups only read permissions to the php.ini file.
I'm running SuPHP right now and I don't have any php.ini files in my users sites. Couldn't a user just make a new php.ini file in the right place and take control?
Also, I do recall using a hosting service that gave me read/write permission to a php.ini file in my user root directory.. is this just a mod of some kind or another feature request for ISPConfig?
For example, will users be able to change things like memory_limit or max_execution_time in the php.ini file? If so is there a way to limit this behavior?
Public_domain, while I'm not a mod here, and your "information" of going to php.org for further info is a very good piece, the rest of your post is not. This forum is not just ISPConfig turf, but for everything linux. He is within his rights to ask here, especially because he's wanting to tie his solution to ISPC. Please leave your condescending posts in your head and out of the forum.
Recent comments
1 day 12 hours ago
1 day 21 hours ago
2 days 19 min ago
2 days 1 hour ago
2 days 2 hours ago
2 days 4 hours ago
2 days 6 hours ago
2 days 7 hours ago
2 days 23 hours ago
3 days 4 min ago