简体   繁体   中英

php.ini not updating after changes

Followed a few tutorials but it just doesn't update.

  • I restarted the server many times with sudo service apache2 restart and sudo apachectl restart
  • I ran php --ini to check all the files being loaded
  • I checked each file to see if it is being overwritten
  • I made another override and checked if its being loaded
  • Used the phpinfo() function to check if its being updated

I'm using PHP Version 5.5.9-1ubuntu4.21 Its a virtual machine in virtualbox

the change that I'm trying to make is for php to allow more inputs in a post.

I don't know if I should post here or in Super User

Chances are you are modifying the php.ini of the CLI instead of the one for apache. It should be under:

/etc/php/$VERSION/apache2/php.ini

Then restart apache.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM