Report this

What is the reason for this report?

First droplet, htaccess, no config file?

Posted on December 20, 2014

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 https://www.digitalocean.com/community/tutorials/how-to-install-processwire-on-an-ubuntu-vps

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::

/etc/apache2/sites-available/default

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?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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
</Directory>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.