2018-11-14, 08:01
(2018-11-14, 02:31)rpbg Wrote: @cmik, many thanks for this. This is great.
I did all the necessary steps, however I encountered the following issue when I restarted the Apache 2, here:
$ sudo service apache2 restart
I have got the following error:
Nov 14 01:09:30 osmc systemd[1]: Starting The Apache HTTP Server...
Nov 14 01:09:30 osmc apachectl[4711]: AH00526: Syntax error on line 2 of /etc/apache2/sites-enabled/default-ssl.conf:
Nov 14 01:09:30 osmc apachectl[4711]: Invalid command '\xc2\xa0', perhaps misspelled or defined by a module not included in the server conf
Nov 14 01:09:30 osmc apachectl[4711]: Action 'start' failed.
Nov 14 01:09:30 osmc apachectl[4711]: The Apache error log may have more information.
Nov 14 01:09:30 osmc systemd[1]: apache2.service: Control process exited, code=exited status=1
Nov 14 01:09:30 osmc systemd[1]: Failed to start The Apache HTTP Server.
Nov 14 01:09:30 osmc systemd[1]: apache2.service: Unit entered failed state.
Nov 14 01:09:30 osmc systemd[1]: apache2.service: Failed with result 'exit-code'.
Although I followed your steps and instructions I was not able to find the syntax error on line 2 in your
/etc/apache2/sites-enabled/default-ssl.conf file.
Could you please let me know what could be wrong.
Again, thanks for your help.
Can you check if you have
Code:
Listen 443
It can be in ports.conf file
Can you check also the enabled modules ?
This is a partial view of my apache2 directory :
pi@raspberry:/etc/apache2 $ tree .
.
├── apache2.conf
├── conf-available
...
├── conf-enabled
│ ├── charset.conf -> ../conf-available/charset.conf
│ ├── localized-error-pages.conf -> ../conf-available/localized-error-pages.conf
│ ├── other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf
│ ├── security.conf -> ../conf-available/security.conf
│ └── serve-cgi-bin.conf -> ../conf-available/serve-cgi-bin.conf
...
│ ├── proxy_ajp.load -> ../mods-available/proxy_ajp.load
│ ├── proxy_http.load -> ../mods-available/proxy_http.load
│ ├── proxy.load -> ../mods-available/proxy.load
...
│ ├── ssl.conf -> ../mods-available/ssl.conf
│ └── ssl.load -> ../mods-available/ssl.load
├── ports.conf
...
└── sites-enabled
├── 000-default.conf -> ../sites-available/000-default.conf
└── default-ssl.conf