Apache2+php5+mysql5: ho fatto un casino!
Inviato: giovedì 3 agosto 2006, 2:21
Ho bisogno di una mano:
ho provato (per la prima volta) ad installare un sistema LAMP sulla mia dapper. Con apt ho eseguito:
# apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server
Già durante l'installazione "mysqld" mi si piantava dandomi:
"ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
Inoltre "/etc/init.d/apache start" mi diceva:
"apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName"
Ho aperto http://127.0.0.1 e il risultato è stato in caricamento fino al timeout del browser...
Ho disinstallato tutto con "apt-get --purge remove" ecc...., e inoltre ho fatto L'ERRORE di eliminare lo script apache dentro init.d
Ho riinstallato tutto, secondo questo wiki http://wiki.ubuntu-it.org/ApachePHPMySQL, ma ormai "apache start" risulta in un "command not found".... Mysql è sembrato andare stavolta.... Ma ho di nuovo tolto tutto con la speranza di avere la dapper pulita e riniziare da zero!
La mie domande sono:
- perché quei problemi su un'installazione eseguita secondo il wiki
- come ripristinare tutto, compreso /etc/init.d/apache
Riporto anche il mio ifconfig:
-----------------------------------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:0B:CD:79:E6:A2
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x6000
eth1 Link encap:Ethernet HWaddr 00:02:8A:A1:AF:E0
inet addr:192.168.1.11 Bcast:255.255.255.255 Mask:255.255.255.224
inet6 addr: fe80::202:8aff:fea1:afe0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14338 errors:0 dropped:0 overruns:0 frame:0
TX packets:10809 errors:277 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16412467 (15.6 MiB) TX bytes:1827470 (1.7 MiB)
Interrupt:10 Memory:d0401000-d0401fff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:300 (300.0 b) TX bytes:300 (300.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:87.11.127.77 P-t-P:192.168.100.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:95 errors:0 dropped:0 overruns:0 frame:0
TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:51804 (50.5 KiB) TX bytes:9435 (9.2 KiB)
-------------------------------------------------------------------------------------------------
Grazie!
ga
ho provato (per la prima volta) ad installare un sistema LAMP sulla mia dapper. Con apt ho eseguito:
# apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server
Già durante l'installazione "mysqld" mi si piantava dandomi:
"ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
Inoltre "/etc/init.d/apache start" mi diceva:
"apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName"
Ho aperto http://127.0.0.1 e il risultato è stato in caricamento fino al timeout del browser...
Ho disinstallato tutto con "apt-get --purge remove" ecc...., e inoltre ho fatto L'ERRORE di eliminare lo script apache dentro init.d
Ho riinstallato tutto, secondo questo wiki http://wiki.ubuntu-it.org/ApachePHPMySQL, ma ormai "apache start" risulta in un "command not found".... Mysql è sembrato andare stavolta.... Ma ho di nuovo tolto tutto con la speranza di avere la dapper pulita e riniziare da zero!
La mie domande sono:
- perché quei problemi su un'installazione eseguita secondo il wiki
- come ripristinare tutto, compreso /etc/init.d/apache
Riporto anche il mio ifconfig:
-----------------------------------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:0B:CD:79:E6:A2
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x6000
eth1 Link encap:Ethernet HWaddr 00:02:8A:A1:AF:E0
inet addr:192.168.1.11 Bcast:255.255.255.255 Mask:255.255.255.224
inet6 addr: fe80::202:8aff:fea1:afe0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14338 errors:0 dropped:0 overruns:0 frame:0
TX packets:10809 errors:277 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16412467 (15.6 MiB) TX bytes:1827470 (1.7 MiB)
Interrupt:10 Memory:d0401000-d0401fff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:300 (300.0 b) TX bytes:300 (300.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:87.11.127.77 P-t-P:192.168.100.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:95 errors:0 dropped:0 overruns:0 frame:0
TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:51804 (50.5 KiB) TX bytes:9435 (9.2 KiB)
-------------------------------------------------------------------------------------------------
Grazie!
ga