XAMPP Install and Run Problems in Mint 13

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

XAMPP Install and Run Problems in Mint 13

Postby curt » 26. February 2013 09:04

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
curt
 
Posts: 5
Joined: 19. February 2013 08:54
Operating System: linux mint 13

Re: XAMPP Install and Run Problems in Mint 13

Postby JonB » 26. February 2013 18:28

Who is the owner of /opt/lampp???

:?:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP Install and Run Problems in Mint 13

Postby JonB » 26. February 2013 18:37

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.
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP Install and Run Problems in Mint 13

Postby curt » 26. February 2013 18:42

Hello JonB,

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

Thanks,
Curt
curt
 
Posts: 5
Joined: 19. February 2013 08:54
Operating System: linux mint 13

Re: XAMPP Install and Run Problems in Mint 13

Postby curt » 26. February 2013 18:52

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
curt
 
Posts: 5
Joined: 19. February 2013 08:54
Operating System: linux mint 13

Re: XAMPP Install and Run Problems in Mint 13

Postby JonB » 26. February 2013 20:10

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP Install and Run Problems in Mint 13

Postby curt » 26. February 2013 21:00

Hey JonB,
Did you mean this?

owner:nobody
group:root

What should the folder access permissions be?

Thanks,
Curt
curt
 
Posts: 5
Joined: 19. February 2013 08:54
Operating System: linux mint 13

Re: XAMPP Install and Run Problems in Mint 13

Postby JonB » 26. February 2013 23:35

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
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 28 guests