Post Reply  Post Thread 
Mod_auth_mysql Installation
Author Message
Nilesh
Super Moderator
******


Posts: 42
Group: Super Moderators
Joined: Jul 2007
Status: Offline
Reputation: 0
Thank 0
0 was given thank in 0 posts
Post: #1
Mod_auth_mysql Installation

Following are the step to install mod_auth_mysql for apache.

Download mod_auth_mysql-2.9.0.tar.gz
wget
http://downloads.sourceforge.net/modauth...g_mirror=0

Then move the downloaded file to

Quote:
mv /usr/local/srcmv mod_auth_mysql-2.9.0.tar.tar /usr/local/src/mod_auth_mysql-2.9.0.tar.tar


Extract the files contents

Quote:
tar xvzf mod_auth_mysql-2.9.0.tar.tarcd mod_auth_mysql-2.9.0.tar.tar


Now we’ll build the module file.

Quote:
/usr/local/apache/bin/apxs -c -lmysqlclient -lm -lz -I /usr/include/mysql/ mod_auth_mysql.c


After building the module we will install it.

Quote:
/usr/local/apache/bin/apxs -i mod_auth_mysql.so


Open up httpd.conf pico /usr/local/apache/conf/httpd.confSearch for the .so files and add this below them.ctrl + w add the following line

Quote:
LoadModule mysql_auth_module libexec/mod_auth_mysql.so


We need to add a second line to the httpd.conf so lets do another search.Search for the AddModule files and add this below them.ctrl + wadd the follwing second line

Quote:
AddModule mod_auth_mysql.c


Restart Apache server

Quote:
/etc/init.d/httpd restart


You can see your new module in phpinfo(); pages, in the apache heading, you should see.

Quote:
Loaded Modules mod_auth_mysql


Add following in .htaccess in which folder you need to protect.

Quote:
AuthMySQLEnable on
AuthName "Boys-Smoking.com Member Area"
AuthType Basic
AuthMySQLHost localhost
AuthMySQLDB boyssmok_boysmoking
AuthMySQLUser boyssmok_boysmok
AuthMySQLPassword boysmoking@xxx
AuthMySQLUserTable mysql_auth
AuthMySQLNameField username
AuthMySQLPasswordField passwd
AuthMySQLGroupField status
AuthMySQLNoPasswd On
AuthMySQLPwEncryption md5
require valid-user


~~~ Cool Buddy ~~~

ADD TO DEL.ICIO.US  ADD TO DIGG  ADD TO FURL  ADD TO NEWSVINE  ADD TO NETSCAPE 
ADD TO TECHNORATI FAVORITES  Technorati ADD TO SQUIDOO  ADD TO WINDOWS LIVE  ADD TO YAHOO MYWEB  ADD TO ASK 
ADD TO REDDIT  ADD TO STUMBLEUPON  ADD TO GOOGLE   

This post was last modified: 07-15-2007 10:28 AM by Nilesh.

07-15-2007 10:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Mod_Security installation Nilesh 0 380 07-15-2007 10:41 AM
Last Post: Nilesh
  Mod_python Installation Nilesh 0 308 07-15-2007 10:38 AM
Last Post: Nilesh
  Mod_evasive Installation Nilesh 0 310 07-15-2007 10:32 AM
Last Post: Nilesh
  mod_bandwidth Installation Nilesh 0 319 07-15-2007 10:30 AM
Last Post: Nilesh

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: