[NBLUG/talk] Almost ther but...

ME dugan at passwall.com
Sun Jul 6 15:45:01 PDT 2003


Todd Cary said:
> Due to the switching from the diistributed  installed Apache to
> apache-1.3.2, there are some challenges for me.  Here is the result of
> trying to start Apache:

If you built an apache web server from source, I would suggest getting a
version later than 1.3.2. Apache version 1.3.27 is available and has fixes
for several vulnerabilities.

http://httpd.apache.org/download.cgi

> Processing config directory: /etc/httpd/conf.d/*.conf
>
>  Processing config file: /etc/httpd/conf.d/auth_mysql.conf
>
> Syntax error on line 6 of /etc/httpd/conf.d/auth_mysql.conf:
>
> Cannot load /etc/httpd/modules/mod_auth_mysql.so into server:
> /etc/httpd/modules/mod_auth_mysql.so: cannot open shared object file: No
> such file or directory
>
> And here are the results of "httpd -l":
>
> Compiled-in modules:
>   http_core.c
>   mod_so.c
> suexec: disabled; invalid wrapper /usr/src/local/apache/bin/suexec
>
> I did not specify MySQL in the ./configure of PHP.  Is that the
> problem?  I thought that MySQL was already part of PHP.

This is an apache issue, not a php issue. It looks like this apache web
server does not have much enabled in the way of modules.

As suggested by another member, The Linux Documentation Project (tldp) has
many documents that can help you. ( http://www.tldp.oprg/ )

For example, there is a "how-to" for building an apache web server:

http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Apache-Compile-HOWTO.html

This is a good read, and will help you to enable the modules you might want.

The short answer for the above.
"mod_auth_mysql" is a module that is available for apache that permits an
admit to store user authentication credentials in a mysql database. You
probably do not need this and can comment out that entry on line 6 of your
httpd.conf.

NOTE: since this error came up, and I do not see many modules enabled in
your present httpd (based on the output) you probably have several other
modules listed in your httpd.conf as "to be enabled" that your web server
does not have compiled into it.

This is another example (using the robot analogy) of your config file
asking the built web server to "enable this option" (activate robot arm)
but the web server that was built does not have that option to enable (the
robot that was built does not have an arm to activate.)

If you built apache from source, then you should note that the apache
source tree has its own "./configure" for choosing what modules to enable.
To see what you can enable for apache:
# cd /usr/local/src/apache-1.3.27
# ./configure --help |less

The how-to will cover much on building apache.

> Making progress, but still trying to get use to Linux and the error
> messages....

This is a case where installation of a custom php has led to a need to
build a custom web server. You can get beyond this too.

The web server is more complicated than mod_php, and because of this I
strongly suggest checking out the howto for the web server.

-ME




More information about the talk mailing list