Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2935 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  impossible de lancer apache sous ma gentoo

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

impossible de lancer apache sous ma gentoo

n°660867
sky99
http://www.core-tx.com
Posté le 09-04-2005 à 11:02:22  profilanswer
 

Bonjour a tous.
 
J'ai utilisé le tutoriel suivant pour installer apache sous ma gentoo
(noyeau 2.6.11 gentoo) :

Code :
  1. INSTALLATION
  2. Pour bien commencer :
  3. emerge sync
  4. USE="mysql innodb apache2" emerge mysql apache mod_php
  5. Une fois que l’install est finie, pensez à faire un etc-update
  6. CONFIGURATION
  7. Mettre à jour /etc/conf.d/apache2 en ajoutant :
  8. APACHE2_OPTS="-D PHP4"
  9. Ensuite, dans /etc/apache2/conf/commonapache2.conf, ajoutez :
  10. AddType application/x-httpd-php .php
  11. AddType application/x-httpd-php .phtml
  12. AddType application/x-httpd-php .php3
  13. AddType application/x-httpd-php .php4
  14. AddType application/x-httpd-php-source .phps
  15. J’ai modifié la ligne DirectoryIndex pour avoir la chose suivante :
  16. DirectoryIndex index.html index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm index.html.var
  17. Dans /etc/apache2/conf/mime.types, ajoutez :
  18. application/x-httpd-php php
  19. application/x-httpd-php phtml
  20. application/x-httpd-php php3
  21. application/x-httpd-php php4
  22. application/x-httpd-php-source phps
  23. Dans /etc/apache2/conf/apache2.conf, précisez :
  24. ServerName "localhost"
  25. et j’ai commenté :
  26. # LoadModule unique_id_module      modules/mod_unique_id.so
  27. Relancer apache /etc/init.d/apache2 restart et le tour est joué
  28. FIN


 
 
Seulement, quand j'essaie de lancer ou relancer apache, voici ce que me répond mon shell :
 
 

Code :
  1. bash-2.05b# /etc/init.d/apache2 start
  2. * Bringing eth0 up...
  3. adsl: Unknown host
  4. ifconfig: `--help' gives usage information.                                                     [ !! ]
  5. * Bringing eth0 up...
  6. adsl: Unknown host
  7. ifconfig: `--help' gives usage information.                                                     [ !! ]
  8. * ERROR:  Problem starting needed services.
  9. *         "netmount" was not started.
  10. * ERROR:  Problem starting needed services.
  11. *         "apache2" was not started.


 
Je ne comprends pas bien les problemes qui sont posés...
Dans le doute j'ai fait un ifconfig :
 

Code :
  1. eth0      Link encap:Ethernet  HWaddr 00:50:BA:A7:AA:83
  2.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  3.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  4.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  5.           collisions:0 txqueuelen:1000
  6.           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  7.           Interrupt:11 Base address:0xc000
  8. eth1      Link encap:Ethernet  HWaddr 00:50:8D:E5:1A:60
  9.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  10.           RX packets:3699614 errors:0 dropped:0 overruns:0 frame:0
  11.           TX packets:3698795 errors:0 dropped:0 overruns:0 carrier:0
  12.           collisions:0 txqueuelen:1000
  13.           RX bytes:2065076381 (1969.4 Mb)  TX bytes:1558830842 (1486.6 Mb)
  14.           Interrupt:10
  15. lo        Link encap:Local Loopback
  16.           inet addr:127.0.0.1  Mask:255.0.0.0
  17.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  18.           RX packets:3942 errors:0 dropped:0 overruns:0 frame:0
  19.           TX packets:3942 errors:0 dropped:0 overruns:0 carrier:0
  20.           collisions:0 txqueuelen:0
  21.           RX bytes:164767 (160.9 Kb)  TX bytes:164767 (160.9 Kb)
  22. ppp0      Link encap:Point-to-Point Protocol
  23.           inet addr:81.248.84.176  P-t-P:81.248.84.1  Mask:255.255.255.255
  24.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  25.           RX packets:1184565 errors:0 dropped:0 overruns:0 frame:0
  26.           TX packets:1297052 errors:0 dropped:0 overruns:0 carrier:0
  27.           collisions:0 txqueuelen:3
  28.           RX bytes:348153412 (332.0 Mb)  TX bytes:673392610 (642.1 Mb)
  29. vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01
  30.           inet addr:192.168.130.1  Bcast:192.168.130.255  Mask:255.255.255.0
  31.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  32.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  33.           TX packets:484 errors:0 dropped:0 overruns:0 carrier:0
  34.           collisions:0 txqueuelen:1000
  35.           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


 
