Performed steps but now SSL not installed

Both have no output

2 Likes

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
4 Likes

I think I see a space missing space - or don't see it.

4 Likes

There are numerous problems, @rg305, like redirecting to two different destinations:

3 Likes

same out put, that is no out put, redirected back to root

2 Likes

If used curl command with -- max-redirs 3
error:

curl: (60) SSL certificate problem: self signed certificate

2 Likes

What do you mean by this:

2 Likes

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

3 Likes

The mystery needs to be solved as to why that file is inaccessible to fix things properly.

4 Likes

Please show this file:

and the latest output of:
sudo apachectl -S

4 Likes

It seems the file is now empty - which explains a lot.

Please show:
ls -l /etc/apache2/sites-available/

4 Likes

File size = 0
Do you have a backup?

4 Likes

no, no backup

1 Like

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.

1 Like

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]

4 Likes

ERROR: Conf prestashop-le-ssl does not exist!

while performing

sudo a2disconf prestashop-le-ssl.conf

2 Likes

ls -l /etc/apache2/sites-enabled/

4 Likes

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/

3 Likes

@rg305

I don't think the file is empty. sudo ls perhaps?

Don't you need a2dissite to disable the site?

4 Likes

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]

2 Likes