The following is extracted from my online article &quot;Drupal Develoipment Server&quot; <a href="http://awebfactory.com.ar/node/345">http://awebfactory.com.ar/node/345</a>:<br><br>Ubuntu:<br><p>
In order for clean URLs to work in Drupal, you need to enable .htaccess
files and install mod rewrite. First I edited
/etc/apache2/sites-enabled/000-default.
</p>
<p>
Before (lines 10-18):
</p>
<pre>&lt;Directory /var/www/&gt;<br>Options Indexes FollowSymLinks MultiViews<br>AllowOverride None<br>Order allow,deny<br>allow from all<br>...<br></pre><p>
After:
</p>
<pre>&lt;Directory /var/www/&gt;<br>Options Indexes FollowSymLinks MultiViews<br>AllowOverride All<br>...<br></pre><p>
Then I executed the following in order to enable mod_rewrite and restart apache server:
</p>
<pre># a2enmod rewrite<br>Module rewrite installed; run /etc/init.d/apache2 force-reload to enable.<br></pre><pre># apache2ctl restart <br></pre><p>
The apache server restarted ok, but I got this pesky error:
</p>
<pre>apache2: Could not reliably determine the server&#39;s fully qualified domain name, <br>using 127.0.1.1 for ServerName<br></pre><p>
I edited /etc/apache2/apache2.conf and added a ServerName directive just under the ServerRoot directive:
</p>
<pre>ServerRoot &quot;/etc/apache2&quot;<br>ServerName hostname<br></pre><p>Where hostname should be whatever you get when you execute
&quot;hostname&quot;. You should get an error message free apache server restart
now.
</p>Restart apache server:<br><br>$ apache2ctl restart<br><br>And you should be good to go for clean urls<br><br>Victor Kane<br><a href="http://awebfactory.com.ar">http://awebfactory.com.ar</a><br><a href="http://projectflowandtracker.com">http://projectflowandtracker.com</a><br>

<br><div class="gmail_quote">2009/3/26 Vinay Yadav <span dir="ltr">&lt;<a href="mailto:vinay@vinayras.com">vinay@vinayras.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Have you downloaded .htaccess file along with code?<br><br>Do you have .htaccess support enabled in your web server (Allowoverride All, check in httpd.conf)<br><br>This should help<br><br>Vinay<br><br><br><br><div class="gmail_quote">


2009/3/27 Nikhil Kala <span dir="ltr">&lt;<a href="mailto:nikhilrkale@gmail.com" target="_blank">nikhilrkale@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div class="h5">
Hello All,<br><br>I have couple of sites running fine on Drupal 5. I used clean URL and autopath module to seo friendly URL&#39;s. Now if I try to run same site (I have downloaded the exisitng on localhost) on localhost machine it is giving me error URL not found.<br>



<br>I have configured LAMP server on Ubuntu Machine, whats other things I need to check with the LAMP server to get this project run without changing the URL settings?<br><br><br clear="all"><br>-- <br>Thanks &amp; Regards,<br>


<font color="#888888">
Nikhil Kala<br><br>
</font><br></div></div>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>Drupal optimization, development, customization and consulting.<br>


<br>VinayRas Infotech<br>Web Application Development<br><a href="http://www.vinayras.com" target="_blank">http://www.vinayras.com</a><br><br><a href="http://www.nagpurpulse.com" target="_blank">http://www.nagpurpulse.com</a> - The Pulse of Nagpur<br>

<a href="http://www.edrupal.com" target="_blank">http://www.edrupal.com</a> - Indian Drupal<br>

<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>