Page 1 of 1

PHP 403 Forbidden, but HTML files are opening

PostPosted: 11. December 2017 19:44
by ramaagcp
When I am trying to run index.html from the orktion.tk/public, it's opening. But If I run index.php, it's saying PHP 403 Forbidden. I have attached complete configuration file attached

Here is my Step by Step Process:

I Have installed CentOS Minimal 7, after that installed Apache, PHP & MYSQL step by step (Not Software Stack, Individual Products).

I have created Virtual Hosts so that it can allow two websites on same IP and Server.

I have created index.html (written in html code), and placed it in /var/www/orktion.tk/public, that is accessible through browser within the LAN. Now I have placed PHP files in the same folder, but now browser saying 403 Forbidden. I have attached PHP Code also.

Server Output

https://drive.google.com/open?id=1h1ZryaqbHk7m7fCn66GqSr49wfikA1DR

PHP Page

https://drive.google.com/open?id=1lK73UgD13txxRsBjL0li4g-CupJPr8np

Re: PHP 403 Forbidden, but HTML files are opening

PostPosted: 11. December 2017 23:24
by Nobbie
Install Xampp instead and try again. This forum is the "Xampp for Linux" support forum.