Credo che possiamo escludere il fatto che il server test sia installato su virtualbox e che il DHCP è automatico e non statico.
Se tutto ciò non influisce sull'errore che stiamo riscontrando allora può essere qualcosa sull'installazione di alcuni pacchetti, in questa fase ricordo che un pacchetto risultava già installato
# yum install php-pear php-pdo php-mysql php-pgsql php-pecl-memcache php-gd php-mbstring php-mcrypt php-xml
però non ricordo quale fosse. Del resto non mi sembra di aver fatto ancora operazioni complesse con i file di configurazione
P.S.
Se può essere d'aiuto il risultato di
ifcondig
è questo
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
p2p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.108 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a00:27ff:fe61:835e prefixlen 64 scopeid 0x20<link>
ether 08:00:27:61:83:5e txqueuelen 1000 (Ethernet)
RX packets 48 bytes 6635 (6.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 34 bytes 3014 (2.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Grazie per l'aiuto.
Franco
Ultima modifica di ofranco (07-06-2013 09:51:23)
non mi sembra di aver fatto ancora operazioni complesse con i file di configurazione
Il problema è: hai fatto operazioni anche semplici con i files di configurazione? In caso affermativo, quali e su quali files? Io ho provato ad installare httpd su una Fedora 18 che gira su VirtualBox, e non ho riscontrato errori.
Poi, andando un po' a tentoni:
1) su che sistema operativo gira VirtualBox?
2) tanto per scrupolo, cosa dice
$ rpm -qa | grep "httpd"
nella macchina virtuale?
Ultima modifica di marcomotta (07-06-2013 10:13:02)
La filosofia è una disciplina con obiettivi, ma senza regole. La matematica è una disciplina con regole, ma senza obiettivi.
Un giorno ho incontrato un uomo che non aveva né obiettivi né regole. Studiava filosofia della matematica.
1) Fedora 18
2)
$ rpm -qa | grep "httpd"
httpd-tools-2.4.4-3.fc18.i686
libmicrohttpd-0.9.22-1.fc18.i686
httpd-2.4.4-3.fc18.i686
httpd-manual-2.4.4-3.fc18.noarch
P.S. Non ho modificato alcun file di configurazione
Ultima modifica di ofranco (07-06-2013 10:35:32)
1) Fedora 18
Quindi hai una Fedora 18 dove hai installato VirtualBox, e un'altra Fedora 18 che gira sotto VirtualBox.
2)
$ rpm -qa | grep "httpd" httpd-tools-2.4.4-3.fc18.i686 libmicrohttpd-0.9.22-1.fc18.i686 httpd-2.4.4-3.fc18.i686 httpd-manual-2.4.4-3.fc18.noarch
Questo mi sembra corretto
P.S. Non ho modificato alcun file di configurazione
Non mi viene in mente nient'altro...
N.B. Mi riferisco sempre al problema di apache che non parte.
La filosofia è una disciplina con obiettivi, ma senza regole. La matematica è una disciplina con regole, ma senza obiettivi.
Un giorno ho incontrato un uomo che non aveva né obiettivi né regole. Studiava filosofia della matematica.
Poichè ho fatto un clone del server subito dopo l'installazione di base, l'ho utilizzato per ripetere la procedura del server lamp. sono arrivato nuovamente allo stesso punto, col medesimo errore quando invoco il comando di avviare apache. Ora il risultato di journalctl è più breve:
-- Logs begin at ven 2013-06-07 11:40:00 CEST, end at ven 2013-06-07 11:48:11 CEST. --
giu 07 11:47:27 servertest dbus[417]: [system] Successfully activated service 'org.freedesktop.PackageKit'
giu 07 11:48:09 servertest systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
giu 07 11:48:10 servertest httpd[1226]: AH00557: httpd: apr_sockaddr_info_get() failed for servertest
giu 07 11:48:10 servertest httpd[1226]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
giu 07 11:48:10 servertest systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
giu 07 11:48:10 servertest httpd[1228]: AH00557: httpd: apr_sockaddr_info_get() failed for servertest
giu 07 11:48:10 servertest httpd[1228]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
giu 07 11:48:10 servertest httpd[1228]: httpd (no pid file) not running
giu 07 11:48:10 servertest systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit httpd.service has failed.
--
-- The result is failed.
giu 07 11:48:10 servertest systemd[1]: Unit httpd.service entered failed state.
A me sembra che cerchi il pid file
Dopo aver fatto queste modifiche:
etc / httpd / conf / httpd.conf
ServerName servertest:80
cat /etc/hostname
aggiunto 127.0.0.1 che non c'era. Ora la riga si ipresenta così: 127.0.0.1 servertest
Ho disabilitato selinux da enforcing a disabled
Dopo queste modifiche il waring non c'è più ma non riesco ugualmente a connettermi
journalctl è cambiato così:
-- Logs begin at ven 2013-06-07 12:27:11 CEST, end at ven 2013-06-07 12:33:21 CEST. --
giu 07 12:30:27 servertest NetworkManager[509]: <info> Setting system hostname to '127.0.0.1 servertest' (from system configuration)
giu 07 12:30:27 127.0.0.1 servertest dbus-daemon[411]: dbus[411]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
giu 07 12:30:27 127.0.0.1 servertest dbus[411]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
giu 07 12:30:27 127.0.0.1 servertest dbus-daemon[411]: dbus[411]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
giu 07 12:30:27 127.0.0.1 servertest dbus[411]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
giu 07 12:30:35 127.0.0.1 servertest systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
giu 07 12:30:38 127.0.0.1 servertest systemd[1]: Started The Apache HTTP Server.
-- Subject: Unit httpd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has finished starting up.
--
-- The start-up result is done.
giu 07 12:31:31 127.0.0.1 servertest systemd[1]: Started The Apache HTTP Server.
-- Subject: Unit httpd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has finished starting up.
--
-- The start-up result is done.
:wall:
Prova un attimo a modificare il file /etc/hostname così:
127.0.0.1 localhost.localdomain
Edit
no fermo il contenuto del file è:
localhost.localdomain
scusa ma ero senza fedora sotto le mani
/Edit
Se funziona qualcuno saprà dirti come dare un nome personalizzato al tuo server.
Il primo errore che hai è:
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Ultima modifica di andreamal (07-06-2013 14:02:13)
Ciao
Andrea Malfatti
localhost.localdomain
Fatto, ora l'output è questo:
-- Logs begin at ven 2013-06-07 19:15:48 CEST, end at ven 2013-06-07 19:21:04 CEST. --
giu 07 19:17:38 servertest systemd[1]: Starting Stop Read-Ahead Data Collection...
-- Subject: Unit systemd-readahead-done.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-readahead-done.service has begun starting up.
giu 07 19:17:38 servertest systemd[1]: Started Stop Read-Ahead Data Collection.
-- Subject: Unit systemd-readahead-done.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-readahead-done.service has finished starting up.
--
-- The start-up result is done.
giu 07 19:19:43 servertest kernel: nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
giu 07 19:20:06 localhost.localdomain NetworkManager[511]: <info> Setting system hostname to 'localhost.localdomain' (from system configuration)
giu 07 19:20:06 localhost.localdomain dbus[413]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
giu 07 19:20:06 localhost.localdomain dbus-daemon[413]: dbus[413]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
giu 07 19:20:06 localhost.localdomain dbus-daemon[413]: dbus[413]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
giu 07 19:20:06 localhost.localdomain dbus[413]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
giu 07 19:21:01 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
giu 07 19:21:04 localhost.localdomain systemd[1]: Started The Apache HTTP Server.
-- Subject: Unit httpd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has finished starting up.
--
-- The start-up result is done.
Ultima modifica di ofranco (07-06-2013 18:26:58)
Apache funziona?
Non sono un grande sistemista, ma nel log non vedo "failed" o simili.
Dimenticavo
$ systemctl status httpd.service
per controllare.
Ultima modifica di andreamal (07-06-2013 19:51:11)
Ciao
Andrea Malfatti
Mi sa che abbiamo fatto un passo avanti
l'output di quel comando è questo
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: active (running) since ven 2013-06-07 21:39:09 CEST; 3min 47s ago
Main PID: 1049 (/usr/sbin/httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: name=systemd:/system/httpd.service
├─1049 /usr/sbin/httpd -DFOREGROUND
├─1051 /usr/sbin/httpd -DFOREGROUND
├─1052 /usr/sbin/httpd -DFOREGROUND
├─1053 /usr/sbin/httpd -DFOREGROUND
├─1054 /usr/sbin/httpd -DFOREGROUND
└─1055 /usr/sbin/httpd -DFOREGROUND
giu 07 21:39:09 localhost.localdomain systemd[1]: Started The Apache HTTP Server.
Però se nella barra URL di Firefox digito 192.168.1.108 mi da Connessione non riuscita - Errore
Ultima modifica di ofranco (07-06-2013 20:46:03)
Però se nella barra URL di Firefox digito 192.168.1.108 mi da Connessione non riuscita - Errore
Questi sono problemi di firewall e/o selinux, ma credo sia meglio che intervenga qualcuno più bravo di me.
Ciao
Andrea Malfatti
Io inizierei digitando
127.0.0.1
nella barra degli indirizzi di firefox DENTRO la macchina virtuale dove gira apache.
Poi, se è ok, aprirei la porta 80 (e la 443 per https, se ti serve) sul firewall della macchina virtuale.
Infine, per farlo uscire all'esterno, bisogna settare l'eventuale router.
La filosofia è una disciplina con obiettivi, ma senza regole. La matematica è una disciplina con regole, ma senza obiettivi.
Un giorno ho incontrato un uomo che non aveva né obiettivi né regole. Studiava filosofia della matematica.
Non posso utilizzare firexox sulla macchina guest (dove gira Apache) perché è senza interfaccia grafica
P.S.
Tuttavia invocando il comando
wget localhost
il risultato è questo
--2013-06-08 20:16:09-- http://localhost
Risoluzione di localhost (localhost)... ::1, 127.0.0.1
Connessione a localhost (localhost) |::1|:80... connesso.
Richiesta HTTP inviata, in attesa di risposta... 403 Forbidden
--2013-06-08 20:16:09-- ERRORE 403: Forbidden
[[email protected]~]#
Eppure selinux è in posizione "disabled" :wall: :wall:
Aggiungo che per rendere bootable il servizio ho dato il comando:
#systemctl enable httpd.service
Eppure qui dice che va bene:
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: active (running) since sab 2013-06-08 20:47:52 CEST; 19min ago
Main PID: 761 (/usr/sbin/httpd)
Status: "Total requests: 3; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: name=systemd:/system/httpd.service
├─761 /usr/sbin/httpd -DFOREGROUND
├─861 /usr/sbin/httpd -DFOREGROUND
├─863 /usr/sbin/httpd -DFOREGROUND
├─864 /usr/sbin/httpd -DFOREGROUND
├─866 /usr/sbin/httpd -DFOREGROUND
└─868 /usr/sbin/httpd -DFOREGROUND
giu 08 20:47:43 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
giu 08 20:47:52 localhost.localdomain systemd[1]: Started The Apache HTTP Server.
giu 08 20:57:11 localhost.localdomain systemd[1]: Started The Apache HTTP Server.
Ultima modifica di ofranco (08-06-2013 20:10:12)
Allora, sulla macchina virtuale dove gira apache:
# yum install lynx
$ lynx 127.0.0.1
La filosofia è una disciplina con obiettivi, ma senza regole. La matematica è una disciplina con regole, ma senza obiettivi.
Un giorno ho incontrato un uomo che non aveva né obiettivi né regole. Studiava filosofia della matematica.
Spero che tu riesca a capirci qualcosa, queste sono solo le prime pagine.
#lynx http://127.0.0.1
[1;30r[0;10m[4l[?7h[39;49m[39;49m[0;10m[H[J[28d[0;10;1m[33m[44mAcquisizione di http://127.0.0.1/ in corso[K[39;49m[0;10m
[0;10;1m[33m[44mRicerca in corso di 127.0.0.1[K[39;49m[0;10m
[0;10;1m[33m[44mCreazione della connessione HTTP a 127.0.0.1 in corso[39;49m[0;10m
[0;10;1m[33m[44mInvio della richiesta HTTP in corso.[K[39;49m[0;10m
[0;10;1m[33m[44mRichiesta HTTP inviata; in attesa di risposta.[39;49m[0;10m
[0;10;1m[33m[41mAttenzione: HTTP/1.1 403 Forbidden[K[39;49m[0;10m[1;25H[35mTest Page for the Apache HTTP Server on Fedora (p1 of 3)[2;33H[0;10;1m[33m[44mFedora [39;49m[31mTest Page
[4G[39m[0;10mThis page is used to test the proper operation of the Apache HTTP
server after it has been installed. If you can read this page, it means
that the web server installed at this site is working properly, but has
not yet been configured.
[6G[0;10;1m[33m__________________________________________________________________
[39m[0;10mIf you are a member of the general public:
The fact that you are seeing this page indicates that the website you
just visited is either experiencing problems, or is undergoing routine
maintenance.
If you would like to let the administrators of this website know that
you've seen this page instead of the page you expected, you should send
them e-mail. In general, mail sent to the name "webmaster" and directed
to the website's domain should reach the appropriate person.
For example, if you experienced problems while visiting
www.example.com, you should send e-mail to "[email protected]".
Fedora is a distribution of Linux, a popular computer operating system.
It is commonly used by hosting companies because it is free, and
includes free web server software. Many times, they do not set up their
web server correctly, and it displays this "test page" instead of the
[0;10;1m[33m[44mTrasferimento dei dati completato[K[39;49m[0;10m
Frecce: Su/Giù per spostarsi, destra per seguire un collegamento, sinistra per[30;2HH = aiuto, O = opzioni, P = stampa, G = vai, M = pagina principale, Q = esci,
[28d[0;10;1m[33m[44m-- premere la barra spaziatrice per andare alla prossima pagina --[39;49m[0;10m
#lynx http://127.0.0.1/test.php
[1;30r[0;10m[4l[?7h[39;49m[39;49m[0;10m[H[J[28d[0;10;1m[33m[44mAcquisizione di http://127.0.0.1/test.php in corso[K[39;49m[0;10m
[0;10;1m[33m[44mRicerca in corso di 127.0.0.1[K[39;49m[0;10m
[0;10;1m[33m[44mCreazione della connessione HTTP a 127.0.0.1 in corso[39;49m[0;10m
[0;10;1m[33m[44mInvio della richiesta HTTP in corso.[K[39;49m[0;10m
[0;10;1m[33m[44mRichiesta HTTP inviata; in attesa di risposta.[39;49m[0;10m
[0;10;1m[33m[44mHTTP/1.1 200 OK[K[39;49m[0;10m[1;62H[35mphpinfo() (p1 of 3)[2;4H[33mPHP Logo
[0;10;1m[33m[44mPHP Version 5.4.15
[4G[39;49m[0;10mSystem Linux localhost.localdomain 3.9.4-200.fc18.i686 #1 SMP Fri May
24 20:35:02 UTC 2013 i686
Build Date May 9 2013 06:37:33
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
Additional .ini files parsed /etc/php.d/curl.ini, /etc/php.d/dom.ini,
/etc/php.d/fileinfo.ini, /etc/php.d/gd.ini, /etc/php.d/json.ini,
/etc/php.d/ldap.ini, /etc/php.d/mbstring.ini, /etc/php.d/mcrypt.ini,
/etc/php.d/memcache.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini,
/etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_pgsql.ini,
/etc/php.d/pdo_sqlite.ini, /etc/php.d/pgsql.ini, /etc/php.d/phar.ini,
/etc/php.d/sqlite3.ini, /etc/php.d/wddx.ini, /etc/php.d/xmlreader.ini,
/etc/php.d/xmlwriter.ini, /etc/php.d/xsl.ini, /etc/php.d/zip.ini
PHP API 20100412
PHP Extension 20100525
Zend Extension 220100525
Zend Extension Build API220100525,NTS
PHP Extension Build API20100525,NTS
Debug Build no
[1;61H[35mphpinfo() (p1 of 1
[28d[39m[0;10m[0;10;1m[33m[44mTrasferimento dei dati completato[39;49m[0;10m[1;78H[35m31
[28d[39m[0;10m
Frecce: Su/Giù per spostarsi, destra per seguire un collegamento, sinistra per[30;2HH = aiuto, O = opzioni, P = stampa, G = vai, M = pagina principale, Q = esci,
[28d[0;10;1m[33m[44m-- premere la barra spaziatrice per andare alla prossima pagina --[39;49m[0;10m[H
[0;10;1m[33mPHP Logo[30;80H[39m[0;10m
Ultima modifica di ofranco (09-06-2013 10:00:31)