Installer does not read /usr/lib64/php.ini

Are you responsible for making OMP work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 15
Joined: Tue Sep 25, 2012 11:20 am

Installer does not read /usr/lib64/php.ini

Postby NLaem » Mon Oct 01, 2012 7:44 am


I did a fresh omp-beta/patched install to see if it removed any previous issues (cannot create a 'Press' post-install) - it did not.

I did notice the installer does not seem to read our /usr/lib64/php.ini-production settings.
For Directory Uploads it reiterates
Your server currently allows file uploads = No (/usr/lib64/php.ini-production is set to file_uploads = On )
Your server currently allows a maximum fie upload size of: [blank] ((/usr/lib64/php.ini-production is set upload_max_filesize = 36M )

Can I locally affect this in /omp to read this correctly?

Thanks for your help - Nancy

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Installer does not read /usr/lib64/php.ini

Postby asmecher » Mon Oct 01, 2012 9:02 am

Hi Nancy,

Hmm, this is going to take some digging into your PHP configuration. By the time PHP code starts to run, PHP will already have initialized itself according to one or more php.ini files, and the details of where those live are platform-specific. That means there's not much we can do from inside PHP to affect this configuration (besides overriding a limited subset of settings using ini_set). I'd suggest checking your Apache config to see how PHP is integrated; it's possible IIRC to override settings there. Otherwise, it's up to PHP to find its own configuration files and load them before any PHP code is run. (Don't forget to restart Apache once you've made php.ini changes before they'll take effect.)

Alec Smecher
Public Knowledge Project Team

Site Admin
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am

Re: Installer does not read /usr/lib64/php.ini

Postby JasonNugent » Tue Oct 02, 2012 6:40 am

Hi Nancy,

It might be useful to also see which php configuration file is actually being loaded for your server's configuration. In any web accessible directory, you can create a file ending in .php with the following code in it:

Code: Select all

<?php phpinfo(); ?>

If you load that file in a browser you will see some configuration information including the path to the config file being read, if any. It may not be the file you think it is.

Make sure you delete this file once you're finished with it since it may contain sensitive system information.


Return to “OMP Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest