Page 1 of 1

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

PostPosted: 27. April 2014 23:55
by westmd
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?

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

PostPosted: 28. April 2014 07:18
by westmd
Solved by replacing file://localhost/opt/lampp/htdocs/ with http://user-dq155a-b14-t335-be/xampp/ in the browser