Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    1

    Default PHP.ini

    Hello,

    Please help me, I'm begginer in cpanel configuring.
    I have installed latest Apache2 and php5 on cpanel, and I want to add to each domain one php.ini file.
    How can I make this??

    Thanks in advance.
    Regards

  2. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Exclamation

    Quote Originally Posted by bblori View Post
    Hello,

    Please help me, I'm begginer in cpanel configuring.
    I have installed latest Apache2 and php5 on cpanel, and I want to add to each domain one php.ini file.
    How can I make this??

    Thanks in advance.
    Regards
    Unless this is done correctly, you open a very major security problem ....

    As such, I'll be glad to just go ahead and do this for you.

    (Contact me by private message)

  3. #3
    Member linux7802's Avatar
    Join Date
    Dec 2007
    Posts
    224
    cPanel/Enkompass Access Level

    Root Administrator

    Default Solution

    As you want to set php.ini for your each an every domain due to that you need to use SuExec/Suphp enabled server so that you can manage php functions as per your requirement by using php.ini file

    First you need to check if your server is Suexec/Suphp enabled or not? by using steps provided on following URL

    The Perfect Forum / Blog ..What you think? » Blog Archive » Simply check server is SuExec or not?

    If Suexec/Suphp haven't enabled then enable it by using easyapaceh

    Run following script on your server as root user

    /scripts/easyapache

    and select suphp modules from list but I would like recommend you please do not try it yourself you can contact any server admin to enable it or you can also send private messages to us so that we can enable it for you....
    Regards,
    G R Sonar
    cPanel Hosting Blog

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Linux7802, you are going to get him in a lot of trouble using the SuPHP home override exploit as a means to setup custom PHP configurations! Bad Idea!

    That is precisely what I was trying to help him avoid!

  5. #5
    Member linux7802's Avatar
    Join Date
    Dec 2007
    Posts
    224
    cPanel/Enkompass Access Level

    Root Administrator

    Default Solution

    Yes I understood that "Spiral" but without Suexec/Suphp he can't use customize php.ini file for each an every cPanel user

    I would like to recommend "bblori" explain exact functions/modules he wants to manage with customize php.ini so that we can help him in better way.
    Regards,
    G R Sonar
    cPanel Hosting Blog

  6. #6
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by linux7802 View Post
    Yes I understood that "Spiral" but without Suexec/Suphp he can't use customize php.ini file for each an every cPanel user
    I am not saying don't use SuPHP, I am just saying be "very" careful!

    If you just blindly install SuPHP in it's default state (like from EasyApache) then every user on the server will be able override EVERY setting on your server's PHP configuration which is actually worse than standard insecure DSO (Apache module) based PHP because that at least limits overrides to restricted setting changes.

    There are ways to overcome this vulnerability and setup custom PHP.INI configurations for accounts while still maintaining security and keeping protected from random (and possible dangerous) overrides from users!

    I would like to recommend "bblori" explain exact functions/modules he wants to manage with customize php.ini so that we can help him in better way.
    Agreed! A little bit more information into "specifically" what he is trying to do would help a lot as it may not even be necessary for any custom configurations depending on what they are trying to do.

Similar Threads & Tags
Similar threads

  1. Individual php.ini files for PHP FCGI and PHP CGI
    By Miraenda in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-22-2011, 08:55 AM
  2. php.ini and override default php.ini
    By areh in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-24-2009, 05:45 PM
  3. Updating cpanel PHP changed main server php.ini
    By 4u123 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-06-2009, 02:46 PM
  4. Question about PHP security, setting up multiple php.ini files?
    By sirbrent in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-01-2008, 10:58 AM
  5. Disabling local php.ini while php still runs in SUExec mode
    By gizmoh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2005, 11:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube