Page 1 of 1

XAMPP Install and Run Problems in Mint 13

PostPosted: 26. February 2013 09:04
by curt
Good evening all-

I am running Mint 13--64 bit. Have un-installed and re-installed XAMPP 3 times, trying to get it going; and spent many more hours troubleshooting the problem. When I log in to localhost, I get the following message within a small file to download. The terminal shows all systems within XAMPP are running; I can stop them and restart them OK. It would seem like I need to get to the splash/start screen to finish the setup, which the error message prevents me from doing. Or am I missing some vital step in the setup?? The error actually says the problem is in the installation; I don't understand what that could be. :cry:
Error:

<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/xampp/');
exit;
?>
Something is wrong with the XAMPP installation :-(


I am trying to install Wordpress to build websites offline, get them fully functional, then simply upload them to my commercial web hosting service. I would like to have the server and websites on an empty, dedicated 40GB partition on my hard drive, but am not sure how to do that exactly. But I need to get XAMPP going before anything can happen. Any suggestions and help would be greatly appreciated! :!:

Thanks,

Curt

Re: XAMPP Install and Run Problems in Mint 13

PostPosted: 26. February 2013 18:28
by JonB
Who is the owner of /opt/lampp???

:?:

Re: XAMPP Install and Run Problems in Mint 13

PostPosted: 26. February 2013 18:37
by JonB
Linux doesn't have partitions in the same sense as Windows. The only 'supportable' location for XAMPP/lampp itself is in /opt/lampp.

The DocumentRoot(s) could be in a different location on the filesystem. The DocumentRoot is the primary 'publishable' area for an Apache server. You can have more than one using vhosts.

If you didn't install lampp in /opt/lampp, I suggest that may be your problem.

Re: XAMPP Install and Run Problems in Mint 13

PostPosted: 26. February 2013 18:42
by curt
Hello JonB,

I am the sole computer operator. /opt/lampp is owned by admin as root.

Thanks,
Curt

Re: XAMPP Install and Run Problems in Mint 13

PostPosted: 26. February 2013 18:52
by curt
Lampp is installed in /opt/lampp. I also have /[root], /boot, /usr, /home, /tmp, and /var as separate partitions. That is in addition to the 40GB partition I wish to use for Wordpress. Thanks,
Curt

Re: XAMPP Install and Run Problems in Mint 13

PostPosted: 26. February 2013 20:10
by JonB
I'm bit unsure of your motivations, intent. terminology and so forth -

However -

A. Everything XAMPP needs and wants (other than a running Linux OS) is in the /opt/lampp folder. There are generally no other dependencies other than ia32 Libraries for 64 bit distros,

B. The owner of /opt/lampp should be nobody:root (owner:group). Try changing it to that and see if it works.

C. Just be aware XAMPP/lampp is not a LAMP stack - its a bash script that runs everything via CLI calls. its worth opening lampp and seeing what it is doing.

I can clarify what your original error 'means' at a fundamental level: PHP is not running, probably due to some error. That's why it wants you to DL the page (it can't be parsed) I'd make that change (above) and if that does not resolve your issue, look in /opt/lamp/log/error_log (Apache) and /opt/lamp/log/php_error_log

Good Luck
8)

Re: XAMPP Install and Run Problems in Mint 13

PostPosted: 26. February 2013 21:00
by curt
Hey JonB,
Did you mean this?

owner:nobody
group:root

What should the folder access permissions be?

Thanks,
Curt

Re: XAMPP Install and Run Problems in Mint 13

PostPosted: 26. February 2013 23:35
by JonB
Yes - 'nobody' is a 'special' user in Linux/Unix.
http://en.wikipedia.org/wiki/Nobody_%28username%29

Code: Select all
chown -R nobody:root /opt/lampp


Permissions:
generally, - folders 755 - files 644

A good page:
http://www.apachefriends.org/en/xampp-linux.html

Good Luck
:)