XAMPP/Apache runs but won't handle php files correctly

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

XAMPP/Apache runs but won't handle php files correctly

Postby westmd » 27. April 2014 23:55

I've installed XAMPP on my linux Mint, all the servers are running without errors but for some reason I can't open my PHP files stored in the opt/lampp/htdocs directory. The browser just opens them as plain html.
A simple script like:
Code: Select all
<?
phpinfo();
?>

saved as phpinfo.php will for instance just display the code.

Even stranger is that http://localhost/phpmyadmin does work and the XAMPP application opens correctly in the browser with all the demos working. http://computername/xampp/index.php

So, what am I doing wrong?
westmd
 
Posts: 2
Joined: 27. April 2014 23:50
Operating System: Linux Mint 16 Petra

Re: XAMPP/Apache runs but won't handle php files correctly

Postby westmd » 28. April 2014 07:18

Solved by replacing file://localhost/opt/lampp/htdocs/ with http://user-dq155a-b14-t335-be/xampp/ in the browser
westmd
 
Posts: 2
Joined: 27. April 2014 23:50
Operating System: Linux Mint 16 Petra


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 3 guests