php.ini 更改,但在 Ubuntu 上无效 [英] php.ini changes, but not effective on Ubuntu

查看:30
本文介绍了php.ini 更改,但在 Ubuntu 上无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想改变PHP上传文件大小的限制

I want change the limit of PHP upload file's size

这是我的 phpinfo 输出的一些信息:

And this is some information of the output my phpinfo:

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

这是我的 php.ini 文件的内容:

And this is the content of my php.ini file:

upload_max_filesize = 50M
post_max_size = 50M
memory_limit = 128M

然后我重新启动 Apache 2,但显示的 phpinfo 仍然是:

Then I restart Apache 2, but the phpinfo shown is still:

upload_max_filesize    2M

推荐答案

我已经解决了我的问题.

I have solved my question.

php.ini 的第 109 行有一个语法错误,所以接下来的所有语法都没有执行.

There is a syntax error in php.ini in line 109, so the next all syntax does not execute.

这篇关于php.ini 更改,但在 Ubuntu 上无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