[Ilugc] why it is unwise to put any files directly under document root [was] hi sir am kiran

  • From: lawgon@xxxxxxxxxxxxxxx (Kenneth Gonsalves)
  • Date: Fri Jan 1 11:47:09 2010

On Thursday 31 Dec 2009 1:07:33 pm kiran kumar wrote:

hi sir am succesffuly installed lamp server in ubuntu again it saying if i
save my php files ...it saying permission denied


generally files under /var/www/ (your document root) are owned by root. Hence 
you cannot save them. This is a good thing. Putting any files under document 
root is a bad thing - it exposes them to easy access by spammers. Set up a 
virtual host pointing to a directory in your home directory owned by you, then 
you can edit and save files as you please - and your system will be safer.

ps. put a proper subject line.
-- 
regards
kg
http://lawgon.livejournal.com

Other related posts:

  • » [Ilugc] why it is unwise to put any files directly under document root [was] hi sir am kiran - Kenneth Gonsalves