LAMP setup proper permissions to web directory.

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

Post 3+ Months Ago

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?
  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Posts: 481

Post 3+ Months Ago

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.
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

Post 3+ Months Ago

k thanks
  • nice123
  • Newbie
  • Newbie
  • nice123
  • Posts: 9

Post 3+ Months Ago

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 68 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.