Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a VPS which has a single website associated with a single IP, This website is in wordpress and it is directly placed or installed into the /html directory, which means inside /www/html/ my wordpress folders files, are placed, I mean to say its not in this form /www/html/wordpress/wp-content its in this form /www/html/wp-content

Now I am planning to have multiple sites with the same IP, in same VPS, But now I have to organize the folders for this, But how can I?

If I transfer my current scattered website files into a particular folder like www/html/site, will be there any problem?

Or can I go ahead with the same situation, just placing a new folder into /html directory for my second website?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Forgive the short answer as I am on my phone...

How are you managing the server? Via control panel or via SSH?

Moving the wordpress files physical location is non-consequential as long as the db location and site url remain the same. http://codex.wordpress.org/Moving_WordPress

I sugguest you create a domain_tld folder within /www/html (ie. iainlbc_com), move the contents of /www/html there, then change the virtualhost to use /www/html/domain_tld as the root directory.

share|improve this answer
    
@ianinlbc but when I ll add my new website where will it go? /www/html/new_website or /www/html/domain_tld ??? Sorry for stupid question, this is my first time, and I am doing this through SSH –  ntechi Feb 8 '11 at 14:12
    
no problem ntechi - you can name it whatever you want, its arbitrary :) domain_tld is just the convention i use. for example my site iainlbc.com resides in /var/www/iainlbc_com. If you are using apache just change your DocumentRoot variable for the vhost. –  iainlbc Feb 9 '11 at 3:43
    
ok then so finally I ll be having this kind of structure for new website:/var/www/html/new_site and for old that is for current /var/www/html/old_site In old_site and new_site folders my wordpress files will go, am I rite? –  ntechi Feb 9 '11 at 4:39
    
exactly! please report back here if you have problems –  iainlbc Feb 9 '11 at 17:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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