Installed SMF forums on my Ubuntu server hosted on DigitalOcean in directory /var/www/html/smf
Added the below code in /etc/apache2/apache2.conf expecting that my domain would correctly read the above folder...
<br><VirtualHost *:80> <br>ServerAdmin webmaster@localhost <br>DocumentRoot /var/www/html<br></VirtualHost><br><br><VirtualHost *:80> <br>DocumentRoot /var/www/html/smf <br>ServerName mysite.com <br>ServerAlias *.mysite.com<br></VirtualHost><br>
as this did not work, I went and added the file mysite.com.conf to the directory /etc/apache2/sites-available
however, when I follow these instructions https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04 and run sudo apache2ctl configtest I get:
AH00112: Warning: DocumentRoot [/etc/apache2/var/www/html] does not existAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this messageSyntax OK
Why am I getting a warning of a document root on etc/apache2? the var directory is at the same level as etc/
When trying to open the site, it shows HTTP ERROR 500
me to im blocked in same thinks for my forum about tire-bouchon charles de gaulle (https://tire-lbouchon.fr/produit/de-gaulle-tire-bouchon)
when I follow these instructions https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04 (https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04)
I have same problem ...
This is old topic but would be nice if you share your data with
Also, check do you see your site config under
/etc/apache2/sites-enabled/