First droplet, htaccess, no config file?

December 20, 2014 1.4k views

Hey guys,

So I've created my very first droplet with Ubuntu 14.04 and LAMP (choosed LAMP from Applications when creating the droplet) (it's the smallest droplet with 512 MB RAM and 20GB space)

I'm following this tutorial to install processwire

so everything goes nicely up to the point when I should enable rewrite module, the module gets enabled and then the tutorial says:

To use mod_rewrite, htaccess overrides have to be enabled. You will need to modify the default host configuration file. This can be found at::


but there is no such file? The command opens an empty file and I even checked via sftp, the only files in /etc/apache2/sites-available are:

000-default.conf and default-ssl.conf

and I cannot change AllowOverride to All because there is no such line in those files

Can anyone please point out what I'm doing wrong and how can it be fixed?

1 Answer

Assuming that you are using the standard web root of /var/www/html in your virtualhost configuration files (000-default.conf and default-ssl.conf) you can add the following section (inside the virtualhost definition).

<Directory /var/www/html>
AllowOverride All
Have another answer? Share your knowledge.