volevo installare su "buster" un sistema con 123solar e metern, partendo da zero e seguendo le varie guide di flanesi.
Sono arrivato alla configurazione di 123solar e quando modifico il file 000-default.conf come indicato nella guida
Codice: Seleziona tutto
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName 127.0.0.1
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/123solar/admin>
AllowOverride None
AuthType basic
AuthName “123solar Password Protected Area”
AuthBasicProvider file
AuthUserFile /var/www/123solar/config/.htpasswd
require valid-user
</Directory>
<Directory /var/www/metern/admin>
AllowOverride None
AuthType basic
AuthName “meterN Password Protected Area”
AuthBasicProvider file
AuthUserFile /var/www/metern/config/.htpasswd
require valid-user
</Directory>
# Available loglevels: trace8, …, trace1, debug, info, notic$
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For exa$
# following line enables the CGI configuration for this host o$
# after it has been globally disabled with “a2disconf”.
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
dopo il salvataggio il server apache non si riavvia e compare: failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
con "systemctl status apache2.service" compare
root@raspberrypi:/etc/apache2/sites-enabled# systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2021-01-15 01:43:07 CET; 1min 40s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 1799 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
gen 15 01:43:06 raspberrypi systemd[1]: Starting The Apache HTTP Server...
gen 15 01:43:07 raspberrypi apachectl[1799]: AH00526: Syntax error on line 22 of /etc/apache2/sites-
gen 15 01:43:07 raspberrypi apachectl[1799]: AuthName takes one argument, the authentication realm (
gen 15 01:43:07 raspberrypi apachectl[1799]: Action 'start' failed.
gen 15 01:43:07 raspberrypi apachectl[1799]: The Apache error log may have more information.
gen 15 01:43:07 raspberrypi systemd[1]: apache2.service: Control process exited, code=exited, status
gen 15 01:43:07 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'.
gen 15 01:43:07 raspberrypi systemd[1]: Failed to start The Apache HTTP Server.
lines 1-14/14 (END)
cosa è successo ??