Cron job and folders permissions - permission denied

前端 未结 4 722
无人共我
无人共我 2020-12-19 16:10

I have a folder above the webroot that is used to temporarily store user files generated by a php web application. The files may, for example, be PDF\'s that are going to be

4条回答
  •  春和景丽
    2020-12-19 16:54

    It depends on which user you have defined the cronjob.

    If you're root (not recommended) it should work. If you're the web-user (e.g. www-data on ubuntu) it should work as well.

    sudo su - www-data
    crontab -e
    

提交回复
热议问题