2017-05-06 69 views
0

嗨,我已經設置API的流明應用程序。而且我昨天設置了CentOS服務器。代碼在我的ubuntu服務器上工作,但不能運行CentOS服務器。我正在從服務器這樣的響應:無法讀取centos服務器上的流明日誌文件

The stream or file \"/var/www/html/api/storage/logs/lumen.log\" could not be opened: failed to open stream: Permission denied

回答

0

您需要更改存儲文件夾的所有權。 在Ubuntu上運行此

sudo chown -R {current user}:www-data storage 

Ubuntu的:

sudo chown -R www-data:www-data storage 
sudo chown -R ubuntu:www-data storage 

美分OS:

sudo chown -R apache:apache storage 
sudo chown -R {your centos user}:apache storage