webserver: permission denied on php files

General support questions
Post Reply
codefritz
Posts: 1
Joined: 2015/07/24 17:42:22

webserver: permission denied on php files

Post by codefritz » 2015/07/24 17:46:32

Hi,

I have installed a LAMP on my Centos 7 machine.

Now I can't execute php files. Every php file is empty in the browser.
error logs are saying that it is a permission problem.
Files and folders have 777 permission rights so that should be fine.
SELinux is disabled.

I have no idea what there is going on.

Btw, I have also installed phpmyadmin - there I have the same problem.

Thanks,
regrads,
codefritz

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: webserver: permission denied on php files

Post by gerald_clark » 2015/07/24 18:17:03

restorecon -r /var/www

tanviet12
Posts: 4
Joined: 2015/07/21 08:38:46

Re: webserver: permission denied on php files

Post by tanviet12 » 2015/08/02 07:37:28

User run PHP process and user owner of PHP file? SELINUX is on?
Life is hard...

Post Reply