Forum Moderators: phranque
This line is:
# Example:
# LoadModule foo_module libexec/mod_foo.so
205 - LoadModule vhost_alias_module libexec/mod_vhost_alias.so
But the module is inside the path /usr/local/apache/libexec/ .
What i do?
I run httpd -l and:
Compiled-in modules:
http_core.c
mod_so.c
mod_bandwidth.c
mod_gzip.c
1) the 'httpd' binary you're using to run 'httpd -l' is not the one being called when you start apache, and the one being called when you start apache doesn't have mod_so.c compiled into it
2) (theory, untested) You've configured apache with ClearModuleList, but haven't used the AddModule directive to re-populate the module list
IIRC, the default httpd.conf has LoadModule directives for the modules, followed by some comments, followed by ClearModuleList, followed by AddModule directives corresponding to each of the LoadModule directives just above it. If you commented out all the AddModule directives, but failed to comment out the ClearModuleList directive as well, that could be the cause.
I'd suggest reading the documentation for:
ClearModuleList: [httpd.apache.org ]
LoadModule: [httpd.apache.org ]
AddModule: [httpd.apache.org ]
The mod_so.c not is compiled. As i can recompile it? and if possible too mod_rewrite ...
Thanks
But now the error change:
API module structure `env_module' in file /usr/local/apache/libexec/mod_env.so is garbled - perhaps this is not an Apache module DSO?
I think that mods in list not can to be in LoadModule in httpd.conf.It proceeds?
Sorry for very questions, but i'm not specialist in Apache...
I need of the Apache and PHP works mod_rewrite.
With PHP
./configure --with-mysql --with-apache=../apache_1.3.31
in apache
./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
cp php.ini-dist /usr/local/lib/php.ini
And add httpd.conf
#
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
AddType application/x-tar .tgz
AddType application/x-httpd-php .php
Donīt work... What i do?
HELPPPPP
APACHE
./configure --prefix=/usr/local/apache --enable-shared=max --enable-module=most --enable-module=so
make
make install
PHP(4.3.8)
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
make
ERROR-------> /zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo
Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo
Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo
Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo
Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/apache/sapi_apache.lo
sapi/apache/mod_php4.lo sapi/apache/php_apache.lo main/internal_functions.lo -lcrypt
-lcrypt -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o libphp4.la
ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1
--------------------------------------------------------------------------------------------
Second Config (MANUAL)
./configure --prefix=/usr/local/apache --enable-module=so
make
make install
PHP(4.3.8)
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
make
-lcrypt -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o libphp4.la
ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1