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

32 total views, 1 views today

1
Leave a Reply

avatar
0 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Some N00bs Recent comment authors

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

  Subscribe  
newest oldest most voted
Notify of