Or A noob's guide to pass the Wietingen test.
For Windows, but works for others as well (with a few minor changes, mainly the paths)
- Download
- Extract in C:\Apache24
- Go to C:\Apache24\bin
- Install Apache as a service
httpd.exe -k install
(Run as admin) - Open
ApacheMonitor.exe
- Download
- Extract in C:\Apache24\php
- Download
- Run and install the
Server Only
package - Keep all the settings on default and set the root user's password to something you can remember (like:
password
)
In ./config/httpd.conf
- Add
LoadModule php5_module php/php5apache2_4.dll
- Add
AddType application/x-httpd-php .php
at the bottom of<IfModule mime_module>
- Add
PHPIniDir "c:\Apache24\php"
to the bottom of the file
- Copy
php.ini-production
and rename tophp.ini
- Set the
doc_root =
line todoc_root = c:\apache24\htdocs
in the newly created php.ini - Uncomment the
; extension_dir = "ext"
line, and change it toextension_dir = "C:\Apache24\php\ext"
or wherever you installed PHP, make sure the path is absolute! - Enable
extension=php_pdo_mysql.dll
,extension=php_mysqli
andextension=php_mbstring.dll
(by removing the;
at the start of the line) - You should now be able to start the Apache service throught ApacheMonitor
- Make a
phpinfo.php
in your htdocs folder and paste<?php phpinfo() ?>
in it - Go to
http://localhost/phpinfo.php
, there should be a long list with info. If you see just a blank page with the code we pasted in it then your PHP is not working. Read the above stuff again and fix it before continuing past this point
- Download
- Extract in
./htdocs/phpmyadmin/
- In the folder
./htdocs/phpmyadmin/
renameconfig.sample.inc.php
toconfig.inc.php
and change thecfg['blowfish_secret'] = ''
tocfg['blowfish_secret'] = 'thisismysecret,thishastobeprettylongsojusttypesomerandomcrap'
- Go to
http://localhost/phpmyadmin/index.php
and log in with your username and password (if you see a white page then something isn't working right. Check your apache2/logs and google the errors you see)
Check the log in C:\Apache24\logs\error.log
if something isn't working.