使用ThinkPHP5框架,本地上传图片没问题,但是在线上上传图片却报500错误,查看请求链接,居然有返回值。
PHPStorm常用快捷键
Ctrl + F
文件内搜索Ctrl + R
文件内替换Ctrl + Shift F
项目内搜索Ctrl + Shift R
项目内替换Ctrl + Shift N
项目内查找文件名Ctrl + Alt O
清除文件内未使用use
LNMP 运行项目无法访问根目录处理方法
使用lnmp集成环境中,运行入口文件在根目录的public
目录下的项目时,报错:
1 | FastCGI sent in stderr: "PHP message: PHP Warning: require(): open_basedir restriction in effect. |
Thinkphp 在php5.6以上版本显示 'No input file specified'
安装ThinkPHP5.0.7版本运行项目域名http://test.lo
时提示安装ThinkPHP成功,但是运行http://test.lo/index/index
时提示:
1 | No input file specified |
nginx 301 将不带www域名 重定向到www域名
Nginx中使域名 example.org
重定向到 www.example.org
,需要如下配置
www.example.org.conf
文件
1 | server { |