By smita_drupal on
Hello everybody,
I wanted to see how i can have 2 drupal sites with different themes run on the same server?
Is it possible?
Please do let me know..
Thanks,
Smita
Hello everybody,
I wanted to see how i can have 2 drupal sites with different themes run on the same server?
Is it possible?
Please do let me know..
Thanks,
Smita
Comments
Multisite
Yes, do a search for "drupal multisite" to get started.
thank you..
thank you..
Why not just have two
Why not just have two different installations of Drupal?
Clustered Drupal Hosting powered by Uptimehost's Cloud.
ok what i have done is - i
ok what i have done is - i have one drupal site already installed . its in /var/www/sites/abc.com which run as http://localhost
i copied the same abc.com folder and renamed it to xyz.com and placed it /var/www/sites/xyz.com.then i changed the settings and copied the same DB and renamed it and pointed it in the settings file
next i did was added xyz.localhost in the hosts file adn then added virtualhost in the httpd.conf file
after doing that i am able to access this new site by doing xyz.localhost.
But the problem is that my http://localhost is also now accessing the same Database which xyz.com is pointing to.
I am still stuck in the same problem.any ideas?suggestions?
Check
Check database defined in each sites settings.php file
my settings file for abc.com
my settings file for abc.com point to db called les_abc while the db of xyz.com points to les_xyz
base_url for abc.com points to http://localhost while base_url for other one points to http://xyz.localhost
ok
What's the content of your apache.conf file?
this is what my httpd.conf
this is what my httpd.conf file has:
DocumentRoot /var/www/sites/abc.com
ServerName http://localhost
DocumentRoot /var/www/sites/xyz.com
ServerName http://xyz.localhost
apache
What version of apache are you using? As far as I know virtual hosts should be defined in the apache.conf file and not the http.conf file
i am using Red hat [RHEL]
i am using Red hat [RHEL] 5.0
oops
I don't know anything about RHEL but I assume that the virtual host is incorrectly configured somehow, sorry I can't help anymore
Apache/2.2.3 (Red Hat)
Apache/2.2.3 (Red Hat) .thats what the version is.
no problem.i will may be
no problem.i will may be find out more abt how to configure virtual hosts in RHEL.thanks for all your help.
Apache2
Now I know that it is apache2, check out the apache2 directory for .conf files maybe allowedhosts or includedhost files and define your virtual host there and it should work a treat (don't forget to restart the apache server! and remove entries made in the http.conf)
ok wait i will try it..:)
ok wait i will try it..:)
post
Post the contents of your main apache directory, the actual name of the file requiring the definition of the virtual host escapes me (possibly age related :-))
hey i couldnt find apache2
hey i couldnt find apache2 directory.Its usually under /usr/local/apache2 .But i dont have apache 2 directory ..all i have is /etc/httpd/conf/httpd.conf file..:(
Urgh
Gotta be an apache2 folder somewhere.....what WHM software are you running? PM me if you want..
what is WHM and what is
what is WHM and what is PM???
is whm -web host manager?
I dont have that since this server is in the office itself...
Ok
WHM = wweb host manager
PM = personal message i.e contact me :-)
Apache directory on RedHat is /etc/httpd
The apache config file is in /etc/httpd/conf/httpd.conf