LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-06-2012, 02:09 AM   #1
fox_mccloud
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Adding write permissons to xampp - Fedora


I have an XAMPP server running, and a few Python CGI scripts located in the /opt/lampp/cgi-bin/ directory, and they run fine. However, they cannot write to files.

While browsing my website, I saw an error message that said "Cannot write to file, permission denied" so I'm wondering how I can give XAMPP the privileges it needs to write to files.

I don't know much about Linux shell scripting or file permissions, but I'd like to give XAMPP root privilleges (so it can write to files) and I'm not too concerned about security right now.

I logged in as root when I executed the command "/opt/lampp/lampp start" so I figured that XAMPP would be running as root and have full permissions, but I guess not.

Anyone know what I can do? I'd prefer the easiest solution possible, please. Thanks.
 
Old 06-06-2012, 12:25 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Quote:
Originally Posted by fox_mccloud View Post
While browsing my website, I saw an error message that said "Cannot write to file, permission denied" so I'm wondering how I can give XAMPP the privileges it needs to write to files.
Client side error messages aren't as descriptive or important as server side messages. Best check the log files for errors before proceeding.


Quote:
Originally Posted by fox_mccloud View Post
I don't know much about Linux shell scripting or file permissions, but I'd like to give XAMPP root privilleges
The way you phrased your post I'd say this is a most dangerous combination.


Quote:
Originally Posted by fox_mccloud View Post
I'm not too concerned about security right now.
If you are not now then you never will.


Quote:
Originally Posted by fox_mccloud View Post
Anyone know what I can do? I'd prefer the easiest solution possible
You may think that "fixing" your problem the way you think it should must be the easiest solution but I assure you it is not. The most efficient, safe and rewarding solution would be to learn to do things the right way. First of all XAMPP, and the developers state it themselves, is for deployment on development machines only. If you mistook XAMPP as a shortcut to get things Live quickly on production hosts please don't. Secondly if you don't (want to) learn to do things the way they should be done you'll have trouble porting the application(s) to production anyway: that's inefficient, error-prone and potentially unsafe. Any Linux distribution has basic Linux users and administrators documentation and IMHO that is what you should start with.
 
  


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
XAMPP 1.7.7 - XAMPP: Couldn't start MySQL sonic656 Linux - Software 2 10-09-2011 01:43 PM
Xampp installed on Fedora 11 rdtech25 Fedora 2 12-28-2010 07:19 AM
Problems adding write privileges to my External USB Drive SibLiant Linux - Newbie 1 01-03-2007 02:12 PM
Problems adding write privileges to my External USB Drive SibLiant Linux - Newbie 2 12-30-2006 03:55 PM
Problems installing Xampp for fedora $Linuxnoob Fedora 2 03-28-2006 10:44 AM


All times are GMT -5. The time now is 02:43 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