Hello,

I would like to install a second drupal site in the same server, but It didn't work as easy as I thought.

In the server, I have the main site with its domain www.mydomain.com. In the same server, I have a drupal site under the folder public_htm/drupalsite, and I bought its domain too, www.drupalsite.com.

Now I want to install a second drupal site. Since this time I don't care about the domain, I haven't bought a new domain. I tried to just install it in public_htm/seconddrupalsite. After uploading all the files in that folder, I went to www.mydomain.com/seconddrupalsite, and the installation started. But when I introduce the information for the database, it gives me and error.

I would like to know which one is the easiest way to install this new site. Can I just buy the domain and then it will work? Do I need to use virtual host (I think my host doesn't allow it) Do I have to install it using multi-sites (I would like them to be totally independent, though)?

Thank you

Comments

bwv’s picture

Please describe the database error you get. Are you trying to use the same database for both site? If so, did you use a prefix for the tables for the second site? This does not sound like a server issue to me, since you should be able to install an infinite number of sites, as long as each is in a separate folder. (There are other ways of setting up multi-site installations. The way you are doing it is the fastest and easiest, generally speaking.)
----------------------------------------------------------------------
http://classicvinyl.biz
http://music.classicvinyl.biz
http://association.drupal.org/user/1207

dresde’s picture

Hi,

well, if just doing that should work without any virtual host or symlink, you make me happy :).

I tried using a different database, because I don't want to mess up the site that is already working fine. So in mySQL i left the database for drupal site one and I created a database for drupal siete two.

The error I got was something like "cannot get the header" and "header is already sent by" and "no such a file in". I think the number of the lines were 618, 619 or so in the file install. I can check it again if that helps.

Thank you very much, and I hope you can hello me to fix this.

-----> so, I have just tried again and this is the error i get:

Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory in /home7/rojastwo/public_html/beta/includes/install.inc on line 188

Warning: Cannot modify header information - headers already sent by (output started at /home7/rojastwo/public_html/beta/includes/install.inc:188) in /home7/rojastwo/public_html/beta/includes/install.inc on line 618

Warning: Cannot modify header information - headers already sent by (output started at /home7/rojastwo/public_html/beta/includes/install.inc:188) in /home7/rojastwo/public_html/beta/includes/install.inc on line 619

profjk’s picture

Hi,
The easiest way to install multiple drupal sites would be to make Fantastico install them for you (from within cPanel) in different folders. Then buy your domains and redirect them to the folders in which the respective drupal sites are installed.
Good luck.

silverwing’s picture

While Fantastico may be the easiest way, it's not at all recommended to use on a production site.

Have you tried uploading the files again to the new site? Maybe there was a problem with the upload.

~silverwing

_____________________________________________
MisguidedThoughts

dresde’s picture

Hey guys, thank you,

First of all, I have no idea what FANTASTICO is... i will check it.

But in Drupal Hispano (the spanish community) someone told me a very easy thing that has worked perfectly: skip the assistant and just configure settings.php. Then I just created the folder public_html/newsite and works.

The only thing is that I have discovered, using the assistant the first drupal site I installed, in the database line, reads @localhost instead of @itsdomain. It works perfectly, I have use that for the new site and also works, but I thought it would refer to the domain... isn't?

bwv’s picture

May I humbly suggest you find a better use of your time than looking into disaster-stico.. I mean fantastico.

You can manually edit the settings.php file, that is always a good fallback strategy.

Localhost is the name commonly used to designate the database; it varies from server to server.
----------------------------------------------------------------------
http://classicvinyl.biz
http://music.classicvinyl.biz
http://association.drupal.org/user/1207

RickA99’s picture

I have a domain with Drupal 5 and Ubercart installed in the root. The new store is not completely ready so DNS is stilling pointing to the old store at another hosting site. It has been recommended that I start over using Drupal 6 and Ubercart in order to take advantage of the increased functionality. This seems like a good idea to me.

Not being an old hand at this, I would like to maintain access to Drupal 5 while I am replicating the settings in Drupal 6. Is there a way to install Drupal 6 in a directory (not the root) such as "root/drupal6 and be able to access either 5 or 6 until such time as I uninstall Drupal 5?

-Anti-’s picture

> Is there a way to install Drupal 6 in a directory (not the root) such as
> "root/drupal6 and be able to access either 5 or 6 until such time as I uninstall Drupal 5?

Yes, but to avoid problems when you're ready to move it to root, make it a subdomain, not a folder.

Eg. access it using drupal6.domain.net as opposed to domain.net/drupal6

I would stick an htaccess password on the drupal6 folder too, to stop people and bots going in while you're developing.

rjthomas’s picture

Sorry for this silly question, but I've looked in several places, cannot find the answer, and don't want to blow up my existing Drupal 6.2 sites. Is it possible to run both Open Atrium and Drupal 6.2 on the same server, and have those sites adn their respective databases work independently of each other?

The Drupal sites enhance our existing Intranet. I'm looking to Open Atrium to replace the Intranet and want to create a pilot site to test and evaluate.

Thanks for any guidance and to be solicitous of your time, if there's a URL to point me to rather than providing a reply, I'll go for the URL.

rt