Pagina 1 di 1

Problemi con Apache e php4

Inviato: sab 18 feb 2006, 16:35
da giaste
Cari amici , ho una slack 10.2 con kernel 2.6.15.1
ho installato dai sorgenti una apache 1.3.34
e un php 4.4.1
ma ho dei problemi con il file httpd.conf di apache
per primo non trovo i la sezione AddModule e poi lanciando il server mi da il seguente errore

Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration
./apachectl start: httpd could not be started

chiaramente non riconosce il comando LoadModule ... cosa mi suggerite??
Grazie
Giaste

Inviato: sab 18 feb 2006, 16:45
da ZeroByte
Scusa, ma che significa che non trovi la gestione AddModule? Nel file httpd.conf di esempio di Apache dovresti avere una sezione pressapoco come questa:

Codice: Seleziona tutto

 #
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Please read the file http://httpd.apache.org/docs/dso.html for more
# details about the DSO mechanism and run `httpd -l' for the list of already
# built-in (statically linked and thus always available) modules in your httpd
# binary.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# Example:
# LoadModule foo_module libexec/mod_foo.so
LoadModule vhost_alias_module libexec/apache/mod_vhost_alias.so
LoadModule env_module         libexec/apache/mod_env.so
LoadModule define_module      libexec/apache/mod_define.so
LoadModule config_log_module  libexec/apache/mod_log_config.so
LoadModule mime_magic_module  libexec/apache/mod_mime_magic.so
LoadModule mime_module        libexec/apache/mod_mime.so
.................... 
e un'altra come questa:

Codice: Seleziona tutto

 #  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#  [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_define.c
AddModule mod_log_config.c
AddModule mod_mime_magic.c
........................
Se poi hai bisogno di php, devi decommentare la linea:

Codice: Seleziona tutto

 Include /etc/apache/mod_php.conf 
Cerca di essere un po' più chiaro.

ZeroByte