By erehm on
I did the default install of drupal 5.6 on Fedora Core 8 + Apache 2.2.6. This installs drupal in /usr/share drupal and configures it such that it is accessed form the Web via www.mysite.com/drupal/. Clean URLs are turned on and working. Everything is good.
Now..I want to change it so that drupal is accessed at www.mysite.com instead of www.mysite.com/drupal
So, I made the changes below. I can now access the front page, but nothing else. The other drupal pages still seem to want to add the "/drupal" to the path.
What else must I do to simply move drupal to my "root" Apache directory?
/eric
--------------
/etc/httpd/conf
BEFORE
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
....
</Directory>
Alias /drupal /usr/share/drupal
<Directory /usr/share/drupal/>
Order Deny,Allow
Allow from all
AllowOverride All
</Directory>
AFTER
DocumentRoot "/usr/share/drupal"
#<Directory "/var/www/html">
#....
#</Directory>
#Alias /drupal /usr/share/drupal
<Directory /usr/share/drupal/>
Order Deny,Allow
Allow from all
AllowOverride All
</Directory>
Comments
bump
???
Anyone found an answer to
Anyone found an answer to this yet? I'm trying to do the same
cheers
re: Anyone found an answer to this yet?
I realize this reply is somewhat belated, but I'm hoping it'll be of use to someone.
I think I'm doing what you're trying to do - I'm running Drupal 6.9 on Fedora 8 / RPM install: I backported the RPMs to F8 (which isn't too awfully difficult; anyone wanting to know "how to", please let me know); I'm using PostgreSQL as a DB; I have multiple sites running off of the same codebase with a separate database for each; the default page for each domain I've "Drupal-ized" is the Drupal start page (which is what I understood you to be trying to do). Everything is working quite nicely; I currently have three sites that are "Drupalized"; when you go to any of them, you go directly to the Drupal page for that site.
The changes I had to make in order for everything to work were: in /etc/httpd/conf/httpd.conf (I'm using "NameVirtualHost" and "VirtualHost"): add a default virtual host container - this'll work, you may want to be more specific wrt which interfaces it's listening on; if you're firewalled, it probably doesn't matter a whole lot:
Then, in each VirtualHost container (the one for each site) I changed DocumentRoot to:
It'd make a bit more sense to have all sites in subdirectories beneath /usr/share/drupal/sites/ , but given the way things are packaged in the RPMs, the way I currently have it set up is by far the easiest way to set things up in reality. I'm toying with using the "primary site" as a template only and actually locating all production sites under /usr/share/drupal/sites/ ; that should work fine (albeit at the expense of a bit of disk space).
The second thing I had to change was .htaccess (/usr/share/drupal/.htaccess): for the primary site:
and, for the secondary, tertiary, quaternary, ... sites:
That was the best way I could think of to express the changes I had made to the .htaccess files, if it's not clear, please let me know and I'll try again.
One additional thing I noticed was that "Clean URLs" started working once I made the changed outlined above; prior to that, I had not been able to enable them for either site.
I'm pretty new to Drupal but I know my way around UNIX and Linux in general - Fedora in particular - and Apache, and PHP, ... Fortunately (for me) this turned out to be an exercise in Apache configuration && Linux system administration, and nothing too terribly Drupal specific.
Again, if anyone is interested in instructions for backporting the Drupal 6.9 RPMs to F8 or another RPM based system, my notes on getting 'multi-site' going, etc., please feel free to contact me or leave a follow-up post here.
- Larry