I am new to Drupal. I am installing Drupal 7 on my Windows 8 PC on which is already WAMP so that I may experiment.

I know that I will be building several sites on one server and so decide to opt for multi site, sharing code base but separate MySQL databases.

The base Drupal installation went well. I put the installation in C:\wamp\www\drupal. I just access the site with localhost and the drupal subdirectory.

Then I set up a test domain www.playdrupal.com in my hosts file. I also set up virtual hosts by uncommenting the line in httpd.conf file (Include conf/extra/httpd-vhosts.conf) and added the following lines to httd-vhosts.conf file:

NameVirtualHost *:80 

<VirtualHost *:80>
    DocumentRoot "c:/wamp/www/drupal"
    ServerName www.playdrupal.com
    ServerAlias playdrupal.com domain
    ErrorLog "c:/wamp/www/drupal/logs/playdrupalcom-error.log"
    CustomLog "c:/wamp/www/drupal/logs/playdrupal.com-access.log" common

<VirtualHost *:80>
    DocumentRoot "c:/wamp/www"
    ServerName localhost
    ErrorLog "logs/error.log"
    CustomLog "logs/access.log" common

I then created the folder playdrupal.com in the sites folder of the Drupal installation and copied the default.settings.php from the default folder to the new folder and renamed it settings.php.

I then created a new database and user to manage it.

When I went to www.playdrupal.com in IE 10 (Desktop) it started the install script got to the page to key in the database name, user and password. After that I got the 500 error. In the error log it mentioned a syntax error. I found this in the new site's settings.php where it was merging the database details of the two sites and creating a syntax error in the process.

I found that the default.settings.php file had the first site's database settings, so I had been copying this into the new settings.php file.

So I edited the default.settings.php to its original state and re- copied it to the second site's settings.php.

The database had not had any tables created so I tried again. Now it gets to the page for keying the site name and administrator username and password. After that I get the 500 error and the error log says:
Fatal error: Call to undefined function node_types_rebuild() in C:\\wamp\\www\\Drupal\\includes\\common.inc on line 7475, referer: http://www.playdrupal.com/install.php?profile=standard&locale=en&op=star...

I really am lost now and searching these forms did not present a solution. I have also read all the installation pages, including multi-site in the Drupal documentation.

Any further ideas would be much appreciated.



sandshakimi’s picture

Something similiar is happening to me.

I have my site, then my subsite stood up.

I was able to complete the installation of my subsite, but then after that, I can only access the front page of the subsite.

Everything after that gives me the 500 error.

My primary is fine.

wusel’s picture

You can look at "Multi-site on XAMPP for Windows" (https://www.drupal.org/node/1682040).

WAMP and XAMPP may be nearly the same, some paths in the filesystem may be different.

Good luck!


Rory Downes’s picture

Thanks wusel, your link led me to another comment on another thread that was quite exhaustive in resolving this type of issue.

In my case it was setting session.cookies_secure=0 in my php.ini file.

There are many solutions in this article and apparently some work for some instances and some for others, so if this does not work for you follow the link to find many other ideas to try.

Good luck to anyone else with the same issue.