install drupal as a subdomain
I have been developing a drupal site on a local XAMPP multisite setup and now i need to upload it to the webhost. The problem is that when i was developing it i assumed it would be its own domain but to save money i am supposed to use our existing webhost which has our existing (non drupal) website on it. So i thought i could set it up as a subdomain.
The dev site is located in drupal-5.5/sites/example.com.au
but i would like the new site to be located at http://example.existingdomain.com.au
I have tried getting it to work but i keep getting "Internal Server Errors". Could someone with experience installing drupal AS A SUBDOMAIN please offer some instructions?
How do i install and configure drupal in a subfolder on my webhost so it doesn't interfere with the existing (non drupal) site? Where on the web server should i install drupal? What subdomains do i need to create? where do those subdomains get pointed? What do i change in the settings.php file? what do i change in the .htaccess file? are there other files that need to be changed? Can i change the sites foldername so it can be used as a subdomain? if i do change the sites foldername what internal drupal paths need to be changed? Is the site i've been working on for the past two weeks completely useless now because of the choice of the foldername?
Thank you in advance.

Not a drupal problem
This is not a drupal problem, but rather a server config problem. You need to check with the support department of your web hosting company.
Thank you for replying
Thank you for replying yelvington but your comment doesn't help in the slightest. Can you elaborate on "server config problem"? Do you perhaps know of a good guide on installing drupal as a subdomain?
No difference
There is nothing different about installing Drupal on a subdomain, or in a subdirectory. You follow exactly the same steps. Do not touch the htaccess file, do not change anything in the settings file (Drupal's installer will take care of that). If your webserver is properly configured, Drupal does not care where it is installed.
Your problem is that your webserver is not properly configured, and that is an issue for your hosting company.
change a sites folder name
I can do a clean install of drupal 5.5 on my webhost and it works fine so there doesn't appear to be any "server config" problems. My problem now it that i need to change the foldername located on the local XAMPP setup from drupal/sites/example.com.au to drupal/sites/example.existingdomain.com.au . Is there a way to change the foldername without breaking the file paths in the mysql database?
Create subdomain with CPanel
I have done this multiple times, and it's really pretty easy. All you need to do is create a subdomain via CPanel (assuming you have access to it). This should create a subfolder under your public_html folder. Simply upload your Drupal files (in your case, everything under drupal/sites, I believe) to the new subfolder. The only path I can think of that you would need to change would be the location of the temp directory under Admin -> Site configuration -> File locations in Drupal.
If you don't have access to CPanel (or whatever your host uses), then you will need to have someone create the subfolder and the DNS to point to it as a subdomain (CPanel does it for you automatically).
=-=
A) you should be using Drupal 5.7, 5.5 is 2 security and bug fix releases behind.
B) what you seem to be trying to do is creating a multi site. That being said, the sub domain needs to be physically created on your server or localmachine using the methods outlined in your apache documentation. These tasks are typicall done through a hosts panel on the server, or something like cPanel.
Once the subdomain is created properly, you can then continue to create a multisite using the subdomain which will need its docroot set to your initiall drupal install.
understand the sites/ folder doesn't automagically create a subdomain. this must be set up correctly before you can use the sites folder to refer to a subdomain.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
On the local computer; I
On the local computer;
I created a new database with a different name, imported the data from the original database. Then
I duplicated the site which was located on the local server at drupal/sites/example.com.au and renamed the new one example.existingdomain.com.au . I then logged into the duplicated local site and changed a few link paths to the new address. I then used phpmyadmin to export the new database.
On the web server;
I have setup the subdomain example.existingdomain.com.au using cpanel and set the document root to the folder where drupal is installed.
Added a new database and imported the new (local duplicated) database.
Uploaded a zipped copy of the example.existingdomain.com.au folder (and files) and extracted it to the sites folder on the web server.
I changed the settings.php file to use the new (web server) database details.
I then typed in the address of the site and all i get is the data from the first node, nothing else. No theme, no blocks, no links, etc.
Did i make a mistake somewhere or is it an issues with the webhost? The web host details are; Apache version 1.3.39 (Unix), PHP version 4.4.7, MySQL version 5.0.45-community.
I developed on XAMPP which is using Apache HTTPD 2.2.6 + Openssl 0.9.8g, MySQL 5.0.51, PHP 5.2.5, PHP 4.4.7.
PS thank you all for your replies.
=-=
try clearing the cache tables in the database as well as on your machine.
if clean urls was enabled before the changing of the folder name you may have to replace the .htacess file or, navigate with dirty urls to the admin area, disable them , then reenable them.
if css aggregation was on, this too should have been disabled before the renaming.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
I searched through the
I searched through the database and found that the path to the templates page.tpl.php was the old filepath so i changed it to the new one and now its working. I think it was in the system table.