ds342222 2018-08-04 13:40
浏览 273

chmod():Laravel 5.6 localhost上不允许操作

chmod(): Operation not permitted while uploading images in laravel 5.6 at localhost. Enabled GD library. Testing environment is with ubuntu 16.04 with Windows 10. Any help?

  • 写回答

2条回答 默认 最新

  • dongtigai3875 2018-08-04 15:11
    关注

    If this is test environment, why not give full permission to whatever your laravel installation director?

    Assign 777 permission in Ubuntu:

    $sudo chmod 777 -R /var/www/laravel-installation-folder

    In windows you can change the file permission by going to www directory

    • Right click the directory where laravel is installed
    • Select Properties
    • Security Tab
    • Select the user
    • Edit
    • Give full previllege
    • Save

    Remember, in production server you must follow Laravel directory permission and also give RW permission to Public or the file upload directory

    评论

报告相同问题?

悬赏问题

  • ¥15 有偿求苍穹外卖环境配置
  • ¥15 代码在keil5里变成了这样怎么办啊,文件图像也变了,
  • ¥20 Ue4.26打包win64bit报错,如何解决?(语言-c++)
  • ¥15 clousx6整点报时指令怎么写
  • ¥30 远程帮我安装软件及库文件
  • ¥15 关于#自动化#的问题:如何通过电脑控制多相机同步拍照或摄影(相机或者摄影模组数量大于60),并将所有采集的照片或视频以一定编码规则存放至规定电脑文件夹内
  • ¥20 深信服vpn-2050这台设备如何配置才能成功联网?
  • ¥15 Arduino的wifi连接,如何关闭低功耗模式?
  • ¥15 Android studio 无法定位adb是什么问题?
  • ¥15 C#连接不上服务器,