Installazione da zero - errore riavvio apache dopo Permessi 123solar

Discussioni relative a software necessario per il monitoraggio e il Raspberry
guecar
Messaggi: 4
Iscritto il: 15/01/2021, 1:28

Installazione da zero - errore riavvio apache dopo Permessi 123solar

Messaggioda guecar » 15/01/2021, 2:00

Ciao a tutti.
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 ??


Avatar utente
Walter62
Messaggi: 281
Iscritto il: 19/01/2016, 19:18

Re: Installazione da zero - errore riavvio apache dopo Permessi 123solar

Messaggioda Walter62 » 23/01/2021, 17:50

Non so se hai risolto, ma hai un errore di sintassi alla riga 22 del file site-........
Sito personale: walter62.altervista.org

guecar
Messaggi: 4
Iscritto il: 15/01/2021, 1:28

Re: Installazione da zero - errore riavvio apache dopo Permessi 123solar

Messaggioda guecar » 23/01/2021, 18:44

Ho reinstallato l'immagine pronta di solarStrech 1.3.. ma mi riprometto appena ho tempo di riprovarci ..per quanto riguarda l'errore, avevo fatto copia/incolla dalla guida "Procedura per l'installazione di 123Solar su Raspbian Stretch".

grazie Walter


Torna a “Software”

Chi c’è in linea

Visitano il forum: Nessuno e 4 ospiti