Originariamente inviato da MizioB
Visualizza il messaggio
ho seguito la tua guida ed ho due problemi:
il primo è che quando entro nella pagina web di 123solar per configurarlo mi chiede password e login
inserisco admin e la password che mi mostra il raspberry ma una volta inseriti, invece che mostrarmi la pagina della configurazione mi compare una pagina web di errore di accesso....
forse dipende dall'installazione del php....
se lancio il comando:
pi@raspberrypi ~ $ sudo apt-get install php5 libapache2-mod-php5 php5-curl
ottengo:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
php5-cli php5-common
Suggested packages:
php-pear
The following NEW packages will be installed:
libapache2-mod-php5 php5 php5-cli php5-common php5-curl
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/5,591 kB of archives.
After this operation, 16.5 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously unselected package php5-common.
(Reading database ... 82078 files and directories currently installed.)
Unpacking php5-common (from .../php5-common_5.4.36-0+deb7u3_armhf.deb) ...
Selecting previously unselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.4.36-0+deb7u3_armhf.deb) ...
Selecting previously unselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.4.36-0+deb7u3_armhf.deb) ...
Selecting previously unselected package php5-curl.
Unpacking php5-curl (from .../php5-curl_5.4.36-0+deb7u3_armhf.deb) ...
Selecting previously unselected package php5.
Unpacking php5 (from .../php5_5.4.36-0+deb7u3_all.deb) ...
Processing triggers for man-db ...
Setting up apache2.2-common (2.2.22-13+deb7u4) ...
insserv: Service dnsmasq has to be enabled to start service apache2
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing apache2.2-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2-mpm-prefork:
apache2-mpm-prefork depends on apache2.2-common (= 2.2.22-13+deb7u4); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-prefork (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2:
apache2 depends on apache2-mpm-worker (= 2.2.22-13+deb7u4) | apache2-mpm-prefork (= 2.2.22-13+deb7u4) | apache2-mpm-event (= 2.2.22-13+deb7u4) | apache2-mpm-itk (= 2.2.22-13+deb7u4); however:
Package apache2-mpm-worker is not installed.
Package apache2-mpm-prefork is not configured yet.
Package apache2-mpm-event is not installed.
Package apache2-mpm-itk is not installed.
apache2 depends on apache2.2-common (= 2.2.22-13+deb7u4); however:
Package apache2.2-common is not configured yet.
dpkg: error processing apache2 (--configure):
dependency problems - leaving unconfigured
Setting up dnsmasq (2.62-3+deb7u1) ...
insserv: warning: script 'automatico.sh' missing LSB tags and overrides
insserv: There is a loop between service minidlna and automatico.sh if stopped
insserv: loop involving service automatico.sh at depth 2
insserv: loop involving service minidlna at depth 1
insserv: Stopping automatico.sh depends on minidlna and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing dnsmasq (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up php5-common (5.4.36-0+deb7u3) ...
Creating config file /etc/php5/mods-available/pdo.ini with new version
Setting up php5-cli (5.4.36-0+deb7u3) ...
Creating config file /etc/php5/cli/php.ini with new version
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on apache2-mpm-prefork (>> 2.0.52) | apache2-mpm-itk; however:
Package apache2-mpm-prefork is not configured yet.
Package apache2-mpm-itk is not installed.
libapache2-mod-php5 depends on apache2.2-common; however:
Package apache2.2-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
Setting up php5-curl (5.4.36-0+deb7u3) ...
Creating config file /etc/php5/mods-available/curl.ini with new version
dpkg: dependency problems prevent configuration of php5:
php5 depends on libapache2-mod-php5 (>= 5.4.36-0+deb7u3) | libapache2-mod-php5filter (>= 5.4.36-0+deb7u3) | php5-cgi (>= 5.4.36-0+deb7u3) | php5-fpm (>= 5.4.36-0+deb7u3); however:
Package libapache2-mod-php5 is not configured yet.
Package libapache2-mod-php5filter is not installed.
Package php5-cgi is not installed.
Package php5-fpm is not installed.
dpkg: error processing php5 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apache2.2-common
apache2-mpm-prefork
apache2
dnsmasq
libapache2-mod-php5
php5
E: Sub-process /usr/bin/dpkg returned an error code (1)
ed infatti se poi lancio il comando:
pi@raspberrypi ~ $ sudo nano /etc/php/php.ini
il mio php.ini è completamente vuoto....ed infatti in /etc non ho nemmeno la cartella php
ho cercato on line di tutto ma non ne vengo fuori da settimane....
Commenta