i have problem with permissions.
I getting error
PHP message: PHP Warning: require(./public_html/shop/modules/dhlexpress/vendor/alfallouji/dhl_api/DHL/Entity/AM/GetQuote.php): failed to open stream: Permission denied in ./public_html/shop/modules/dhlexpress/vendor/alfallouji/dhl_api/vendor/autoloadManager/autoloadManager.php
I tried to set 777 recursive for whole dhlexpress folder. Also i tried to set 755 for folders and 644 for php files. Same error.
Owner of all files is ok.
Dump from ls -al for ./public_html/shop/modules/dhlexpress/vendor/alfallouji/dhl_api/vendor/autoloadManager/:
drwxrwxr-x 2 master_qfremheqwx www-data 4096 Aug 23 07:29 .
drwxrwxr-x 3 master_qfremheqwx www-data 4096 Aug 23 07:29 ..
-rwxrwxrwx 1 master_qfremheqwx www-data 13945 Jan 6 2017 autoloadManager.php
-rw-rw-r-- 1 master_qfremheqwx www-data 3755 Jan 6 2017 README.md
Dump from ls -al for ./public_html/shop/modules/dhlexpress/vendor/alfallouji/dhl_api/DHL/Entity/AM/ :
drwxrwxr-x 2 master_qfremheqwx www-data 4096 Aug 23 07:30 .
drwxrwxr-x 6 master_qfremheqwx www-data 4096 Aug 23 07:30 ..
-rw-rw-r-- 1 master_qfremheqwx www-data 2137 Jan 6 2017 GetQuote.php
I am hopeless. That permissions is killing me.
EDIT:
I also tried to set 777 for whole dhlexpress folder and sub-folders and files.
dhlexpress folder:
777 -rwxrwxrwx 1 master_qfremheqwx www-data 30134 Aug 23 21:51 dhlexpress.php
777 drwxrwxrwx 4 master_qfremheqwx www-data 4096 Aug 24 08:44 vendor
dhlexpress/vendor/alfallouji/dhl_api/DHL/Entity/AM/ folder:
777 -rwxrwxrwx 1 master_qfremheqwx www-data 2137 Jan 6 2017 GetQuote.php
dhlexpress/vendor/alfallouji/dhl_api/vendor/autoloadManager/ folder:
777 -rwxrwxrwx 1 master_qfremheqwx www-data 13945 Jan 6 2017 autoloadManager.php
777 -rwxrwxrwx 1 master_qfremheqwx www-data 3755 Jan 6 2017 README.md
can you require file in 'modules' folder? may be php don't have permission for 'modules' folder
Try changing the permissions from the modules folder or even better from the public_html, most servers works perfect with permissions as:
Okay, done. Problem was in my autoloader from developer. I manualy make bunch of require_once and now its working
For modules and files you need to put the rights in this form:
755 for directories/folders 644 for files
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.