Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

hex74726176
Joined: Oct 28, 2004
# Posts: 57

View the profile for hex74726176 Send hex74726176 a private message

Posted: 2006-Mar-05 07:22
Edit Message Delete Message Reply to this message

Hi all,

I recently got a Virtual Dedicated Server and I'm trying to set it all up as I had with normal hosting.

My Hosting client allowed me to set up subdomains. All I had to do in Frontpage was create a folder with the same name as the subdomain and when I uploaded the website it would put them into the subdomains.

Now I have to use the ftp option and search around for the right subdomain folder on my VDS. I then have to upload each subdomain separately.

Does anyone know how I can set this up automatically? I have about 30 subdomains at one domain and don't want to have to upload them all individually.

ps. A tip to anyone offered a virtual dedicated server through DomainsPricedRight. When they say they don't support the servers they really mean it. They are no help whatsoever.

Thanks,
Trav



hex74726176
Joined: Oct 28, 2004
# Posts: 57

View the profile for hex74726176 Send hex74726176 a private message

Posted: 2006-Mar-07 04:41
Edit Message Delete Message Reply to this message

Hi all,

I'm still having trouble with this. If I'm asking in the wrong place please point me to some forum or other place that might be able to help.

Thanks,
Travis



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1835

View the profile for Prowler Send Prowler a private message

Posted: 2006-Mar-07 07:27
Edit Message Delete Message Reply to this message

In a *nix server there are many methods for what you seek to do. It all depends on the server configuration for starters. Do you have shell access to this so called virtual dedicated server ?

Normally when you own a dedicated server, it belongs to you - physically. You decide what kind of server software goes into this. You get to decide on the configuration in tune with your budget. So Shell access is available in addition to access to a Control Panel.

Be that as it may, use something as simple as a 'tar' to upload the entire directory structure to the production server from your development server. Your subdomains are after all, that many directories from the document root. So a gunzipped tar file will upload all your contents at one go.

Or use rsync to update only the modifed files.





hex74726176
Joined: Oct 28, 2004
# Posts: 57

View the profile for hex74726176 Send hex74726176 a private message

Posted: 2006-Mar-07 11:23
Edit Message Delete Message Reply to this message

Hi,

Thanks for the tips, but I think I'm in a little over my head.

I have virtually zero unix and server experience. I was sold a virtual dedicated server with domainspricedright on the idea that for what I was doing, (fairly basic hosting of domains with no other users and no need for SSL etc) and with Plesk it would be fairly easy to use. So if I can do it in Plesk without the need for getting into the unix shell that would be preferable.

However I have got myself putty and I can get in there and mess about with it. Also I have a file manager in Plesk.

A number of packages come standard with my Plesk but others I can purchase and add if needed.

I don't really have a test server as such I just have a bunch of websites set up in Frontpage which I load to my live server.

So back to your answer I don't know the first thing about tar and how I would create a tar file and where and how I would put it anywhere. Do you think I need to go do a unix course or find a manual of some kind to familarise myself with all this or do you think there's some simple solutions I could implement with my limited knowledge?

I've wikipediaed and googled tar gunzipped and subdomains but I've not found a great deal that is useful to me.

Thanks again for your help on this. This is a great forum I hope to be in a position to start helping others on here soon. smile

Travis





Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1835

View the profile for Prowler Send Prowler a private message

Posted: 2006-Mar-08 05:54
Edit Message Delete Message Reply to this message

Travis - I am happy to see you show so much of interest.

:)

You have putty and you can access your dedicated server at will. Good. First hurdle crossed.

Now on to the meat of the matter -

>>Do you think I need to go do a unix course or find a manual of some kind to familarise myself with all this or do you think there's some simple solutions I could implement with my limited knowledge?

You don't need to take a course to do simple things like this. You will be surprised at the level of help you can get in forums for sorting out problems - a lot more complicated than uploading files.
It all depends on the effort you are prepared to allocate for learning a few tricks with the Unix which will come in handy for any serious management of the server.

Tar is basically an utility to 'clump' together a set of files (creating archives). It does a lot more. It does preserve the file hierarchy and when used with gzip can compress the files. You will need to do the reverse at the other end. This technique is easily one of the most common tasks many of us - Sysadmins do on a daily basis.

