cgroce Posted December 16, 2011 Share Posted December 16, 2011 Hi all, I've got a strange one here on a Linux platform (Ubuntu Server). When I run phpinfo(), it correctly shows the location of php.ini at /etc/php5/apache2/php.ini. So I know php knows where the php.ini file is located. However, when I make changes to this file, phpinfo() does not reflect the changes (max file upload remains at the default of 2MB). When I rename php.ini, phpinfo() reports no configuration file. So I know it's not referencing some other php.ini file. My question is this: what is being given precedence here? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/253313-phpini-doesnt-match-phpinfo/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 16, 2011 Share Posted December 16, 2011 Are you restarting your web server to get any changes made to the php.ini to take effect? Also, syntax errors in the php.ini file will cause any settings after the point where the syntax error is at to be ignored. Quote Link to comment https://forums.phpfreaks.com/topic/253313-phpini-doesnt-match-phpinfo/#findComment-1298567 Share on other sites More sharing options...
cgroce Posted December 16, 2011 Author Share Posted December 16, 2011 Yes I have restarted Apache several times. I'll review the php.ini file for errors. phpinfo() wouldn't reoprt these errors? Thanks a lot for your help. Quote Link to comment https://forums.phpfreaks.com/topic/253313-phpini-doesnt-match-phpinfo/#findComment-1298586 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.