Et je ne comprends toujours pas pourquoi ce probleme.
Aurriez vous une idée a ce sujet?
Merci d'avance!


---------------
http://www.core-tx.com
mood
Publicité
Posté le 09-04-2005 à 11:02:22  profilanswer
 

n°660873
Pillow
'cos the trees won't talk
Posté le 09-04-2005 à 11:16:34  profilanswer
 

eth1 est bien uppé en utilisant net.eth1? (-> rc-status)
Si oui, regarde les dépendances dans /etc/init.d/apache2.

n°661055
sky99
http://www.core-tx.com
Posté le 09-04-2005 à 20:15:05  profilanswer
 

Bonjour.
Voici le resultat d'un rc-status:

Code :
  1. bash-2.05b# rc-status
  2. Runlevel: default
  3.   local                                                                                   [ started ]
  4.   domainname                                                                              [ started ]
  5.   net.eth0                                                                                [   off   ]
  6.   netmount                                                                                [   off   ]
  7.   hotplug                                                                                 [ started ]
  8. bash-2.05b#


Donc eth1 n'y estait pas...
Ceci dit, vu que je ne me sers que d'une carte reseau (l'autre ne fonctionnant pas correctement sous la gentoo), j'en ai enlevé une  
du PC. Maintenant eth1 est devenue eth0.
J'ai reconfiguré le net, et rééssayé :  

Code :
  1. bash-2.05b# /etc/init.d/apache2 start
  2. * Bringing eth0 up...
  3. adsl: Unknown host
  4. ifconfig: `--help' gives usage information.                                                     [ !! ]
  5. * Bringing eth0 up...
  6. adsl: Unknown host
  7. ifconfig: `--help' gives usage information.                                                     [ !! ]
  8. * ERROR:  Problem starting needed services.
  9. *         "netmount" was not started.
  10. * ERROR:  Problem starting needed services.
  11. *         "apache2" was not started.


Donc meme resultat... Quelqu'un aurait il des idées?


---------------
http://www.core-tx.com
n°661075
Pillow
'cos the trees won't talk
Posté le 09-04-2005 à 20:53:01  profilanswer
 

sky99 a écrit :

J'ai reconfiguré le net, et rééssayé :

Tu t'y est mal pris. Le bonne façon de faire c'est de tout configurer et de lancer la connexion en lançant le bon net.eth*. Donc configure correctement ;) (il y a plein d'explications dans /etc/conf.d/net et dans les forums gentoo).

n°661098
sky99
http://www.core-tx.com
Posté le 09-04-2005 à 21:27:55  profilanswer
 

Bien, j'avais utilisé adsl-setup je vais donc explorer cette voie :) merci!


---------------
http://www.core-tx.com
n°661173
Grand Yack
Posté le 09-04-2005 à 23:43:24  profilanswer
 

au pire, tu peux toujours lancer apache directement avec "/usr/sbin/apache2 -D PHP5" dans ton cas plutot "/usr/sbin/apache -D PHP4"


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  impossible de lancer apache sous ma gentoo

 

Sujets relatifs
Multiples serveurs Apache sur une machine linuxlancer iscan depuis the gimp
Impossible d'installer Fedora core 3 !!ASSEZ URGENTInstall Mdk 10.2 rc2 impossible
lancer plusieurs wm avec kdm[Gentoo] Mmmmhhh... problème de graveur
Serveur apache + linuxapache bugzilla problème de localisation fr
Gentoo, Debian ou Slackware pour vieux portable? -> Damn Small Linuxprobleme URL sous apache
Plus de sujets relatifs à : impossible de lancer apache sous ma gentoo


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR