0

I've just installed apache on Ubuntu and I see the page "It works!".

I now want to install my website and I was wondering in which directory should I copy it..

Also, is it good to copy it in the default directory ? Or should I create a new one ?

3 Answers 3

1

Apache is configurable to a large degree. You can serve documents from the normal directory of /var/www or from your home directory - or both if you so desire. If you're new then /var/www is probably a good place to start. Just be sure to give yourself ownership of it or you'll have problems editing your own web docs. If you're the only one with documents there then try this (as root of course):

# chown -R myuserid:myuserid /var/www

Since you mentioned the subject of copies, it's a good idea to backup this directory as you make changes to the site, so I'd get familiar with "tar" or something similar.

2

The default place for Ubuntu Apache files are kept at /var/www

0

If you're unsure and are unfamiliar with apache in general, stick with the default location. There is probably no reason you need to put it in a different location.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .