Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Adding Subdomains With cPanel
TavoxPeru
post Oct 23 2006, 10:30 AM
Post #1


Super Member
Group Icon

Group: [HOSTED]
Posts: 760
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



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,
Go to the top of the page
 
+Quote Post
Quatrux
post Oct 23 2006, 12:38 PM
Post #2


the Q
Group Icon

Group: [HOSTED]
Posts: 1,047
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059



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?
Go to the top of the page
 
+Quote Post
Niru
post Oct 23 2006, 01:06 PM
Post #3


Advanced Member
Group Icon

Group: Members
Posts: 190
Joined: 18-August 06
From: Fun.NiranVv.Com
Member No.: 15,325



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"
Go to the top of the page
 
+Quote Post
vujsa
post Oct 23 2006, 04:19 PM
Post #4


Absolute Newbie
Group Icon

Group: Admin
Posts: 888
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714



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
Go to the top of the page
 
+Quote Post
TavoxPeru
post Oct 24 2006, 01:56 AM
Post #5


Super Member
Group Icon

Group: [HOSTED]
Posts: 760
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



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,
Go to the top of the page
 
+Quote Post
vujsa
post Oct 24 2006, 02:17 AM
Post #6


Absolute Newbie
Group Icon

Group: Admin
Posts: 888
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714



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
Go to the top of the page
 
+Quote Post
TavoxPeru
post Oct 25 2006, 07:02 PM
Post #7


Super Member
Group Icon

Group: [HOSTED]
Posts: 760
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



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,

This post has been edited by TavoxPeru: Oct 25 2006, 07:27 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. cPanel: An Overview(11)
  2. Zpanel/cpanel(12)
  3. Forgot My Cpanel Password(7)
  4. Photoshop Tutorial: Adding Color To Black And White Photo(6)
  5. Cpanel Works Slowly(7)
  6. Can't Access The Cpanel!(7)
  7. Adding East Asian Fonts To Your System(4)
  8. Adding More IDE Ports In Computer(17)
  9. Add A Forum To Your Site(23)
  10. Help: Adding My Videos Folder To Start Menu(10)
  11. Filezilla: How To Use In cPanel?(10)
  12. How Do You Use The cPanel File Manager?(14)
  13. PHP Mail Sending Is Not Working After cPanel Upgradation!(22)
  14. Qupis : Free Cpanel Web Hosting (one Line Text Ad At Bottom)(10)
  15. Does Our Cpanel Have Safe Mode Turned On Or Off(10)
  1. Cannot Access Cpanel.(11)
  2. Subdomains(2)
  3. Problems Dynamically Adding A Table With Dom(4)
  4. Adding Element To Page Issues(0)
  5. Can't Access Astahost Hosteed Sites (including Cpanel And Ftp)(21)
  6. Full Disk Usage Warning In Cpanel(7)
  7. Filtering Out Unwanted Junk Mail Using Regular Expression.(0)
  8. Site Will Not Load, I Can Not Get To The Cpanel(6)
  9. Did Cpanel Upgrade?(8)
  10. Cpanel Security(0)
  11. Domain Name Is Not Assigned To Ip. Access Cpanel With Ip Not With Domain Name.(6)
  12. Cpanel Isn't Working.(14)
  13. Cpanel Error When Loggin In...(4)


 



- Lo-Fi Version Time is now: 7th October 2008 - 09:09 AM