OK. So, you want to have wordpress run the site. That means that you don’t want something like:
but, instead want
to be wordpress.
That means that you probably want to install wordpress into the root directory of your web site.
The first step is to go to your existing site and BACK IT UP. That is, copy the files from the current directory
to a new directory, say “backup-emsq.net”.
Do you have shell access to the home directory? Is your account configured for SSH access or do you just have FTP access? It works better if you have SSH access, but you can use FTP to do it. It just means that you need to either rename the directory and create a new one with the original name or download the files to a workstation and then re-upload the back to a new directory.
Getting SSH access means that you will end up with a UNIX command prompt and can issue commands directly to the system and not need to go through FTP or SFTP to do it.
[b]What I am telling you here is very "powerful" and can totally destroy your website forever if you make a mistake, forget a space, a period, a dash or a parenthesis. These commands are not for children to play with! They are the equivalent of a loaded shotgun with the safety off to your website. Handle with care.
To do the backup copy of a directory, you can use tar. (This stands for “tape archiver”, but it is a very old name.). Issue the following three commands:
(cd ~/emsq.net; tar -cf - .) | tar -xvf -
These commands will copy the files, permissions, links, etc. from your current directory at emsq.net to the new directory called backup-emsq.net. If you did it correctly, you should see a list of the files as they are being copied flash on the screen.
CHECK THE CONTENTS OF THE DIRECTORY TO MAKE SURE THAT THE COPY WORKED BEFORE CONTINUING.
By the way, to make an archive that you can use SFTP to download to your computer, issue the command:
tar -czvf archive-emsq.tgz ~/emsq.net
Then, download the file archive-emsq.tgz that the command will create. That is the safest method to move the backup off the site in case things are really messed up.
After you have done this, then issue the commands:
DO NOT FORGET THE FIRST COMMAND. YOU must, repeat must, be in the directory that you want to remove the files BEFORE you issue the remove command “rm”.
You should see your web site files and not one that is called “emsq.net”! If you don’t then stop; check things again; and try again.
Only when things are correct and you are in the proper directory, issue the magical command to remove the file contents. Warning this will remove the files AND ALL SUB-DIRECTORIES!
rm -rf *
This will remove MOST of the files. I can give you the command to remove all of the files, but that is very, very, very dangerous and if you make a single mistake, it will be disasterous. So, let’s just deal with the normal files first.
Then, to find the files that may still exist but are “hidden”, issue the command:
This will do a directory listing of the hidden files. Ignore the files that are just “.” or “…”. But, look for ones like “.htaccess” or similar. Those you need to delete as well. The command to delete them is similar to the other, but is simpler.
will delete the file called .htaccess from the directory. Notice, I did not include the “-f” option to force the deletion. It may ask you “are you sure?”. This is the time to say “well, am I?” and if so, just answer “y”.
There are several ways to do this. You can have sites that are accessed by
That is just creating an empty directory called “abc” in the directory emsq.net and installing wordpress into that directory.
or, you can have
That is going through and updating the DNS tables and possibly doing a sub-domain. I haven’t checked so don’t quote me.
or, you can have
That is going through and creating a sub-account AND registering the domain abc.net. This is the only option that costs money for the domain registration and/or transfer. If you don’t want the domain registered with DreamHost then just point the nameservers to dreamhost and create the sub-domain.
The choice is yours.
In all instances, you will have two directories associated with your account. One is for “abc.emsq.net” and the other for “emsq.net”. You may have two different users, one for each site, one directory in each of the user’s home directory. Or, you may put them both into yours.
Wordpress may be installed into one or both of the sites. The installations are separate and distinct. The databases are separate and distinct. They both reside on your database server, but you would create two databases; one for each web site.