Where to place secondary php.ini on CENTos webserver?

Discussion in 'Web Server' started by DSeyir, Sep 4, 2013.

  1. DSeyir

    DSeyir New Member

    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Hi,

    I have a VPS and sub accounts on those.

    There is a php.ini that I access via SSH, but modifications there are not affecting the upload max allowed on the sub account.

    So, if I place a secondary php.ini, where should it be: on the public_html folder of the sub-account or before that /home/user ?


    Thank you
    DevynCJohnson likes this.
  2. DSeyir

    DSeyir New Member

    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Anyone there?

    I did placed on the working folder but its not affecting, had to modify things on the root php.ini

    Please <>
  3. nixsavy

    nixsavy Member

    Messages:
    65
    Likes Received:
    17
    Trophy Points:
    8
    First of all check the Loaded Configuration File for the domain. For this you can Create a phpinfo.php page under document root path of your domain and insert below code then access with your domain name as http://yourdomain.com/phpinfo.php . Make sure file permissions and ownership is correct.

    Code:
    <?php phpinfo(); ?>
    There you will see a option "Loaded Configuration File" then make changes in that file to make changes for domain.
    DevynCJohnson likes this.

Share This Page