Creating a local server

What is Local Server?

A Local Server allows development and testing on a local machine without the concerns of losing Internet connection, accidentally creating temporary security holes, or constantly uploading files via FTP.

Guide on installing and setting up a server.

Today, we will talk about creating your local server to which you will be running your php files.

PHP files is unlike your HTML files that when you want to view the output of your codes you can simply right click your HTML files and then open it with the browser you like. Running PHP,  you will need the following to be installed in your computer:

But that’s a bit tricky for a beginners like you. That is why there are available applications which a compiled version of that four application.  You can download either of the listed below:

In this guide, we will be using Appserv anyway it doesn’t matter either of that three you will be using but because you are reading this you should follow me so we are on the same page.

Step 1:  Preparing the installation package:

Download the latest version of the Appserv package here

The package contained the following:

  • Apache 2.2.8
  • PHP 5.2.6
  • MySQL 5.0.51b
  • phpMyAdmin-2.10.3

1.  Double click the appserv installer that recently you downloaded from their website.

2.  License Agreement : AppServ distribution under GNU/GPL License. You must read license agreement before install. If you agree for this license click Next to go to next step. If you not agree click Cancel to cancel install.


3. Choose Install Location: AppServ default location is C:\AppServ. If you need to change destination click Browse botton to change your destination for AppServ program and then click Next to go to next step.

4. Select Components : AppServ default package components it’s checked all package.
If you need to choose some package to install. You can click at check box.
- Apache HTTP Server is a Web Server.
- MySQL Database is a Database Server.
- PHP Hypertext Preprocessor is a PHP Programming processor.
- phpMyAdmin is a MySQL Database control via WWW.
If you complete choosing it click Next to go next step.


5. Apache Configuration : This screen for specify Apache configure.
Server Name   You must specify Server Name e.g. www.appservnetwork.com.
Admin Email    You must specify Admin Email e.g. root@appservnetwork.com
HTTP Port       You must specify HTTP port for Apache Web Server.

Here, you will enter localhost in your server name because your will be running in your local computer. You can enter your own email address at the admin email textbox. And leave the deault 80 as the HTTP port.

6. MySQL Configuration :
Root Password        You must enter root password for MySQL Database.
Default user for this password is  root .
Character Sets        Specify for data storage language and collations.
Old Password          If you have problem when you coding PHP code with Old MySQL API.
And found error Client does not support authentication protocol requested by server;
consider upgrading MySQL client
You must check this option to avoid error.

Enable InnoDB        If you use InnoDB must check this option.

Click on install to proceed.


7. Complete AppServ setup : Setup ask for start Apache and MySQL immediately.
Click Finish to end this setup and AppServ prompt to use.


8. Testing your local server by running localhost. How to do that? Just open your favorite browser. Here I am using firefox. Once you open it, type in the address bar of the browser: http://localhost you should see the below image. If none, uninstall the appserv and restart your computer and review the process.

On Next topic, I will guide you to your first PHP experience.


Your Guide to Wireless Internet
and High-Speed Internet Providers
and Technology
www.wirelessinternet.net

Tags: , , , , , , , , ,

1 Response to "Creating a local server"

Leave a Comment

*