php.ini - need to find right one

Discussion in 'General' started by smokinjo, Aug 15, 2016.

  1. smokinjo

    smokinjo Member

    I have installed suitecrm, a crm software based on sugarcrm.

    It has a 7 or 8MB upload memory limit on files. I need to up this, because I need to upgrade SuiteCRM' and the upgrade file is 0.5MB too big. I want to increase the size.
    It turns out that I need to modify the php.ini file

    I ran the locate command and found a few of them:

    I modified the first one of the list. But, this has no affect.
    Can some one point me to the correct php.ini file to change?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If you use php mode php-fcgi, then it is this one: /etc/php5/cgi/php.ini

    If you want to edit the limit for this one site only, use the custom php.ini field of the website.
  3. smokinjo

    smokinjo Member

    Hello Till,

    how does one tel which phop mode one is using?
    If it helps, I modified nothing that pertains to php options. I used the php that is running under a fresh install.
    I will inquire about the local pho.inidile in suitecrm too.


  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You see it in the website settings of the website in ISPConfig.
  5. smokinjo

    smokinjo Member

    It turns out that it is set up for Fast-CGI.
    Does that I mean I need to modify:

  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, or use the custom php.ini field. And then restart apache.
  7. smokinjo

    smokinjo Member

    I was able to take the time today to apply the new idea of modifying the pho.ini file:

    I restarted the server for the change to take effect.

    It fails, says that I am short my 200k.

    The files suggested did not seem to work. I increased the limit to 25M
    I also saved, left, and reloaded the file to make sure that it saved.

    I tried the other php.ini file as well:

    Same 25M' but not working.
    I changed the apache2 ones in the beginning, and it did not work.
    According to the locate command, I have no other php.ini files related to the server (only direct ones related to specific software).

    Is there a way to see in the logs which php.ini file is being consulted?

    Thanks for any ideas.

  8. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    You restarted the entire machine? (FastCGI runs separately from the web sever, so if you only restarted apache, that won't catch it.)

    Create a script to run phpinfo() and it will show you the 'Loaded Configuration File'.

Share This Page