OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
What to do if you have a technical problem with OMP:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OMP Discussion subforum; if you have a development question, try the OMP Development subforum.

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

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

Hi,

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
NLaem
 
Posts: 15
Joined: Tue Sep 25, 2012 11:20 am

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.)

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8860
Joined: Wed Aug 10, 2005 12:56 pm

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.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 888
Joined: Tue Jan 10, 2006 6:20 am


Return to OMP Technical Support

Who is online

Users browsing this forum: No registered users and 3 guests