Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2008
    Location
    Rowley Regis
    Posts
    135

    Allowing custom php.ini globally

    Hi guys,

    had a few customers requesting they can have a custom php.ini file for their online shops/ software they are trying to run.

    Is there anyway to allow custom php.ini files globally to all customers as im having no luck trying to individually set it up for the clients.

    Alec

  2. #2
    Join Date
    Jun 2011
    Posts
    2,286
    cp /usr/local/lib/php.ini /home/USERNAME/public_html

    Go to the account in question and: chown USERNAME:USERNAME php.ini

    Edit the .htaccess file in public_html and add this line:
    SetEnv PHPRC /home/USERNAME/public_html/php.ini


    Is that what you have been doing?

  3. #3
    Join Date
    Jun 2008
    Location
    Rowley Regis
    Posts
    135
    I was doing something along thoes lines yes but was having no luck.

  4. #4
    Join Date
    May 2013
    Location
    India
    Posts
    748
    what is your PHP handler?

  5. #5
    Join Date
    Jun 2008
    Location
    Rowley Regis
    Posts
    135
    Were using CGI

  6. #6
    Are you using cloudlinux php-selector?

Similar Threads

  1. prevent users from allowing disabled function in custom php.ini files
    By 2Mhost in forum Hosting Security and Technology
    Replies: 5
    Last Post: 03-07-2012, 02:49 PM
  2. block php functions globally even custom ini cannot override
    By sysguru in forum Hosting Security and Technology
    Replies: 1
    Last Post: 03-07-2012, 01:40 PM
  3. SuPHP - Does a users custom php.ini replace the system php.ini or extend it?
    By wheelerc in forum Hosting Security and Technology
    Replies: 3
    Last Post: 03-26-2010, 09:06 PM
  4. suphp and php.ini, is there a way to prevent custom php.ini using suphp
    By sharmaine1111 in forum Hosting Security and Technology
    Replies: 9
    Last Post: 08-15-2009, 12:12 PM
  5. how can custom php.ini ?
    By VIETHOSTING in forum Hosting Security and Technology
    Replies: 3
    Last Post: 05-19-2008, 12:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •