Service httpd: service non reconnu
Goro
-
goro -
goro -
Bonjour,
Bien, bah... tout est dans le titre!
Un peu plus de détails:
Je travaille en ce moment sur la mise en place d'un serveur type ORACLE (xe 10g) - Apache (2.2.11) - Php 5.2.9.
j'ai commencé par installer oracle, sans trop de soucis,
puis apache apparemment sans soucis puisque quand je lance http://localhost/ j'ai une page, non pas type apache, mais avec écris "It works" (si je stop apache, je n'ai plus cette page...):
./configure --prefix=/usr/local/apache --enable-module=so
make
make install
enfin j'ai installé php
./configure --with-apxs2=/usr/sbin/apxs --with-oci8=$ORACLE_HOME --enable-sigchild
make
make install
Voila pour les installs
J'ai copié le fichier php.ini_recommended dans /usr/local/lib/php.ini
Puis j'ai édité le fichier httpd.conf de cette manière:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
J'ai ensuite créé une petite page php de base
<?php phpinfo(); ?>
Je fais un service httpd restart (en root évidemment) et la "service httpd: service non reconnu"
Soucis qui en découle : http://localhost/info.php retourne "NOT FOUND the requested URL /info.php was not found on this server"
Quelqu'un pourrait m'aider?
D'avance merci
Bien, bah... tout est dans le titre!
Un peu plus de détails:
Je travaille en ce moment sur la mise en place d'un serveur type ORACLE (xe 10g) - Apache (2.2.11) - Php 5.2.9.
j'ai commencé par installer oracle, sans trop de soucis,
puis apache apparemment sans soucis puisque quand je lance http://localhost/ j'ai une page, non pas type apache, mais avec écris "It works" (si je stop apache, je n'ai plus cette page...):
./configure --prefix=/usr/local/apache --enable-module=so
make
make install
enfin j'ai installé php
./configure --with-apxs2=/usr/sbin/apxs --with-oci8=$ORACLE_HOME --enable-sigchild
make
make install
Voila pour les installs
J'ai copié le fichier php.ini_recommended dans /usr/local/lib/php.ini
Puis j'ai édité le fichier httpd.conf de cette manière:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
J'ai ensuite créé une petite page php de base
<?php phpinfo(); ?>
Je fais un service httpd restart (en root évidemment) et la "service httpd: service non reconnu"
Soucis qui en découle : http://localhost/info.php retourne "NOT FOUND the requested URL /info.php was not found on this server"
Quelqu'un pourrait m'aider?
D'avance merci
A voir également:
- Service httpd: service non reconnu
- Service spouleur - Guide
- .Net runtime optimization service ✓ - Forum Windows 8 / 8.1
- Numéro service client orange - Guide
- Ssc service utility - Forum Logiciels
- Windows 7 service pack 3 download 64 bit - Forum Windows 7
7 réponses
sur ma suse j'ai bien le gichier de config httpd.conf, mais pas apache2.conf.
Alors que mon service s'appelle apache2 .... test ce qu'a dit antoine
Alors que mon service s'appelle apache2 .... test ce qu'a dit antoine
Bonjour, et merci a vous deux de m'aider a trouver une solution
Après avoir fait ce que vous m'avez dis, j'ai constaté que le demon s'appelé bien httpd....
J'ai donc décidé de réinstaller apache:
./configure --prefix=/usr/local/apache2 --enable-module=so /*j'ai changé de dossier pour l'apeler apache2, plus cohérent! */
make
make install
et php:
# export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-oci8=$ORACLE_HOME \
--enable-sigchild
cp php.ini-recommended /usr/local/apache2/conf/php.ini
j'ai édité le fichier httpd.conf:
j'ai ajouté les 3 Addtype apllication/x-httpd-php
et
LoadModule php5_module modules/libphp5.so
Voici maintenant le message d'erreur:
Démarrage de httpd : httpd: Syntax error on line 203 of /etc/httpd/conf/httpd.conf: Cannot load /modules/libphp5.so into server: /modules/libphp5.so: cannot open shared object file: No such file or directory
Une idée?
Sachant que libphp5 se trouve dans:
./usr/local/php5/.libs/libphp5.so
./usr/local/php5/libs/libphp5.so
./usr/local/apache2/modules/libphp5.so
D'avance merci
Après avoir fait ce que vous m'avez dis, j'ai constaté que le demon s'appelé bien httpd....
J'ai donc décidé de réinstaller apache:
./configure --prefix=/usr/local/apache2 --enable-module=so /*j'ai changé de dossier pour l'apeler apache2, plus cohérent! */
make
make install
et php:
# export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-oci8=$ORACLE_HOME \
--enable-sigchild
cp php.ini-recommended /usr/local/apache2/conf/php.ini
j'ai édité le fichier httpd.conf:
j'ai ajouté les 3 Addtype apllication/x-httpd-php
et
LoadModule php5_module modules/libphp5.so
Voici maintenant le message d'erreur:
Démarrage de httpd : httpd: Syntax error on line 203 of /etc/httpd/conf/httpd.conf: Cannot load /modules/libphp5.so into server: /modules/libphp5.so: cannot open shared object file: No such file or directory
Une idée?
Sachant que libphp5 se trouve dans:
./usr/local/php5/.libs/libphp5.so
./usr/local/php5/libs/libphp5.so
./usr/local/apache2/modules/libphp5.so
D'avance merci
bonjour,
httpd: Syntax error on line 203 of /etc/httpd/conf/httpd.conf
il faut regarder dans le fichier autour de la ligne 203 ...
httpd: Syntax error on line 203 of /etc/httpd/conf/httpd.conf
il faut regarder dans le fichier autour de la ligne 203 ...
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
bah, mes compétences dans ce domaine sont complètement nulles !
mais il y a google ...
autre piste :
https://www.linuxquestions.org/questions/linux-networking-3/starting-httpd-httpd-syntax-error-on-line-209-of-etc-httpd-conf-httpd-conf-syntax-606453/
mais il y a google ...
autre piste :
https://www.linuxquestions.org/questions/linux-networking-3/starting-httpd-httpd-syntax-error-on-line-209-of-etc-httpd-conf-httpd-conf-syntax-606453/