php.ini changes but not effective in ubuntu

前端 未结 7 1149
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 02:31

I want change the limit of php upload file\'s size
And this is some information of my phpinfo.

Configuration File (php.ini) Path   /etc/php5/apache2         


        
7条回答
  •  心在旅途
    2020-11-30 02:43

    There is a good chance you didn't have permissions to modify the php.ini file. If you just browse to it via a normal folder window and click it Gedit (or whatever your default text editor is) won't be able to open it with write permissions.

    You should be able to get away by sudo nano /etc/php5/apache2/php.ini (then your password at the prompt) then changing the variables. Then be sure to Write Out (CTRL O) or make sure you confirm the save on exit.

提交回复
热议问题