I managed to order a new VPS account from linode
I have installed Ubuntu 10.04 LTS with 'LAMP Stack' StackScript.
I notice the website directory is located in /srv/www/
and I thought this is quite strange.
How do I check if /srv/www/
is secure?
If I create a new directory or files in /srv/www/
(logged as root), what permission/user do I need to set? how to chmod/chown it?
Right now it look like this (ls -la
):
drwxr-xr-x 4 root root 4096 2012-03-06 18:03 li1x8-2xx.members.linode.com
root@li1x8-2xx:/srv/www#
-
drwxr-xr-x 4 root root 4096 2012-03-06 18:03 .
drwxr-xr-x 3 root root 4096 2012-03-06 18:03 ..
drwxr-xr-x 2 root root 4096 2012-03-06 18:03 logs
drwxr-xr-x 2 root root 4096 2012-03-06 18:31 public_html
root@li1x8-2xx:/srv/www/li1x8-2xx.members.linode.com#