Installing Apache, MySQL and PHP for Windows (WAMP) and SimpleAuthThis 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 WAMPDownload the Firedevpages WAMP package from here:
http://www.firepages.com.au/phpdev41.htmNotes:At the time of writing the latest stable release is phpdev423 and can be downloaded here:
http://prdownloads.sourceforge.net/phpdev5...5/phpdev423.exeRun 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
Downloading and Installing SimpleAuthDownload the simpleauth package from here:
http://simpleauth.munk.nu/download/simplea...auth-1.2.tar.gzExtract 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' tableOpen 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 SimpleAuthOpen the file: C:\phpdev\www\simpleauth\config.php in a text editor.
Change the following lines so they read:
$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 passwordTesting the SimpleAuth installationOpen
http://localhost/simpleauth/.
Click on the 'join' link:
http://localhost/simpleauth/join.phpAdd 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
CongratulationsIf you got this far without problems you now have simpleauth up and running on your windows machine!