Home > Unable To > Could Not Save The File /var/www

Could Not Save The File /var/www

Contents

more hot questions question feed lang-html about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Why was the plane going to Dulles? How much effort (and why) should consumers put into protecting their credit card numbers? Not the answer you're looking for?

I have install PHP from this article on my ubuntu computer http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/ now when I tried to save a simply php file I am unable to do that. Be VERY careful when doing anything with the sudo prefix though, you can seriously damage your system if you do it wrong. cd /var/www && sudo chown -R `whoami`:`whoami` . Sever-sort an array Why did Sansa refuse to leave with Sandor Cleagane (Hound) during the Battle of Blackwater? http://askubuntu.com/questions/178231/permissions-issue-when-trying-to-save-file-to-var-www

Ubuntu Var Www Permission Denied

Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the make it a chmod 755 -R for the map /home/paul/www -R Hope this helps daveo View Public Profile View LQ Blog View Review Entries View HCL Entries Visit daveo's homepage! share|improve this answer edited May 3 '11 at 14:34 answered May 3 '11 at 11:18 oliland 21119 add a comment| up vote 1 down vote As root, run chown yourusername /var/www/html.

Join them; it only takes a minute: Sign up how to get edit access to /var/www/html on apache2 server on Ubuntu up vote 1 down vote favorite I have tried to UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list. Adv Reply June 20th, 2010 #2 NCLI View Profile View Forum Posts Private Message Extra Foam Sugar Free Ubuntu Join Date Sep 2007 Location Tōkyō, Japan BeansHidden! Apache Var Www Html Permissions Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).

That's the error I get from Sublime Text: Unable to save /var/www/index.php Error: unable to create tmp file in /var/www And that's from Geany: Error opening file '/var/www/index.php': Permission denied The Chmod: Changing Permissions Of ‘/var/www’: Operation Not Permitted LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie Can't save files to /var/www/html/ User Name Remember Me? Use ls -al in /var to look at it's permissions. https://askubuntu.com/questions/791485/how-do-i-save-php-file-in-var-www-html-when-it-shows-error-permission-denied/791489 Main Menu LQ Calendar LQ Rules LQ Sitemap Site FAQ View New Posts View Latest Posts Zero Reply Threads LQ Wiki Most Wanted Jeremy's Blog Report LQ Bug Syndicate Latest

share|improve this answer answered Aug 20 '12 at 18:51 Adonis K. 7431924 add a comment| up vote 1 down vote Since the directory is owned by root, you will not be /var/www Permissions I'm trying to refer apache to a different default directory. (ie /home/'user'/documents) I've been reading and reading and from what i understand i must edit a config somewere....can anyone point me Why do manufacturers detune engines? parameter + used to add permissions parameter - used to remove permissions parameter r mean read permission, w is write and x is execute.

Chmod: Changing Permissions Of ‘/var/www’: Operation Not Permitted

Then search for the "documents root" or something ... http://stackoverflow.com/questions/1484595/how-to-resolve-var-www-copy-write-permission-denied more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Ubuntu Var Www Permission Denied Is it possible to have 3 real numbers that have both their sum and product equal to 1? Unable To Save /var/www/html/ You could do this on a file by file basis, but if you're the only one modifying the files then the easiest way is make yourself the owner of the directory.

Word for fake religious people The female equivalent of "don't break my balls" How to block Hot Network Questions in the sidebar of Stack Exchange network? Just give it a try Hope this helps well..i changed the Default Root to /home/paul/www/ f and now when i go http://localhost/ i get a forbidden error. ....damn 2:37am..makes it hard is there anyway to enter SU through the GUI? Did Donald Trump say that "global warming was a hoax invented by the Chinese"? "Shields at 10% one more hit and..." What? Unable To Save File In Ubuntu

asked 2 years ago viewed 4457 times active 6 months ago Related 0Install apache,php and mysql on CentOS VPS35What user should apache and PHP be running as? Would presence of MANPADS ground the entire airline industry? Then search for the "documents root" or something ... Browse other questions tagged server files sudo lamp or ask your own question.

share|improve this answer answered Sep 27 '09 at 22:03 phoebus 9,91722331 @phoebus: output is 'cp: cannot create regular file `/var/www/hello.php': Permission denied' –shubster Sep 27 '09 at 22:06 Sublime Text Unable To Save Mac drwxr-xr-x 5 root root 4096 May 2 11:34 www chmod and chown are GNU coreutils that you can use to modify the permissions of unix directories. There is a risk opening Nautilus as root.

As the setup process is run by root, the www folder is owned by root.

I had "chmod g+rw /var/www/*" which of course gave me access to any folders inside www. Ubuntu Logo, Ubuntu and Canonical Canonical Ltd. I've fixed the problem. Var/www/html Permissions Ubuntu Not the answer you're looking for?

Panopticon View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by Panopticon 09-12-2003, 02:50 AM #11 daveo Member Registered: Sep 2003 Location: Holland Browse other questions tagged 12.04 permissions or ask your own question. Find More Posts by daveo 09-12-2003, 02:48 AM #10 Panopticon LQ Newbie Registered: Sep 2003 Location: Ontario, Canada Distribution: RH8 Posts: 28 Original Poster Rep: Quote: Originally posted by share|improve this answer answered Sep 11 '10 at 14:08 hotei 3,43421224 Thank you.

You can simply run gksu nautilus and go to the /var/www directory, then right-click on it. Find More Posts by daveo 09-12-2003, 02:19 AM #6 Panopticon LQ Newbie Registered: Sep 2003 Location: Ontario, Canada Distribution: RH8 Posts: 28 Original Poster Rep: Quote: Originally posted by Can you please direct me to a book or any place i can get to understand these things at a deeper level. share|improve this answer edited Jun 26 at 3:18 answered Jun 26 at 2:18 Nuwan Thisara 793622 Using sudo nautilus is a bad idea.

How do I answer a question on graduate school applications on textbooks used in my classes, when my class didn't use a textbook? Were defendants at the Nuremberg trial allowed to deny the holocaust? Alternatively, you could set up Apache to use some directory inside your home directory as "DocumentRoot". (see /etc/apache, /etc/httpd or similar). User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License.

Thanks for your responses guys, much appreciated. Panopticon View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by Panopticon 09-12-2003, 02:25 AM #7 daveo Member Registered: Sep 2003 Location: Holland Why is the electric field due to a charged infinite cylinder identical to that produced by an infinite line of charge? Shortest auto-destructive loop Getting error message when integrating a simple piecewise function Pentesting against own web service hosted on 3rd party platform Why do Latin nouns (like cena, -ae) include two

What are those "sticks" on Jyn Erso's back?