Nov 22, 2009

Adding Subdomains With cPanel

free web hosting
Open Discussion & Free Web Hosting > Astahost > Hosted Members Support

Adding Subdomains With cPanel

TavoxPeru
I just add for the first time a new subdomain to my account with the cPanel and it is very easy as simple insert the name and submit, how can i setup the default folder of this new subdomain??? because I want to assign this to a different folder or i just copy all the files to this default folder.

Best regards,

Comment/Reply (w/o sign-up)

Quatrux
I read twice what you have written, but I still am not quite sure what you want to do, what kind of a result do you want from doing something?

Comment/Reply (w/o sign-up)

Niran
QUOTE(TavoxPeru @ Oct 23 2006, 04:00 PM) *

I just add for the first time a new subdomain to my account with the cPanel and it is very easy as simple insert the name and submit, how can i setup the default folder of this new subdomain??? because I want to assign this to a different folder or i just copy all the files to this default folder.

Best regards,



I think, you are asking about, adding files in the subdomain only!
Right??

If you create one subdomain say, "demo"
it will create one new folder under your man domain named "demo"
you can find that "demo" folder under "public_html"
so, just go to: "public_html/demo" and uyou can upload the files inside that folder!
You can create one default html file say: "index.html" under thae new folder (here "demo")
So that the file named "index.html" can be displayed by typing "www.subdomain.domain.com"

 

 

 


Comment/Reply (w/o sign-up)

vujsa
If you set up a subdomain with the name of "forum" as in forum.TavoxPeru.com then your subdomains folder is /home/username/public_html/forum/

You cannot set up another folder since the server will only read /forum when that subdomain is requested.

As a result, your subdomain contens are also accessable via www.TavoxPeru.com/forum/

If you want to create an ftp account for this subdomain only, that can also be done.

If this doesn't aanswer your question, please give more information.

vujsa

Comment/Reply (w/o sign-up)

TavoxPeru
Quatrux sorry for dont understand my post, what Niran says is correct, i want to do that, simply add my files for my newly subdomain and vujsa thanks for your reply.

Now, i will explain better what im trying to do following the example given by vujsa.
  1. Create a Subdomain (done and is easy as simple insert the name and submit).
    • subdomain name: intivoyage
    • subdomain folder: /home/username/public_html/intivoyage/
  2. Add files to the subdomain. What im trying to do is to assign the folder /home/username/public_html/alex/ to be the default folder of this subdomain. But as vujsa said it is not possible because of the server.
So, does the only thing that i can do is moving all the files in /home/username/public_html/alex/ to /home/username/public_html/intivoyage/????
Or, can I use some kind of redirection either with an .htaccess file or with the cPanel????

Best regards,

Comment/Reply (w/o sign-up)

vujsa
QUOTE(TavoxPeru @ Oct 23 2006, 09:56 PM) *

Quatrux sorry for dont understand my post, what Niran says is correct, i want to do that, simply add my files for my newly subdomain and vujsa thanks for your reply.

Now, i will explain better what im trying to do following the example given by vujsa.
  1. Create a Subdomain (done and is easy as simple insert the name and submit).
    • subdomain name: intivoyage
    • subdomain folder: /home/username/public_html/intivoyage/
  2. Add files to the subdomain. What im trying to do is to assign the folder /home/username/public_html/alex/ to be the default folder of this subdomain. But as vujsa said it is not possible because of the server.
So, does the only thing that i can do is moving all the files in /home/username/public_html/alex/ to /home/username/public_html/intivoyage/????
Or, can I use some kind of redirection either with an .htaccess file or with the cPanel????

Best regards,


Well, there are .htaccess options but it you just want the file contents moved then there is a better option.
Delete intivoyage/
and then rename alex/ to intivoyage/
If you require a cgi-bin in intivoyage/, then simply add a folder with that name there.

If this isn't what you want to do, then we'll investigate other options.

The server just looks for intivoyage/ as the root directory of intivoyage subdomain. Usually when I do a reinstall or difficult upgrade, I just rename the original folder and create a new fresh folder to start from. Then if there is a problem, I can always revert to the last good website by renaming a couple of folders.

Hope This Helps. cool.gif

vujsa

