I initially thought I had this problem:
https://stackoverflow.com/questions/28572629/a2ensite-site-does-not-exist-error-even-with-conf-file
But that did not help me.
I cd here:
/etc/apache2/sites-enabled
I know the path to a2ensite:
which a2ensite
/usr/sbin/a2ensite
And I tested the configuration files with this:
apachectl configtest
I get:
Syntax OK
I have this file:
ralph.stagingv2.example.conf
which starts with:
ServerName ralph.stagingv2.example.com
DocumentRoot "/home/ralph/example/current/web"
DirectoryIndex index.php
I created the DocumentRoot with:
mkdir -p /home/ralph/example/current/web
And I changed permissions to the user we use on AWS:
chown -R ubuntu /home/ralph/
chgrp -R www-data /home/ralph/
but when I do:
a2ensite ralph.stagingv2.example
I get:
ERROR: Site ralph.stagingv2.example does not exist!
What did I miss?
ralph.stagingv2.example.conf
file and what operating system is Apache installed on?