Hello.
I have a local server and a remote server that will be the definitive host. I´m create the drupal page in local and upload the good code to remote server.
I have installed Multisite Manager in both servers, local and remote. In remote I got it to work successfully but in local I get a Error 404 from Apache (Apache/2.2.15 (Linux/SUSE) ) when I attempt go to sub-site.
Example (local):
(drupal url) htt p://localhost/~user/
(site url) htt p://localhost/~user/site/example1 -> Return 404 error
(drupal url) htt p://www.mywebdir.com/
(site url) htt p://www.mywebdir.com/site/example1 -> Runs fine
I do the corret changes to settings.php and .htaccess files, and i create the symlink. I tried "$ ln -s . site" and i tried "$ ln -s /home/user/public_html site"
Anybody has a idea what is happen?
P.D. I configured apache and to accept clean url in local but drupal not recognizes it, can it be the problem or part?
Sorry, my english is not very good.
I created the same post in the drupal -> post instalation forum. Sorry, for duplcate it i know but I forget this issues forum.
Comments
Comment #1
schuyler1d commentedDo you have mod_rewrite in Apache enabled?
You also might want to put it in a different space from your ~user directory, but wherever it is, make sure apache
Options All is set, too.
Comment #2
jncrucesThanks for your response.
Yes I have mod_rewrite Apache enabled and i have Options +FollowSymLinks actived and Allowoverride All too, every change on .htaccess affects to page.
I was all day configuring and changing Apache config. But i can´t enable for example Clean Url´s it was impossible for me. I tried all: http://drupal.org/node/15365
.htaccess
The rest of file is .htaccess base of drupal. I attempt with #RewriteBase / and RewriteBase /
sites/default/settings.php
mod_userdir.conf
httpd.conf
apache2ctl -M
I hope this information will be enough. Thanks!
Comment #3
schuyler1d commentedIs it your host? Can you see if it works from /var/www/localhost/ (or wherever the true document root is)?
The one line that you might change is:
(remove the '.')
Basically, if you can get cleanURLs working, the multisite_manager should work with your configuration. Good luck!
Comment #4
jncrucesThanks I will study cleanURLs now. I think same, when i get cleanURLs i will resolve my problem.
This point!!!! (".") I´m all days making changes adding for example "/~user/" to url base and making several changes and i let it, error. But i removed this "." from $base_url and the problem persist.
I don´t understand what do you said with works on /var/www/localhost/. In any case my base directory is /var/www/htdocs
Do you said me that i can move all the directory without problem there?
Thanks!
Edit:
Yes i find the problem. It was this sentence:
RewriteBase /
I tried to enable it but I needed to add /~user/
RewriteBase /~user/
I tried this too but this time i moved this line to the begin of the sentences that rewrite the url for Multisite_manager.
Thanks! I hope that it will help to another one!