We can do it in many ways. The easiest way is to use a Windows port of the Tar from here: [link]

You can get gzip from here: [link]

Download and install them in your windows computer.

You will need to get to the command prompt and navigate your way to the top of a directory below which is the root of the directory where you have subdomains in the form of folders. This is important as you will create the entire directory structure as here in the production server.
Let us say that the root of the directory is called as www (common term).
Once there, issue a command like this:


Code: [copy]





Tar will create a zipped archive of all directories downstream of www. You upload this all_folders.tgz to the production server through FTP in binary mode.

Once that is done, fire up your trusty putty and login to your production server. Navigate your way to the directory where you have uploaded this. Issue a command like this:

tar -xvzf all_folders.tgz

and the archive would have unpacked there.

Remember to take a complete backup of the server always before you do a major upload. In case you mess up, you should be in a position to roll back to the previous level.

All the above advice is expressed in good faith. We will not be responsible for any damage - physical or otherwise arising out of the use of this advice.

With that caveat out of the way, if you want to learn more about a Unix environment without installing one, you can try cygwin. It ports many of the Unix utilities including a bash shell onto Windows.

If you are unsure of any steps or have more doubts please feel free to ask here. :)





hex74726176
Joined: Oct 28, 2004
# Posts: 57

View the profile for hex74726176 Send hex74726176 a private message

Posted: 2006-Mar-10 06:01
Edit Message Delete Message Reply to this message

Hi,

Thanks for this help.

I've started down this track and got the tar and gzip installed. But I'm not sure how this will help.

Is this just to create a directory structure on my Unix server?

I have a feeling your solution is too clever for what I need to do.

The have the subdomain structure already set up on my server it's just that it's different to my windows structure and I'd like to be able to map them somehow.

On windows in frontpage I have

My Webs/Website Name/index.htm
My Webs/Website Name/Subdomain1/index.htm
My Webs/Website Name/Subdomain2/index.htm
My Webs/Website Name/Subdomain3/index.htm
etc..

On my Server I have
MyDomain.com/httpdocs/index.htm
MyDomain.com/subdomains/Subdomain1/httpdocs/index.htm
MyDomain.com/subdomains/Subdomain2/httpdocs/index.htm
MyDomain.com/subdomains/Subdomain3/httpdocs/index.htm
etc.

With my old webhosting service with Frontpage extensions installed I just chose Frontpage services and typed in the full web address. It uploaded my file structure into the correct places on the server.

Will what you're suggesting with tar do that for me?

Wouldn't it be easier (and would it work) to just set up my directory structure in windows the same as my server and ftp the lot?

Thanks,
Travis



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1835

View the profile for Prowler Send Prowler a private message

Posted: 2006-Mar-12 14:27
Edit Message Delete Message Reply to this message

You will have to recreate the same directory structure as you have in the production server into your local machine.

I have assumed that you make large number of modifications at the same time to your subdomains and hence suggested the tar route. Tar saves you the hassles of remembering the file names along with the directory where it resides. For example, if you have a index.html, service1.html and service2.html across many of the subdomains, and each of these files is unique then you would need to upload them individually into their respective directories.

On the other hand, if you create a tar from your Mydomain.com directory all the files downstream of this will be included in the tar file. This is the preferred way if you make major changes across many of your sites.

If you need to upload one or 2 files, a FTP session will be easier.

Check in your controlpanel if they have enabled the installation of FrontPage extensions. You might see something like this there:

Warning: It is recommended that you DO NOT install FrontPage Extensions on your account unless you intend to publish your site directly from the FrontPage application.

Uninstalling the extensions from the main domain will uninstall the extensions from all subdomains and addon domains. Uninstalling will also remove all .htaccess files in your web root (public_html). You must have the extensions installed on the main domain before they can be installed on any subdomains or addon domains.

Installing or uninstalling FrontPage Extensions will result in the loss of all .htaccess files in your web area. Any directories you have protected with WebProtect will become unprotected until you reprotect them.



Sometimes many people don't realize that creating a new .htaccess file in the 'root' directory will overwrite the FP extensions.


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions