Xampp properly installed - Cannot load any PHP documents???

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

Xampp properly installed - Cannot load any PHP documents???

Postby bigred1978 » 16. October 2014 05:00



I've installed Xampp 1.8.3 on my Kubuntu 14.04 setup. The installation went fine and i activated the MySQL, Apache and ProFTPD servers. All are aparently active and working. I then loaded the default XAMPP page in Firefox. I checked the status of the servers and all seems fine.

However, my goal is to learn how to program PHP and HTML5 and my tutorials ask that I load up the test PHP files in my browser (firefox) all attempts to do so have failed and i get is a pop up window asking me what I want to do with the file (open in another program or save it). :


I dont know what to do anymore. Could anyone help me with this issue? Thanks.
Posts: 1
Joined: 16. October 2014 04:45
Operating System: Kubuntu 14.04 Trusty Tahr

Re: Xampp properly installed - Cannot load any PHP documents

Postby Nobbie » 16. October 2014 21:13

You cannot open PHP Scripts via "Open file...", instead you MUST enter a valid URL for your test files.

The local Xampp URL always starts with http://localhost/.... followed by folder/filename as given on your system. As well, you CANNOT open files from your home directory or similar, all PHP/HTML files have to be stored in /opt/lampp/htdocs. And nowhere else.

If you save a file (for example) as /opt/lampp/htdocs/myfolder/myfile.html, you MUST enter http://localhost/myfolder/myfile.html into your browser (so, /opt/lampp/htdocs is the so called "DocumentRoot" for your http://localhost).

You URGENTLY have to read about webservers and Apache and have to learn the very very basics.
Posts: 11920
Joined: 09. March 2008 13:04

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 8 guests