prestol Posted September 7, 2019 Share Posted September 7, 2019 (edited) Hello I use prestashop-phpinfo file for testing current environment https://github.com/PrestaShop/php-ps-info Permissions below: [root@centosVM html]# pwd /var/www/html [root@centosVM html]# [root@centosVM html]# ls -la total 380 drwxr-xr-x. 27 root root 4096 Sep 6 10:20 . drwxr-xr-x. 4 root root 4096 Jul 29 19:19 .. -rw-r--r--. 1 apache apache 16191 Jul 30 23:13 1_en_0_sitemap.xml -rw-r--r--. 1 apache apache 353 Jul 30 23:13 1_index_sitemap.xml -rw-r--r--. 1 apache apache 16228 Jul 30 23:13 1_sv_0_sitemap.xml drwxr-xr-x. 9 apache apache 4096 Jul 30 20:36 admin9240wv8yc drwxr-xr-x. 5 apache apache 4096 Jul 30 20:36 app -rw-r--r--. 1 apache apache 1263 Jul 30 20:36 autoload.php drwxr-xr-x. 2 apache apache 4096 Jul 30 20:36 bin drwxr-xr-x. 8 apache apache 4096 Jul 30 20:36 cache drwxr-xr-x. 24 apache apache 4096 Jul 30 20:36 classes drwxr-xr-x. 5 apache apache 4096 Sep 7 15:41 config drwxr-xr-x. 4 apache apache 4096 Jul 30 20:36 controllers -rw-r--r--. 1 apache apache 878 Jul 30 20:36 docker-compose.yml drwxr-xr-x. 6 apache apache 4096 Jul 30 20:36 docs drwxr-xr-x. 2 apache apache 4096 Sep 7 15:41 download -rw-r--r--. 1 apache apache 2466 Jul 30 20:36 error500.html -rw-r--r--. 1 apache apache 6841 Sep 7 15:34 .htaccess -rw-r--r--. 1 apache apache 4777 Jul 30 20:36 images.inc.php drwxr-xr-x. 19 apache apache 4096 Sep 7 15:41 img -rw-r--r--. 1 apache apache 1116 Jul 30 20:36 index.php -rw-r--r--. 1 apache apache 1203 Jul 30 20:36 init.php drwxr-xr-x. 7 apache apache 4096 Jul 30 20:36 js -rw-r--r--. 1 apache apache 187825 Jul 30 20:36 LICENSES drwxr-xr-x. 3 apache apache 4096 Jul 30 20:36 localization drwxr-xr-x. 5 apache apache 4096 Sep 7 15:41 mails drwxr-xr-x. 98 apache apache 4096 Sep 7 15:41 modules drwxr-xr-x. 5 apache apache 4096 Jul 30 20:36 override drwxr-xr-x. 2 apache apache 4096 Jul 30 20:36 pdf drwxr-xr-x. 3 apache apache 4096 Sep 7 15:44 phpinfo -rw-r--r--. 1 root root 68 Sep 2 11:50 phpinfo.php -rw-r--r--. 1 apache apache 7993 Sep 6 14:55 robots.txt drwxr-xr-x. 5 apache apache 4096 Jul 30 20:36 src drwxr-xr-x. 5 apache apache 4096 Sep 5 10:59 themes drwxr-xr-x. 4 apache apache 4096 Jul 30 20:36 tools drwxr-xr-x. 4 apache apache 4096 Sep 7 15:41 translations drwxr-xr-x. 2 apache apache 4096 Sep 7 15:41 upload drwxr-xr-x. 5 apache apache 4096 Jul 30 20:36 var drwxr-xr-x. 46 apache apache 4096 Jul 30 20:36 vendor drwxr-xr-x. 2 apache apache 4096 Jul 30 20:36 webservice -rw-r--r--. 1 apache apache 2320 Jul 30 20:36 XMLFeed.cache [root@centosVM html]# [root@centosVM html]# cd ./var/ [root@centosVM var]# [root@centosVM var]# pwd /var/www/html/var [root@centosVM var]# ls -la total 104 drwxr-xr-x. 5 apache apache 4096 Jul 30 20:36 . drwxr-xr-x. 27 root root 4096 Sep 6 10:20 .. -rw-r--r--. 1 apache apache 42868 Jul 30 20:36 bootstrap.php.cache drwxr-xr-x. 4 apache apache 4096 Sep 7 15:41 cache -rw-r--r--. 1 apache apache 170 Jul 30 20:36 .htaccess drwxr-xr-x. 2 apache apache 4096 Sep 7 15:41 logs drwxr-xr-x. 2 apache apache 4096 Jul 30 20:36 sessions -rw-r--r--. 1 apache apache 34195 Jul 30 20:36 SymfonyRequirements.php [root@centosVM var]# error below: Selinux is set to permissive how to fix? Edited September 7, 2019 by prestol (see edit history) Link to comment Share on other sites More sharing options...
prestol Posted September 7, 2019 Author Share Posted September 7, 2019 (edited) Does prestashop use the same root folder as specified in apache? is the path correct- var/www/html/* or does it need access to var/cache etc..? Edited September 7, 2019 by prestol (see edit history) Link to comment Share on other sites More sharing options...
prestol Posted September 7, 2019 Author Share Posted September 7, 2019 Solved make sure that the phppsinfo.php is in the same directory as the rest of the application and not in a subdirectory Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now