can i use the jmdcms as sub-website?

Topics: General
Jun 25, 2007 at 4:49 PM
first all, i have to say it is great work!

now , i have already run a website and the boss let me make a new sub-website, i want

to know whether what can i do as follows:

i make a folder in the home directory of the existed website,then i put the files of jmdcms

-website into the new folder? can it run properly? what is more , need i make any change?

thank you for your reply!!
Coordinator
Jun 27, 2007 at 12:21 AM
Hi Kevin,

Thanks for using JMDCMS. Please do provide your valuable feedback and criticism.

JMDCMS is by design based on this principle:
One Directory, One Database, Multiple sites. Your domains, domain pointers, Virtual Directories, Subdomains can be completely different websites, even though all of them are pointing to same database and same directory.

You need to do the following to get your subdomain website up and running:
1. Create a subdomain in IIS.
2. Make the home directory of your subdomain the same as your other domain where you have JMDCMS code.
3. Run this SQL Script: Execute JMDSITECREATE 'subdomain.yourdomain.com', 'email@yourdomain.com'
4. Thats it!!! You can browse your new website now.

There are other ways of configuring a new site too for example:
1. You can point your subdomain to a different home directory and copy the jmdcms binary code there and point the web.config connection scring to same database as before.

2. You can point your subdomain to a different home directory and but point the web.config connection scrint to different database.

All the best! Feel free to ask any question you may have!





kevin4000 wrote:
first all, i have to say it is great work!

now , i have already run a website and the boss let me make a new sub-website, i want

to know whether what can i do as follows:

i make a folder in the home directory of the existed website,then i put the files of jmdcms

-website into the new folder? can it run properly? what is more , need i make any change?

thank you for your reply!!

Jun 27, 2007 at 11:45 AM
dear handaajay:

thank you for your instant and detailed reply!

that is to say: is my method of making new folder in the home directory wrong before ?

as you tell me, i put JMDCMS binary file and my existed website code in the same home directory folder(ig:wwwroot) together!

but now i meet with a problem:

if JMDCMS have the same folder as mine ,i can meger their file into the same folder, for example : bin , images, userfiles, fckeditor folder etc .

but if your JMDCMS code have the same file as my website etc, default.aspx , can i change the file name as index.aspx arbitrarily?

lastly , whether does it seem like this:

http://www.abc.com points http://127.0.0.1/default.aspx

http://JMDCMS.abc.com points http://127.0.0.1/index.aspx not http://127.0.0.1/newfolder/default.aspx

waiting for your reply eagerly !

Coordinator
Jun 27, 2007 at 1:44 PM
Kevin,

Lets keep it really simple. Take a look at this example configuration.

Site: Abc.com
Home Directory: C:\Inetpub\wwwroot\abc

Site: jmdcms.abc.com
Home Directory: c:\intetpub\wwwroot\jmdcms

Put JMDCMS binary files into c:\intetpub\wwwroot\jmdcms directory.

Change connectionstring in the web.config file.

Initialize the site by running this script:
Execute JMD_SITE_CREATE 'jmdcms.abc.com', 'email@abc.com'

Thats it. Browse: http://jmdcms.abc.com

Feel free to contact me with any questions you may have.

- Ajay

Jul 20, 2007 at 10:05 AM
clearly , thank you , i will have a try
Coordinator
Jul 20, 2007 at 1:29 PM
Good! Feel free to contact me with any questions/suggestions you may have.