Sponsored Content
Top Forums Web Development not able to build mod_auth_mysql.c on solaris10 sparc with apache 1.3.34 and mysql 5.1.50 Post 302449271 by cnighojkar on Monday 30th of August 2010 08:27:24 AM
Old 08-30-2010
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

1. Downloaded mod_auth_mysql-3.0.0 from mod_auth_mysql | Download mod_auth_mysql software for free at SourceForge.net
2. extracted the file
3. copied mod_auth_mysql.c to /usr/local/apache/bin
4. sudo ./apxs -c -L/d00/tbls/mysql/lib -I/d00/tbls/mysql/include -lmysqlclient -lm -lz mod_auth_mysql.c
5. sudo ./apxs -i mod_auth_mysql.so
6. Added following lines to httpd.conf
LoadModule libexec/mod_auth_mysql.so
AddModule mod_auth_mysql.c
7. myptc database is created with User table and inserted some data into User table.
8. 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>
9. Stop Apache ./apachectl stop -----no error
10. 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 ,,,,
 

8 More Discussions You Might Find Interesting

1. Programming

C compiler to build Sparc/Solaris binaries on Linux

Just that the Subject says. I am looking for a C compiler for Linux x86 that will allow me to compile a C source code file and the resulting binary will be able to run on a Sparc running Solaris. Thanks. (2 Replies)
Discussion started by: lyonsd
2 Replies

2. Solaris

solaris 10 apache 2.2.4 64 bit build error

I am trying to build 64 bit apache 2.2.4 on a Sun server. I have built many applications so far. This is my configure line CC='gcc -m64 -mcpu=v9 -O3' ./configure --disable-ipv6 --enable-info --enable-status --enable-ssl --with-ssl=/usr/local/ssl --disable-negotiation --disable-userdir ... (2 Replies)
Discussion started by: csross
2 Replies

3. Solaris

Apache on Solaris10 configured with loadable module support?

I have Apache 2 webserver as delivered with the Solaris 10 installation. How to verify if Apache is configured with loadable module support? Or if needs to be recompiled with loadable module support. (2 Replies)
Discussion started by: kavera
2 Replies

4. Solaris

How do I run OpenWindows on a Solaris10 Sparc system?

How do I run OpenWindows on a Solaris10 Sparc system? I know it has been discontinued, but I have some applications that only run on OpenWin. And I would like to run Solaris10 instead of Solaris8, hence the problem. Can I download, install and run it with Solaris10? Thanks, Mike (5 Replies)
Discussion started by: mndavies
5 Replies

5. Solaris

how can t recover a crashed Solaris10 on Sparc

Hi all, currently i'm running solaris 10 on Sun Fire v880 i crashed the system by mistake and now the system cannot boot It gets keep showing error messages on the eprom prompt is there any steps or procedures can i follow to recover the system to it's previous state thanks in advance (8 Replies)
Discussion started by: h@foorsa.biz
8 Replies

6. Solaris

Solaris10 sparc T5120 PANIC during iscsi command

Any idea why this Panic happened? Solaris10 Sparc T5120 panic during iscsi command, here is the panic log in the message : Mar 19 04:40:47 xavi-t5120c-solaris10u9-sparc genunix: /scsi_vhci/ssd@g00173800fdff0004 (ssd60) offline Mar 19 04:40:47 xavi-t5120c-solaris10u9-sparc genunix: ... (4 Replies)
Discussion started by: shaybery
4 Replies

7. Solaris

Solaris10 sparc nslookup error

Hi Experts, While trying to query nameserver using nslookup it is giving following error. root@prod # nslookup 10.1.61.21 ** server can't find 26.61.1.10.in-addr.arpa.: NXDOMAIN root@prod # (1) /etc/hosts 10.1.61.2 prod (2)I also added domain and namservers accordingly in... (6 Replies)
Discussion started by: sai_2507
6 Replies

8. Solaris

Build the apache binary centrally.

Hi, Generally we will run to install, configure apache 2.x on Solaris machine, but dont want to follow these on the remaining machines. I want to build the apache binary centrally, so that i can untar the tar file on remaining machines. Please suggest on how to prepare this file and when i... (12 Replies)
Discussion started by: prash358
12 Replies
apache(1M)						  System Administration Commands						apache(1M)

NAME
apache - Apache hypertext transfer protocol server overview DESCRIPTION
apache consists of a main server daemon, loadable server modules, some additional support utilities, configuration files, and documenta- tion. FILES
The apache HTTPD server is integrated with Solaris. The following files specify the installation locations for apache: /etc/apache Contains server configuration files. A newly-installed server must be manually configured before use. Typically this involves copying httpd.conf-example to the httpd.conf file and making local configuration adjustments. /usr/apache/bin Contains the httpd executable as well as other utility programs. /usr/apache/htdocs Contains the Apache manual in HTML format. This documentation is accessible by way of a link on the server test page that gets installed upon fresh installation. /usr/apache/include Contains the Apache header files, which are needed for building various optional server extensions with apxs(8) /usr/apache/jserv Contains documention for the mod_jserv java servlet module. Documention can be read with a web browser using the url: file:/usr/apache/jserv/docs/index.html /usr/apache/libexec Contains loadable modules (DSOs) supplied with the server. Any modules which are added using apxs(8)are also copied into this directory. /usr/apache/man Contains man pages for the server, utility programs, and mod_perl. Add this directory to your MANPATH to read the Apache man pages. See NOTES. /usr/apache/perl5 Contains the modules and library files used by the mod_perl extension to Apache. /var/apache/cgi-bin Default location for the CGI scripts. This can be changed by altering the httpd.conf file and restarting the server. /var/apache/htdocs Default document root. This can be changed by altering the httpd.conf file and restarting the server. /var/apache/icons Icons used by the server. This normally shouldn't need to be changed. /var/apache/logs Contains server log files. The formats, names, and locations of the files in this directory can be altered by various configuration directives in the httpd.conf file. /var/apache/proxy Directory used to cache pages if the caching feature of mod_proxy is enabled in the httpd.conf file. The location of the cache can also be changed by changing the proxy configuration in the httpd.conf file. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWapchr | +-----------------------------+-----------------------------+ | |SUNWapchu | +-----------------------------+-----------------------------+ | |SUNWapchd | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) http://www.apache.org NOTES
In addition to the documentation and man pages included with Solaris, more information is available at http://www.apache.org The Apache man pages are provided with the programming modules. To view the manual pages for the Apache modules with the man command, add /usr/apache/man to the MANPATH environment variable. See man(1) for more information. Running catman(1M) on the Apache manual pages is not supported. SunOS 5.11 8 Aug 2000 apache(1M)
All times are GMT -4. The time now is 09:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy