问题: 一个PHP的关于图片的WEB服务器, 在本机上测试没有问题,但是部署到Centos上,图片上传无法成功,报错:file_put_contents(): failed to open stream 解决: 将该图片目录设置权限777即可 chmod -R 777 images/