Hello ,
I have s Solaris 10 10/09 s10x_u8wos_08a X86 OS.
I installed Apache 1.3.34 and MYSQL 5.1.50.
while executing the following command to compile the mod_auth_mysql.c module
sudo ./apxs -c -L/d00/tbls/mysql/lib -I/d00/tbls/mysql/include -lmysqlclient -lm -lz mod_auth_mysql.c.
result of it mod_auth_mysql.so and mod_auth_mysql.ofiles are getting created
but with message
"gcc -DSOLARIS2=2100 -DUSE_HSREGEX -L/usr/local/lib -R/usr/local/lib -L/usr/local /ssl/lib -R/usr/local/ssl/lib -L/usr/openwin/lib -R/usr/openwin/lib -fPIC -DSHAR ED_MODULE -I/usr/local/apache/include -I/d00/tbls/mysql/include -c mod_auth_mys ql.c
mod_auth_mysql.c: In function `pw_crypted':
mod_auth_mysql.c:826: warning: passing arg 2 of `strcmp' makes pointer from integer without a cast
ld -G -o mod_auth_mysql.so mod_auth_mysql.o -L/d00/tbls/mysql/lib -lmysqlclient -lm -lz"
when i check the list of available compiled-in modules with command
./httpd -l it shows
Compiled-in modules:
http_core.c
mod_so.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
mod-auth_mysql module is not get compiled .
Please help me.
Chetan ,
httpd -l does not list shared modules. Check with httpd -M
Hello ,
Thanks for the reply.
When i trieed to use ./httpd -M it gives me this
./httpd -M
./httpd: illegal option -- M
Usage: ./httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-v] [-V] [-h] [-l] [-L] [-S] [-t] [-T] [-F]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled-in modules
-L : list available configuration directives
-S : show parsed settings (currently only vhost settings)
-t : run syntax check for config files (with docroot check)
-T : run syntax check for config files (without docroot check)
-F : run main process in foreground, for process supervisors
I also tried with small m i.e ./httpd -m , same result.
---------- Post updated at 07:27 AM ---------- Previous update was at 01:15 AM ----------
Doing following steps for mod_auth_mysql to work on Solaris 10 sparc with
Apache 1.3.34 and Mysql 5.1.50
- Downloaded mod_auth_mysql-3.0.0 from mod_auth_mysql | Download mod_auth_mysql software for free at SourceForge.net
- extracted the file
- copied mod_auth_mysql.c to /usr/local/apache/bin
- sudo ./apxs -c -L/d00/tbls/mysql/lib -I/d00/tbls/mysql/include -lmysqlclient -lm -lz mod_auth_mysql.c
- sudo ./apxs -i mod_auth_mysql.so
- Added following lines to httpd.conf
LoadModule libexec/mod_auth_mysql.so
AddModule mod_auth_mysql.c
- myptc database is created with User table and inserted some data into User table.
- Added following lines to httpd.conf
<Directory "/opt/tbls/ptc/htdocs">
AuthName MySQLAuth
AuthType Basic
AuthMySQLDB myptc
AuthMySQLUser root
AuthMySQLEnable On
AuthMySQLUserTable User
AuthMySQLNameField uname
AuthMySQLPasswordField passwd
require valid-user
Options FollowSymLinks
</Directory>
- Stop Apache ./apachectl stop -----no error
- start apache ./apachectl start
Syntax error on line 145 of /usr/local/apache/conf/httpd.conf:
Invalid command 'AuthMySQLDB', perhaps mis-spelled or defined by a module not in cluded in the server configuration
./apachectl start: httpd could not be started
Please help ,,,,