XAMPP not starting Ubuntu

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

XAMPP not starting Ubuntu

Postby aksieman » 12. February 2012 08:54

Good day.
Im new to Ubuntu.

I have been using Xampp on windows for years now with no problems, I want to move over to Ubuntu but are experiencing some problems with XAMPP.
HEre are my case:
1. I download and install Xampp.
2. I start the service all OK.
- But i noted that the htdocs folder has no owner (nobody) with drwxr-xr-x rights and I can not create folders in it.
3. I then restarted my system and try to start all the services again, but I get error saying "No such file or directory"


NB: In windows I will create a folder for all sites I'm developing does it work differnetly in linux?
aksieman
 
Posts: 1
Joined: 12. February 2012 08:34
Location: South Africa
Operating System: Ubuntu

Re: XAMPP not starting Ubuntu

Postby JonB » 12. February 2012 09:20

OK - a few things that may shed some light

HTDOCS DOES HAVE AN OWNER: 'nobody' - which is a special user on Linux systems. And you are a different user on the system (whatever you logged in as). Therefore you don't have the rights to change what belongs to 'nobody'. Make sense??? Generally, only the superuser ('root') has sufficient privileges to modify objects that belong to other users. That is a simplification, but it will suffice for what we are dealing with.

You will need to use 'sudo' or 'su' to create folders to place in /opt/lampp/htdocs and then change the ownership to nobody:root with this command:

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


BTW -- you MUST start lampp as 'root' (using either 'su' or 'sudo').

NB: The bottom line is probably that you will actually have to learn something about Linux before you tackle running a server.

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


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 19 guests