Multisite installation ok, server without domains, install.php already accessible: how to avoid this?

Events happening in the community are now at Drupal community events on www.drupal.org.
mxt's picture

Hi All!

I have just hire a dedicated server, linux OS (centos) and apache server.

I have made a successful multisite setup with two sites, BUT no domains are associate yet. My sites folder structure looks like this:

all/themes
all/modules
default/files
website1.com/files
website1.com/modules
website1.com/themes
website1.com/tmp
website2.com/files
website2.com/modules
website2.com/themes
website2.com/tmp

I have also modified my HOSTS LOCAL FILE to reach both sites: all works fine, sites are correctly reached, but I have the following problem:

If I digit only my server IP in my address bar (e.g: http://95.110.XXX.XX/ ) the response show the first drupal installation wizard screen to setup a news site (install.php).

How to avoid this?

(I have already deleted the "default" directory but without success)

Thank you very much and sorry for my bad english.

MXT

Comments

make it the ip address

btopro's picture

make the folder name the ip address to the server. have you tried doing 95.110.xxx.xx as a folder name? To get two to point to it you'll need to do symlinks on the server.

(I have already deleted the

Garrett Albright's picture

(I have already deleted the "default" directory but without success)

Well, basically, you have two choices: undelete/recreate that directory, pick one of your sites to be the "main site," and then move its settings.php file into the default directory; or, just don't sweat it. If you don't have a pre-edited settings.php in your default directory, nobody is going to be able to use that installation script to actually install a site anyway unless they also have access to your server and can do that step themselves.

What about symbolic links?

mxt's picture

Thank you both for your answers.

May be symbolic links another solution? In that case: WHERE I have to put them end where they have to point to.

Thank you!

MXT

Symbolic links are sometimes

Garrett Albright's picture

Symbolic links are sometimes useful when building multisites, but I'm not sure how they'd help you with what you describe above.

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: