freelance84 Posted October 11, 2011 Share Posted October 11, 2011 Which of these two, apache2/php.ini & cli/php.ini should be changed? It seems on my ubuntu 11.04 server that only changes in the apache2/php.ini seem to reflect the config changes when running phpinfo(); Would anyone be able to help me figure out whats going on? Quote Link to comment Share on other sites More sharing options...
trq Posted October 11, 2011 Share Posted October 11, 2011 The cli/php.ini file modifies the config for php's cli while the apache2/php.ini file edit's the config for apache. Which you change depends on which you want to effect. Quote Link to comment Share on other sites More sharing options...
freelance84 Posted October 11, 2011 Author Share Posted October 11, 2011 Would you be able to give an example of when you would want to change a php.ini setting for apache2 and one for cli ?? I'm not too sure i've grasped the difference between the two yet... Quote Link to comment Share on other sites More sharing options...
markjoe Posted October 11, 2011 Share Posted October 11, 2011 cli is command line interface. so the cli/php.ini should only be in effect when running a php script from the "command line". ie: $prompt> php -f myscript.php the apache/php.ini is the one you want for php web pages. Quote Link to comment Share on other sites More sharing options...
freelance84 Posted October 12, 2011 Author Share Posted October 12, 2011 ooo, right, that makes sense too... thanks a lot Quote Link to comment 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.