#1  
Old 8th August 2007, 14:58
exmedia exmedia is offline
Junior Member
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question individual php.ini

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?
Reply With Quote
Sponsored Links
  #2  
Old 9th August 2007, 10:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,216 Times in 4,089 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th January 2008, 09:34
oo22 oo22 is offline
Junior Member
 
Join Date: Jan 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Does anyone know how safe this is?

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?
Reply With Quote
  #4  
Old 7th January 2008, 09:56
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,216 Times in 4,089 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
oo22 (7th January 2008)
  #5  
Old 7th January 2008, 10:59
oo22 oo22 is offline
Junior Member
 
Join Date: Jan 2008
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for the quick reply!

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?
Reply With Quote
  #6  
Old 8th January 2008, 17:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,722 Times in 2,563 Posts
Default

Quote:
Originally Posted by oo22
Couldn't a user just make a new php.ini file in the right place and take control?
Not if he has only read permissions.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 10th January 2008, 06:52
LaoWei LaoWei is offline
Junior Member
 
Join Date: Jan 2008
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

max_execution_time can be changed in PHP code.

Quote:
Originally Posted by oo22
Does anyone know how safe this is?

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?
Reply With Quote
  #8  
Old 23rd January 2008, 00:45
public_domain public_domain is offline
Junior Member
 
Join Date: Dec 2007
Location: seattle washington
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

why dont you just go to php.org and read all about it. i dont think this is the forum for your current concerns. thank you.
Reply With Quote
  #9  
Old 23rd January 2008, 02:40
heymrdj heymrdj is offline
Member
 
Join Date: Feb 2007
Posts: 58
Thanks: 2
Thanked 4 Times in 4 Posts
 
Default

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.

Thank you.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin and php.ini warrior Installation/Configuration 9 5th March 2007 11:42
need to change toggle settings of php.ini file in SSH bpstyle Installation/Configuration 4 13th February 2007 11:33
FATAL ERROR: register_globals is disabled in php.ini, please enable it wvsailor Installation/Configuration 4 20th September 2006 19:45
php.ini ?!! gabykh Installation/Configuration 3 28th July 2006 20:15
Wrong php.ini? roadrunner Programming/Scripts 1 26th April 2005 15:29


All times are GMT +2. The time now is 01:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.