Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need host my project in linux (ubuntu) server. By default I will put the code in /var/www/. How do I create a custom directory structure and put my code over there or else suggest some way that I could run my code in a secure way in apache.

I need step by step procedure could anyone please help and guide me through this process?

share|improve this question

closed as not a real question by Ward, Iain, Chopper3 Nov 10 '11 at 9:07

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 0 down vote accepted

Step by step procedures are normally outside the scope of SF answers.

By default /var/www is the DocumentRoot of the default vhost in Ubuntu.

To make a custom directory structure mkdir would the normal choice if you have access to a shell. If not you will need to set up an ftp server and configure an account with the correct permissions to access /var/www through the ftp server. You can then use an ftp client like filezilla to create yout directory structure and upload files etc.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.