Menu Close

Drupal Installation with clean URL’s on apache

just posting this because some n00bs always fucks it up and then ask 
us how to do it. 
So here are the basic steps to install Drupal on Ubuntu using Apache

1) Download Drupal here
2) unpack it into /var/www folder with tar xvzf drupal-XXX.tar.gz (where XXX is the version number) 3) p0wn your /var/www folder with: sudo chown -R your_n00b_username /var/www 4) change permissions for /var/www/sites/default 5) enable clean URL's (http://drupal.org/node/43783) a) sudo gedit /etc/apache2/httpd.conf add the following


<Directory />
	Options FollowSymLinks
	AllowOverride all
	Order deny,allow
	Deny from all
</Directory>

<Directory /usr/share/phpmyadmin>
	Options Indexes FollowSymLinks
	DirectoryIndex index.php
	Order deny,allow
	Deny from all
	Allow from 127.0.0.1
	Allow from 10.0.0.0/24
</Directory>

b) sudo gedit /etc/apache2/sites-enabled/000-default 
change: <Directory /var/www/> Options Indexes FollowSymLinks MultiViews
            AllowOverride none
    to: <Directory /var/www/> Options Indexes FollowSymLinks MultiViews
            AllowOverride all
3) sudo a2enmod rewrite; sudo /etc/init.d/apache2 restart 

That's it :) See wasn't that hard
0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments