Hi I am using the following tutorial to setup multisite.
Basically for now I want two addresses:
www.site.net and www.site.net/xyz
Below are my config files:
drwxrwxr-x 2 vlad apache 4096 Dec 3 23:20 all
drwxrwxr-x 2 vlad apache 4096 Dec 3 23:37 default
drwxrwxr-x 2 vlad apache 4096 Dec 3 23:22 www.site.net.xyz
When I hit www.site.net everything's working, but when I go to /xyz, it simply says "Page not found". When I try to alter settings.php in 'www.site.net.xyz' I realise that it's not being picked up. It uses default/settings.php.
When I create www.site.net/settings.php and play with it, I realise that it is being picked up by the main site as opposed to default/settings.php. What am I doing wrong? Why does it pick up settings.php from www.site.net but not from www.site.net/xyz
It seems like .htaccess might not be working right.
I just don't know what else to do. Hopefully someone will point me to what I am missing.
Thank you in advance,
Vlad
Comments
I also just tried it on two
I also just tried it on two different servers, and same story. I am missing something.
apache, dns and settings.php changed too?
You have posted a link with a descrpition of a multi site setup. What you said, what you not told, I guess you missed to set up some things before drupal kicks in.
Is there a vhost in apache (or your favorit httpd) for the second side (www.site.net.xyz)? You have to have one. Otherwise the url
http : // www. site. net/xyz
is nothing more than a subfolder of your www folder and missing if there isn't a index.html in it. No! You don't solve this by creating a folder and put an index.php in it.
In case you set up your fav http server for vhost on site.net and site.net/xyz and that does work, you have to tell drupal to handle the urls. You have to edit the settings.php in the folder www.site.net.xyz to the proper values, i.e. the baseurl .
What might be puzzling, both vhost (in your httpd set up) link to the same directory (because drupal takes care of the difference). But that's the beauty of drupal ;-)
Perhaps it's a little bit simpler to set up to work if you separate the two sites and don't include one in the path of the other? If that works you should be able to do it your way.
I was under the impression
I was under the impression that only if I add sub domain or another domain for multisite install, then will I need to mess with 'vhosts'.
In my case I deal with folders in my domain like site.net/xyz, site.net/whateverelse. And drupal should be able to pick it up and see what that is.
I just re-read instructions particularly for vhosts. And I don't see a separate 'vhost' entry for subfolders.
Anyway, I just did this and it still didn't help:
Quick update -- I just
Quick update -- I just tested this whole thing with subdomain as opposed to subfolder, and it worked beautifully!
tmp.site.net and settings file in /sites/tmp.site.net/settings.php.
So definitely I am doing something wrong with sub-folder.
subfolder sites
There is a missing step with subfolder sites that you haven't mentioned.
You have to configure your server so that requests to the subfolder url get served by the Drupal installation (ie Drupal index.php) in the parent folder. There are two ways to this:
1) create a symlink that points the subfolder to the parent folder.
2) or create some sort of url alias in your web server config that serves files from the parent directory.
--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal
THANKS SO MUCH styro! That
THANKS SO MUCH styro! That is exactly what I was missing. Appreciate it a lot! :)