munk.me.uk forum
May 21, 2012, 05:39:11 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Installing simpleauth on MS Windows  (Read 3038 times)
munk
Administrator
Sr. Member
*****

Karma: +2/-0
Offline Offline

Posts: 368


View Profile WWW
« on: April 03, 2003, 05:27:29 pm »

Installing Apache, MySQL and PHP for Windows (WAMP) and SimpleAuth
This is an article intended for users who wish to install WAMP (Apache, MySQL and PHP for Windows) and get simpleauth running on this setup.

Please follow the instructions very carefully and do not deviate from them.  Once you have a basic setup running you can then go back and change various options.


Downloading and Installing WAMP
Download the Firedevpages WAMP package from here:
http://www.firepages.com.au/phpdev41.htm

Notes:
At the time of writing the latest stable release is phpdev423 and can be downloaded here:
http://prdownloads.sourceforge.net/phpdev5...5/phpdev423.exe

Run the executable phpdev423.exe.

When prompted, install to:
C:\phpdev

Execute:
C:\phpdevK-NT-XP-phpdev_start.bat
(this will start the Apache webserver and pop up a web browser loading http://localhost)

Notes:
For Windows 9x users, execute C:\phpdev-ME-phpdev_start.bat.
YOU DO NOT NEED TO DO ANYTHING ELSE AT THIS STAGE!!!  WAMP is installed and ready to go - please do not change anything at this stage, as tempting as it is to investigate and play, please just follow these instructions Smiley


Downloading and Installing SimpleAuth
Download the simpleauth package from here:
http://simpleauth.munk.nu/download/simplea...auth-1.2.tar.gz

Extract the files from the simplauth-1.2.tar.gz package into:

C:\phpdev\www\

Notes:
All the files should be extracted into a 'simpleauth' subdirectory, c:\phpdev\www\simpleauth.


Creating a 'simpleauth' database and creating a 'users' table
Open this URL:
http://localhost/phpmyadmin/
in your web browser.

In the textbox under the text: 'Create new database', enter 'simpleauth' to create the 'simpleauth' db.

Notes:
On success you will be forwarded to a page where you can enter tables into the db.


Click on the 'SQL' link on the next page to enter the SQL data into the 'simpleauth' db.

Enter 'C:\phpdev\www\simpleauth\users.sql' in the 'Or Location of the textfile :' text-box and click the 'Go'button.

Notes:
This will use the SQL in the file 'C:\phpdev\www\simpleauth\users.sql' to create the table data in the 'simpleauth' db.  If all goes well you should see 'Your SQL-query has been executed successfully'.


Configuring SimpleAuth
Open the file: C:\phpdev\www\simpleauth\config.php in a text editor.

Change the following lines so they read:

Code:
$dbhost="localhost";
$dbuser="root";
$dbpass="";
$dbname="simpleauth";

Note: do NOT leave your mysql db without a password; once you've confirmed the setup works with the above, follow the advise that phpmyadmin gives you regarding changing your root password

Testing the SimpleAuth installation
Open http://localhost/simpleauth/.

Click on the 'join' link: http://localhost/simpleauth/join.php

Add a test user by entering 'test' in each of the fields.

Click on the 'Submit' button - you will be forwarded to the members page:

Welcome to the members page test
Your password is: test
Logout


Congratulations
If you got this far without problems you now have simpleauth up and running on your windows machine!
« Last Edit: January 19, 2007, 03:16:27 am by munk » Logged

~ Jez
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!