LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2014, 11:56 PM   #1
prasan89na
LQ Newbie
 
Registered: Sep 2014
Posts: 12

Rep: Reputation: Disabled
Unable to run program as a normal user


Successfully installed XAMPP as Super User. Now when I try to open Xampp it says
application-specific initialization failed: file open failed
I think it is because of file permissions. Now how to change file permission of XAMPP to be able to run as a normal user.

The path of the program is /opt/lampp
my username is prasanna
I want to enable whole content of /opt/lampp for me (i.e. prasanna)
 
Old 09-29-2014, 01:50 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Try running this using sudo or as root:
Code:
sudo chmod -R ugoa+rwx /opt/lampp/
jdk
 
Old 09-29-2014, 01:51 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,546

Rep: Reputation: 136Reputation: 136
You have to start XAMPP as root I guess. It will start apache web server that is listening on port 80. You can probably change the ports the webserver is listening to. But why not start that a root?
 
Old 09-29-2014, 07:06 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,161
Blog Entries: 15

Rep: Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092
j-ray is correct. Xammp wants to be started and stopped by root.

You can chown Xammp's subdirectories to user, so user can configure and manipulate the program, the website, and so on, but root must stop and start the actual LAMPP stack.
 
Old 09-29-2014, 07:08 PM   #5
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware, Fedora
Posts: 1,007

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Out of curiosity, why are you using XAMMP when you could just use LAMP directly? If you are on Linux, you already have žth of the requirements fulfilled; the rest is just an apt-get or yum away.

This is a pretty good intro to installing LAMP:
http://hackerpublicradio.org/eps.php?id=1601

Last edited by notKlaatu; 09-29-2014 at 07:13 PM. Reason: added link for reference.
 
Old 09-30-2014, 08:19 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,161
Blog Entries: 15

Rep: Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092Reputation: 3092
notklaatu, I've found XAMPP to be very convenient; everything is in one place, integrated, and ready to go. I've used it myself to try out new stuff locally before I take it live.
 
Old 10-02-2014, 03:26 PM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,688

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
Quote:
Originally Posted by jdkaye View Post
Try running this using sudo or as root:
Code:
sudo chmod -R ugoa+rwx /opt/lampp/
jdk
Not a good security action...

You are allowing anyone to change anything in the directory tree.
 
Old 10-03-2014, 01:39 AM   #8
ilesterg
Member
 
Registered: Jul 2012
Distribution: Arch, CentOS, OpenSUSE Tumbleweed KDE
Posts: 536

Rep: Reputation: 56
Not a guru on XAMPP on Linux, but why not try to run it as root first just to isolate the problem that it was indeed security-related, not just some application configuration issue?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unable to use wireless as a normal user edbarx Linux - Wireless Networking 1 09-08-2013 07:22 AM
Unable to login as a normal user! kris_rocks! Red Hat 1 02-24-2010 01:31 PM
How to run daemon process being a normal user [not root user]. narendra1310 Linux - Software 1 10-26-2009 09:48 AM
unable to login as normal user adityavpratap Ubuntu 2 06-22-2007 05:20 AM
Run ipchains as normal user? jlangelier Linux - Newbie 1 07-27-2003 01:56 AM


All times are GMT -5. The time now is 03:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration