Hi there!
I have installed letsencrypt onto my Raspi 2 and from now my apache2 won't work right till now.
i'll get always with the order
root@WoW:/home/pi# /etc/init.d/apache2 start
[....] Starting web server: apache2Action 'start' failed.
The Apache error log may have more information.
failed!
root@WoW:/home/pi#
the log file says that:
[Fri Dec 25 11:39:40 2015] [notice] caught SIGTERM, shutting down
[Fri Dec 25 11:47:09 2015] [error] Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)
my
nano /etc/apache2/sites-enabled/000-default
file includes this:
..VirtualHost *:80> // the > have to delete here
ServerAdmin webmaster@localhost
DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
/VirtualHost> // the > have to delete here
VirtualHost *:443> // the > have to delete here
DocumentRoot /var/www
ServerName https://xy.no-ip.biz
SSLEngine on
SSLCertificateFile /root/server.crt
SSLCertificateKeyFile /root/server.key
/VirtualHost> // the > have to delete here
I have some other files
/etc/apache2/sites-enabled/
here:
root@WoW:/home/pi# ls -l /etc/apache2/sites-enabled/
total 12
lrwxrwxrwx 1 root root 26 Jun 19 2015 000-default -> ../sites-available/default
-rw-r--r-- 1 root root 878 Jun 24 2015 000-default.save
-rw-r--r-- 1 root root 1118 Jun 24 2015 000-default.saveold
-rw-r--r-- 1 root root 351 Dec 25 11:34 GzeJ2e4m.htm
the GzeJ2e4m.htm includes:
<VirtualHost *:80>
DocumentRoot /etc/apache2/sites-available/vhost/
ServerName xy.no-ip.biz/GzeJ2e4m.htm
<VirtualHost *:443>
DocumentRoot /etc/apache2/sites-available/vhost/
ServerName xy.no-ip.biz/GzeJ2e4m.htm
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
under
/etc/apache2/sites-available/vhost/GzeJ2e4m.htm
is my html saved.
Please help!