LAMP setup proper permissions to web directory.

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Feb 17, 2005
  • Posts: 1585
  • Status: Offline

Post December 18th, 2009, 1:19 pm

Hi, I recently installed Apache on Arch Linux and I couldn't get the files to show up unless I chmod 775'd the directory. I used this guide: http://wiki.archlinux.org/index.php/Apache

It says to chmod o+x the home directory, but that didn't work. Anybody know how to setup group permissions for apache or a safe way/safe chmod number for the web directory? I'm not too good with *nix permissions. Is 775 the most secure?
There's no place like 127.0.0.1, badass part is now it's ::1
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 18th, 2009, 1:19 pm

  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Joined: May 29, 2007
  • Posts: 481
  • Status: Offline

Post December 18th, 2009, 7:16 pm

At the very least, you need o+r for Apache to be able to read your webpages. You need o+x in two cases: listing directory contents and executing scripts such as PHP. I assume you want to use PHP, so 775 seems reasonable. Additionally, if any script of yours will have to write to a directory, that directory needs write permission too.
No Strings Attached: A JavaScript graphics demo.
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Feb 17, 2005
  • Posts: 1585
  • Status: Offline

Post December 18th, 2009, 7:29 pm

k thanks
There's no place like 127.0.0.1, badass part is now it's ::1
  • nice123
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jan 07, 2010
  • Posts: 9
  • Status: Offline

Post January 21st, 2010, 1:55 pm

You shod chmod 666 all your Apache directories.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 54 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.