Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
There are times when we are so anxious to jump into creating something new that we
forget to cover the basics. For web developers it is important, actually vital, to have
the ability to test your projects locally before they go live.
While much of the web relies on a Linux, Apache, MySQL, PHP stack, or LAMP, to power
applications and dynamic websites, not everyone codes in a Linux environment.
Those who prefer Windows can still replicate how their code will work by using WAMP to
replicate a live web environment right on their own computer with the only difference being
substituting the Linux operating system in the stack for Windows.
The next step requires you to select the folder where you would like to install your WAMP
server. The default will be c:\wamp however you can change this to install the server into any
directory or partition you choose.
2
Chose where to install the software
After you choose your directory you will have the option to setup icons. Once you decide on
this click Next and then confirm the installation settings again by clicking Install.
Once the installation runs its course you will be asked to choose your default browser. Internet
Explorer is the default choice but you can navigate your way to any other browser of your
choosing.
NB if your Windows firewall pops up at this point make sure to grant Apache access.
The next decision you will have to make is to set the PHP mail parameters. Many people leave
this set to the defaults when setting up a testing server on their local computer. If you wish to
configure it to connect to your SMTP server you may do so here but unless you plan on testing
email capabilities the default entries can be left and all you need to do is click Next.
Using one of the icons you created, or Start > All Programs > WampServer > start
WampServer, you can launch the management console. Once opened, it will appear in the
lower right hand corner of your screen.
3
The WAMP management
console
If WAMP is not started go ahead and click Start All Services. If you are not sure whether or not
WAMP is running, look for the small green W icon in your toolbar. If it is red, WAMP services
are stopped, green means everything is running while orange means some services are
running.
Now we want to test to see if everything was installed correctly. In the WAMP management
console, click on Localhost. If you see the following screen pop up in your browser then
everything is working!
4
Configuring phpMyAdmin
The last step is to set a password for phpMyAdmin. Many people forgo this step because the
server is not going to be live so they dont see the need to protect the database if it is only
sample data. You can decide what practice to follow.
In order to change the password you will need to navigate to your phpMyAdmin file, located at
C:/wamp/apps/phpmyadmin3.x.x and open the config.inc.php file for editing.
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'xxxxx';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
Where the example reads xxxxx insert your password. Under AllowNoPassword, change
the value to false.
What do I do next?
Now that everything is installed and working you can upload test websites to your root or even
install third-party web applications like WordPress, Moodle, Drupal, etc. to this location. You
now have a sandbox in which to work on your development projects! Have fun with it.
Like 3 Share
RELATED POSTS
B Pushing Updates to the Web Page with HTML5 Server-Sent Events
B Develop, Deploy and Maintain in Coda
5
B Enhancing WordPress Functionality with BuddyPress
B Create Your Own CRUD App with MySQL and PHP
B Automate WordPress Installation and Development WorkFlow
Sorry, the browser you are using is not currently supported. Disqus actively supports the following browsers:
Firefox
Chrome
Internet Explorer 8+
Safari
Cagray8955
Alan Smith
As per me Testing and Security both are the major parts of server. what do you say
all?
akhil
Dynasty Punkrock
If you have Skype running, turn it off and click "restart all services" on WAMP
management console. The logo will turn green and you can turn Skype back on
ft d Did th t i k f
Tweet Like 87