Apache Web Server,MySQL database,PHP Framework on Windows
Download and Install WAMP server from here
PHP is the best server side scripting framework and language.
Install it leaving all values default<eg. it installs in C:\wamp,project directory to keep .php files c:\wamp\www\>
Before starting to write php pages some configurations is to be done.
Configue PHP:
open php.ini<left click on tray icon,PHP> goto line 353 put a semicolon infront i.e comment it out,and write a new line below as: error_reporting=E_ALL
this is done to let us know all the errors that might occur in page development.
Configue MySQL:
open phpMyAdmin<left click on tray icon>:
It will give an error page,do the following to configure users and passwords
in the path C:\wamp\apps\phpmyadmin2.10.1 create a folder config
now in the browser,type http://localhost/phpmyadmin/scripts/setup.php
In the Servers press Add,in the new page User for config auth ::root
Password for config auth::yourpassword
press Add,now pess Save at Configuation
Now in the directory config a file config.inc.php is created…cut and paste it one directory up i.e here:C:\wamp\apps\phpmyadmin2.10.1
Done–now we can create database,tables… http://localhost/phpmyadmin
OR
open MySQL console< left click on tray icon,MySQL>
press enter<as there is no password at present>
follow the steps to update root user’s password:
mysql>use mysql
mysql>UPDATE user
->SET password=PASSWORD(‘yourpassword’)
->WHERE user=’root’;
mysql>FLUSH PRIVILEGES;
All done !!
Start developing php pages.
January 9, 2008 at 3:12 pm
Its recommended to create a user and do all the development in that. Never use root for development purposes. Its a super-admin, you could blow up your MySQL server
root should be kept just for admins, for maintenance work. Be careful while working logged in as root as your mistakes may spell doom if something goes wrong.
August 18, 2009 at 1:05 am
Hi,
How could I configure the WAMP to work with mail() command (I am working at Windows XP). Do I need the IIS to be installed?
Thanks in advance.