[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: phpmyadmin et/ou php5 ne s'installent pas



Le Monday 14 December 2009 15:41:27 steve, vous avez écrit :
> Le 14-12-2009, à 15:35:00 +0100, Alain Vaugham (alain@vaugham.com) a écrit :
> > > > # /etc/init.d/apache2 start
> > > > Starting web server: apache2apache2: Syntax error on line 185
> > >
> > > Qu'y a-t-il  à cette ligne 185 ?
> >
> > Ceci :
> > # Include module configuration:
> > Include /etc/apache2/mods-enabled/*.load
> > Include /etc/apache2/mods-enabled/*.conf
>
> Et juste avant ?

Cela :
#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog /var/log/apache2/error.log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf




>
> > > > of /etc/apache2/apache2.conf: Syntax error on line 1
>
> Et cette erreur-ci ?

Je pense qu'il ne s'agit pas de la ligne 1 de /etc/apache/apache2.conf car les 
trente premières lignes sont commentées ou vides.
Moi j'ai interprété ce message comme se rapportant à la ligne 1 de :
# cat /etc/apache2/mods-enabled/php5.load
LoadModule php5_module/usr/lib/apache2/modules/libphp5.so


>
> > > > of /etc/apache2/mods-enabled/php5.load: LoadModule takes two
> > > > arguments, a module name and the name of a shared object file to load
> > > > it from failed!
>
> Il donne toujours cette erreur ?

Oui, cette erreur persiste après que j'ai créé à la main les deux fichiers 
php5.load et php5.conf dans /etc/apache2/mods-available/
ainsi que leur liens dans /etc/apache2/mods-enabled/
puis re-testé : a2enmod php5 (Module php5 already enabled)
puis stoppé et "starté" apache
Le message en entier est :
# /etc/init.d/apache2 start
Starting web server: apache2apache2: Syntax error on line 185 
of /etc/apache2/apache2.conf: Syntax error on line 1 
of /etc/apache2/mods-enabled/php5.load: LoadModule takes two arguments, a 
module name and the name of a shared object file to load it from
 failed!



>
> > > Chez moi :
> > >
> > > cat php5.conf
> > > <IfModule mod_php5.c>
> > >   AddType application/x-httpd-php .php .phtml .php3
> > >   AddType application/x-httpd-php-source .phps
> > > </IfModule>
> >
> > Pareil chez moi.
>
> Bon.
>
> > > cat php5.load
> > > LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
> >
> > Pareil chez moi et libphp5.so est bien là.
>
> bon.
>
> > > > Voici les deux lignes en question dans /etc/apache2/apache2.conf :
> > > > # Include module configuration:
> > > > Include /etc/apache2/mods-enabled/*.load
> > > > Include /etc/apache2/mods-enabled/*.conf
> > > >
> > > > Rien ne me semble anormal.
> > >
> > > Non en effet, l'erreur se trouve plus haut.
> >
> > Je ne la voit toujours pas et j'ai bien :
> >
> > # ls -al /etc/apache2/mods-enabled/php5*
> > lrwxrwxrwx 1 root root 27 déc 14
> > 15:12 /etc/apache2/mods-enabled/php5.conf -> ../mods-available/php5.conf
> > lrwxrwxrwx 1 root root 27 déc 14
> > 15:12 /etc/apache2/mods-enabled/php5.load -> ../mods-available/php5.load
>
> C'est zarbi ton truc. Et si tu mets le LogLevel à debug et que tu
> recharges apache2, il te dit quoi ?

Dans le /etc/apache2/apache2.conf j'ai mis :
#LogLevel warn
LogLevel debug

puis :
# /etc/init.d/apache2 stop
Stopping web server: apache2.
# /etc/init.d/apache2 start
Starting web server: apache2apache2: Syntax error on line 186 
of /etc/apache2/apache2.conf: Syntax error on line 1 
of /etc/apache2/mods-enabled/php5.load: LoadModule takes two arguments, a 
module name and the name of a shared object file to load it from
 failed!

Cela me semble cohérent qu'il décale la découverte d'une erreur d'une ligne.



>
> Et si tu fais
>
> # apache2ctl configtest
>
> il te sort quoi ?


Il me sort la même chose :
# apache2ctl configtest
apache2: Syntax error on line 186 of /etc/apache2/apache2.conf: Syntax error 
on line 1 of /etc/apache2/mods-enabled/php5.load: LoadModule takes two 
arguments, a module name and the name of a shared object file to load it from


Le problème est concentré sur php5.load



-- 
Alain Vaugham
Clef GPG : 0xD26D18BC


Reply to: