Apache2 not getting certificates or some other problem

I had to reinstall Linux and the usual headaches apply

got my site uploaded, loaded the database

installed apache2 and activated but cannot get it working

not sure how messy the setup is, save the conf file for my site earlier to I cp it to /etc/apache2/sites-available so that it would be ready

anyway nothing conspicuous as to certbot or apache to bring the site back up

1 Like

Use this:

sudo a2ensite mysite.com.conf
sudo apachectl -k graceful


first thing i did, site not providing a secure connection

on testing the default page works so that is know to be working

sudo a2ensite hardcoregames.ca.conf
Site hardcoregames.ca already enabled

This site can’t provide a secure connection

www.hardcoregames.ca sent an invalid response.

  • [Try running Windows Network Diagnostics](javascript:diagnoseErrors()).


1 Like

What shows?:
apachectl -S


Here is the error message I get when trying to access hardcoregames.ca:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

1 Like

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80 www.hardcoregames.ca (/etc/apache2/sites-enabled/hardcoregames.ca.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
User: name="www-data" id=33
Group: name="www-data" id=33

Hi @HardcoreGames

there is no non-www visible. Add that.

Then fix the error message @JimPas has reported.


this was working before fine

<VirtualHost *:80>
ServerName www.hardcoregames.ca
ServerAlias hardcoregames.ca
ServerAdmin webmaster@localhost
DocumentRoot /var/www/hardcoregames.ca

It seems that the Apache vhost is at issue so I am able to get the default apache page rendering but vhost is being ignored

finally brought the site up, messy as usual but the database does not seem to be the problem now it seems to be more the themes messy practices

1 Like

I changed the vhost file a tad and then after cleaning the database ad naueum I was able to get the certificate workin

some update must have broken it from the last attempt to fix the database

it seems now that JetPack is borked so I guess it's time to so more database cleaning

permalinks are working now at last

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.