一些之前遇到的问题
来源:互联网 发布:瑞士方阵知乎 编辑:程序博客网 时间:2024/06/05 02:07
问题一、
安装pureftpd后,选择了User manager for PureFTPd以web方式进行用户管理,访问web页面标题、图标未正常显示,内容显示如下
\n"); $LFile = "english.php"; } require("language/".$LFile); // Read the language file ?>\n"); $LFile = "english.php"; } require("language/".$LFile); // Read the language file ?>
问题是,php的短标签为开启。
vi <php-dir>/etc/php.ini 找到
; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = off
将short_open_tag = off 改为short_open_tag = on
重启php后正常。
问题二、
在上传时,nginx提示“413 Request Entity Too Large”这是nginx限制了文件大小
vi /usr/local/nginx/conf/nginx.conf
找到http{}段,添加 client_max_body_size 20m;
重启NGINX
kill -hup `cat /usr/local/nginx/nginx.pid `
恢复正常。
- 一些之前遇到的问题
- 之前遇到的一个问题
- 卸载之前node.js,采用nvm后npm install及打包编译遇到的一些问题
- 又遇到之前的一个问题?
- 遇到的一些问题
- 遇到的一些问题
- 遇到的一些问题
- 遇到的一些问题
- 遇到的一些问题
- 今天遇到的一些问题
- 自己遇到的一些问题
- 最近遇到的一些问题
- WTL遇到的一些问题
- 最近遇到的一些问题
- grails遇到的一些问题
- 遇到的一些 问题记录
- java_swing_遇到的一些问题
- 近期一些遇到的问题
- 用Supervisord管理Python进程
- iphone 后台循环播放音乐
- Android SQLite
- PL/SQL Developer 9.0.1.1613
- C++文件操作自定义函数
- 一些之前遇到的问题
- ini2440:通过JLink烧写BootLoader到Nor Flash
- 脑力风暴之小毛驴历险记(2)---谁敢动我的金币(上)
- JAVA日期时间小结
- Android之res目录
- HTTP协议中PUT和POST使用区别
- @dynamic详细介绍
- Centos 升级Python到2.6或2.7版本
- 1056 织花纹布