I have followed https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04 and when I come to the part using: apache2ctl configtest
I get this error: AH00557: apache2: apr_sockaddr_info_get() failed for domain
AH00558: apache2: Could not reliably determine the server's fully qualified domain name,
using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Also when following this tutorial the site is still the apache2 default page. I’m not so good with terminal but I have no clue how to get rid of the apache2 default page, and also the errors I got.
I know I don’t use Ubuntu as VPS, I use Debian.
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!
I will look at the other lamp later, here is my config file:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName turbosmurfen.com
ServerAlias www.turbosmurfen.com
DocumentRoot /var/www/turbosmurfen.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName turbosmurfen.com
ServerAlias www.turbosmurfen.com
DocumentRoot /var/www/turbosmurfen.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Hi there,
For Debian, I could suggest following the steps here:
Regarding the index.html file, you can find it at /var/www/html and you can change it with your own index file.
If you have added an additional Apache virtual host, can you share it here?
Also, if you are not using the root user, make sure to run the config test with sudo:
sudo apache2ctl configtest
Best, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.