Comment/Reply (w/o sign-up)

TavoxPeru
QUOTE(vujsa @ Oct 23 2006, 09:17 PM) *

Well, there are .htaccess options but it you just want the file contents moved then there is a better option.
Delete intivoyage/
and then rename alex/ to intivoyage/
If you require a cgi-bin in intivoyage/, then simply add a folder with that name there.

If this isn't what you want to do, then we'll investigate other options.

The server just looks for intivoyage/ as the root directory of intivoyage subdomain. Usually when I do a reinstall or difficult upgrade, I just rename the original folder and create a new fresh folder to start from. Then if there is a problem, I can always revert to the last good website by renaming a couple of folders.

Hope This Helps. cool.gif

vujsa

Thanks a lot, i will try the second option because it is more simple and i dont have much experience dealing with .htaccess files, so then i will post the results.

Well, almost everything works fine with the exception that initially the images dont show, i need to access every one and then go back to see it correctly at the page and all of my links dont work because i use absolute paths so i need only to change this in my source files.

Best regards,

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : adding, subdomains, cpanel

  1. Email Server / Cpanel Problems
    (1)
  2. Domain Name Is Not Assigned To Ip. Access Cpanel With Ip Not With Domain Name.
    (6)
    Hi, Please astahost help me. Yest i created host account with my domain name kndsoftware.info and
    after that i got confirmation and IP is given to me with domain name. After that i am able to
    access cpanel with IP and make updates but i am not able to open my page www.kndsoftware.info or
    www.kndsoftware.info/cpanel. Please help me :( . Regards, Kanade ....
  3. Full Disk Usage Warning In Cpanel
    (7)
    A few minutes ago I received an automated mail notifying me about 109.68% (548.38 Megs) of disk
    space used by my hosting account. It was extremely surprising because I have not uploaded anything
    in a while. Nevertheless, I went back to CPanel and looked into the Disk Usage Viewer. It could only
    account for ~295 MBs. While, I can free up quite a bit of space from the Trash directory, I am
    wondering what's causing the disk space to be misreported. Edit : I have emptied the Trash
    folder which managed to free ~75 MBs. Although, this has brought down the disk usage wit....
  4. Can't Access Astahost Hosteed Sites (including Cpanel And Ftp)
    (21)
    Well its been about a week now since i havent been able to access anything hosted on the gamma
    server (including the gamma.xisto.com address) and its starting to annoy me. my brother "co-owns" a
    site hosted here and he hasnt been able to go on it or anything so he told me to ask about it. So
    it was when i was uploading EZ Publish (via ftp) to my site it happened. after like 500 files it
    lost connection and wouldnt connect. later on i found that i couldnt get on my site or cpanel
    either. i then went on my best friends site hosted here and couldnt access it so i went on o....
  5. I Dont Understand Cpanel!
    (12)
    Hi all, I am new to this entire Astahost thing, I have used Tripod's Site builder my entire
    life!( Click Here To Visit Tripod Hosting ). First of all, when I go to my new website that I made
    using Astahost(I think, see below) I see text that says something like "Welcome to your new website!
    Please log in to cPanel by going to yourdomain.trap17.com/cpanel and change your email account,
    blah...blah...blah" Visit my site at azerothheroes.trap17.com for full "View". Second, How do you
    use cPanel at all? Where do I go to view/change my websites pictures/text and chang....
  6. Site Not Working
    Can access cpanel, but site will not load (5)
    Alright, well my website is http://www.sourcedevelop.com I can access cpanel by going to
    https://gamma.xisto.com:2083/frontend/rvblue/index.html and entering my username and password.
    However, when i try and load my website....it says that it cannot find the server. Anybody else
    experiencing this?....
  7. Cpanel
    (18)
    Hi, What happens to the Cpanel, i notice that it changes to a default view and also that the
    Fantastico Scripts dissapears, is it related to a huge server update???? When does it can be accesed
    again???? Best regards,....
  8. Current Server Issues That You May Have From The April 6th Hard Drive Swap And Cpanel Upgrade
    Place your issues here! (25)
    I keep seeing messages in the shoutbox that there are issues with the server and cPanel. If this is
    true, then why hasn't anyone made a post about it? To begin with, I have no control over the
    server so complaining to me or in the shoutbox doesn't help. None of the staff has control over
    the server so they can try and contact those that do but in the end, we really need a post about the
    problems. The shoutbox simply has too short of a life span for reporting problems. So please
    reply to this topic and this topic only if you have any problems NOT already p....
  9. PHP Mail Sending Is Not Working After cPanel Upgradation!
    (23)
    Hi all, Please check whether you can send mail using php! /unsure.gif"
    style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> I cant send mails
    after the cPanel upgradation process! /unsure.gif" style="vertical-align:middle" emoid=":unsure:"
    border="0" alt="unsure.gif" /> I dont know whats happened with that!! Is it for my account only or
    all are having the same problem?? Please guys, check it now and confirm it! Im having phpbb forum
    my site! It was working fine without any problem! But after cPanel upgradation, php mail is not
    functioning ....
  10. cPanel Is Back Now!
    (9)
    Hi all! This is with ref to this topic: http://www.astahost.com/problems-cpanel-t13608.html
    I'm happy to say that cPanel is Back now without any problems! /cool.gif"
    style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /> Thanks to the technical
    peoples for fixing the issue in a short time! /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> I was waiting for that to upload the files beacuse I
    cant access FTP behind this proxy /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gi....
  11. Problems With cPanel
    Showing some error message (9)
    Hi all, I was trying to upload some files to my account using cpanel! There was no problem in the
    beginning! But suddently it shows one error message as: Sorry for the inconvenience!
    The filesystem mounted at / on this server is running out of disk space. cPanel operation has been
    temporarily suspended to prevent something bad from happening. Please ask your system admin to
    remove any files not in use on that partition. (Edit: Authentication is working fine! After
    authentication only, ith shows the error message like this! ) Please check this one: htt....
  12. Space Usage..
    Question about space usage after deleting some stuffs using cpanel (3)
    Can anyone tell me how space usage is computed in the cpanel.. When i check, the control panel yank
    at me that i was using 150MB of space.. so i was full and i need some data more to upload.. what i
    have done is modify the code and erase my entire ftp account for files.. but the control panel still
    says i was on full usage.. no files in the trash and i also use the explorer for web space usage in
    the cpanel but still.. the total usage is merely at 7mb.. including the emails.. -- can someone
    help me with this stuff......
  13. Can't Access The Cpanel!
    Please help! (7)
    I just got an Astahost account and did everything it said I should do. I then went to the homepage
    of my new site and saw the page saying that my account had been created successfully and
    instructions on how to reach the cPanel. But when I tryed to go to the cPanel, it comes up with a
    "Page cannot be displayed" message. I don't know why I cannot reach my cPanel since my site is
    up! BTW my site's link is: http://unplugged.astahost.com/ Thanks, .Solitude ....
  14. Unzip Files In Cpanel?
    Can files be unzipped in cPanel? (6)
    Hi, I just got my new hosting account and was wondering if I can upload a zip file and get it
    unzipped in the server? Normally I wouldn't mind unzipping and sending it using FTP, but
    sometimes I'm somewhere else (like my workplace) and they don't allow FTP. Uploading the
    files one by one is going to be tedious since my zip files usually have almost 100 files or more.
    Small though, so it won't bog down the server /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Thanks.....
  15. Cpanel: Missing Space On Hosting Account
    cpanel fantastico's (3)
    CPanel is the best control panel i have ever used /laugh.gif" style="vertical-align:middle"
    emoid=":lol:" border="0" alt="laugh.gif" /> but the only problem is, my hosting is saying 10mb left
    /blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> but i
    havent used anything yet.....
  16. Uh-oh, Disk Hda1 (/boot) 93 %
    server status page on cPanel (4)
    I've just gone onto the . Everything was fine until I reached the bottom. It says Disk hda1
    (/boot) 93 % and theres a red flashing animated GIF next to it. Is it meant to be like that? All
    the others are green. Sorry if this is a bit of a n00b question.....

    1. Looking for adding, subdomains, cpanel

See Also,

*SIMILAR VIDEOS*
Searching Video's for adding, subdomains, cpanel
advertisement



Adding Subdomains With cPanel

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com