PHP 403 Forbidden, but HTML files are opening

Problems with the Linux version of XAMPP, questions, comments, and anything related.

PHP 403 Forbidden, but HTML files are opening

Postby ramaagcp » 11. December 2017 19:44

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
ramaagcp
 
Posts: 1
Joined: 11. December 2017 18:37
XAMPP version: 7
Operating System: CentOS 7

Re: PHP 403 Forbidden, but HTML files are opening

Postby Nobbie » 11. December 2017 23:24

Install Xampp instead and try again. This forum is the "Xampp for Linux" support forum.
Nobbie
 
Posts: 9885
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 18 guests