You are not logged in.

#1 2013-04-27 20:53:50

teekert
Member
Registered: 2013-04-27
Posts: 3

Multiple Drupal sites on 1 Arch server

I have just posted this also on the wiki (https://wiki.archlinux.org/index.php/Talk:Drupal), not sure if that was a good idea but here is my problem:

I wish to install multiple Drupal sites on my server so I start by doing this:

    pacman -S drupal

I create a database and "cp -rv /usr/share/webapps/drupal/* /srv/http/mysite"

Everything works at 127.0.0.1/mysite ! Nice. Now comes site number 2.

I create a second database and "cp -rv /usr/share/webapps/drupal/* /srv/http/mysite2"

And this site is my first site but just at the different (127.0.0.1/mysite2) location? I thought I had copied clean files into the directory?

When I download the base packages from the Drupal site, I do go into the installation but it complains: "The directory sites/default/files does not exist."

What am I missing? I feel it has something to do with this directory /var/lib/drupal/sites/default/

Last edited by teekert (2013-04-28 17:30:54)

Offline

#2 2013-04-28 07:37:36

teekert
Member
Registered: 2013-04-27
Posts: 3

Re: Multiple Drupal sites on 1 Arch server

Ok, I have solved this issue myself.


I specifically added each site location separately to "basedir" in "/etc/php/php.ini" (So not just /srv/http/ but both /srv/http/mysite and /srv/http/mysite2) and now it works. Before I just had the root of both directories added.

Hopefully someone finds this useful.

Offline

#3 2013-04-28 17:30:42

teekert
Member
Registered: 2013-04-27
Posts: 3

Re: Multiple Drupal sites on 1 Arch server

This was not the answer I just found out... I see now that drupal always uses the settings.php from /var/lib/drupal/sites/ instead of making its own. I will try later to put a fresh settings.php in each new Drupal install... I'll post the result

Offline

#4 2013-04-30 11:52:34

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: Multiple Drupal sites on 1 Arch server

Why not use Drupal's multisite feature?
http://drupal.org/documentation/install/multi-site

Offline

Board footer

Powered by FluxBB