Both have no output
Run this:
sudo apachectl -k stop
Wait 5 minutes.
Run this:
sudo apachectl -k start
Wait 2 minutes.
Run this:
sudo cat /etc/apache2/sites-available/prestashop-le-ssl.conf
I think I see a space missing space - or don't see it.
There are numerous problems, @rg305, like redirecting to two different destinations:
same out put, that is no out put, redirected back to root
If used curl command with -- max-redirs 3
error:
curl: (60) SSL certificate problem: self signed certificate
What do you mean by this:
If run this command on SSH on root level sudo cat /etc/apache2/sites-available/prestashop-le-ssl.conf
then it gives no display on the screen and comes back to the root
The mystery needs to be solved as to why that file is inaccessible to fix things properly.
Please show this file:
and the latest output of:
sudo apachectl -S
It seems the file is now empty - which explains a lot.
Please show:
ls -l /etc/apache2/sites-available/
File size = 0
Do you have a backup?
no, no backup
Meanwhile scanning SSL report on
https://www.ssllabs.com/
Got T rating If trust issues are ignored: B
This server's certificate is not trusted, see below for details.
No problem we rebuild it (as best we can).
Part #1: [disable the empty config]
sudo a2disconf prestashop-le-ssl.conf
then to confirm please show:
ls -l /etc/apache2/sites-enabled/
Part #2: [remove the empty config file]
rm /etc/apache2/sites-available/prestashop-le-ssl.conf
then to confirm please show:
ls -l /etc/apache2/sites-availble/
Part #3: {pending completion of parts 1&2} [rebuild the TLS config file]
ERROR: Conf prestashop-le-ssl does not exist!
while performing
sudo a2disconf prestashop-le-ssl.conf
ls -l /etc/apache2/sites-enabled/
Well that is another reason why I don't like Apache
.
The (link) file is there, but the removal request says it isn't there.
OK, we'll use a bigger hammer!
rm /etc/apache2/sites-enabled/prestashop-le-ssl.conf
then to confirm please show (again):
ls -l /etc/apache2/sites-enabled/
I don't think the file is empty. sudo ls
perhaps?
Don't you need a2dissite
to disable the site?
The file is a link (to an empty file).
But You may be right, I may be crazy!
I think a2disconf
should have been a2dissite
[getting old in my old age]