<

Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

How to create Your OWN Server - PHP + MYSQL + APACHE (windows)

Published on
10,574 Points
4,374 Views
2 Endorsements
Last Modified:
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP).

I'll talk about and explain each step... :)

By the way, everything in this Tutorial is completely free and legal. This article is for windows but will work on mac and linux as well.

1. wamp server
Wamp server it is basically a software system that runs a linux server. This software has everything you need to run a site including: php enigne, apache and MYSQL database. It does make it fairly easy to get a site up and running and it is simple to use.

MYSQL is a database (open source) that lets us work with data, SQL..
Apache is a software web server that organizes the requests for the server. If there is more then one user in, there should be a queue, so it works throught the queue one by one in order of the requests.
PHP engine runs our php code, the compiler converts our php source code to computer language... (010010101) hh :)
So... now you know the components, let's get to work.

download links:
1. http://www.wampserver.com/en/download.php - download the version that you want...
2. http://www.no-ip.com/downloads.php - download the version to your operating system..
3. register at no-ip site: http://www.no-ip.com/newUser.php - register, you will need to confirm the email, take that into account before you try to use.

OK, after that, setup the wamp server that you downloaded - when installing, use the defaults - just press next and next and next..

81028665.jpg

and next..

34172792.jpg

any step, just click next next and next.. :)

After you done all the "next", start the wamp server. As you can see, it is red..
red = not working at all.
orange = only mysql work, apache doesn't work.. (not good :)
green = both, mysql and apache server work, the server up and running..

BUT!!!! As you can see, it is not online!!! So only localhost work (your pc..)
When it has turned into green(the icon of wamp server), click on the menu (left click) and click Put Online..
61056036.png
Now, any one in the world can enter your site... but they have to enter the ip.. not so much fun.. Let's fix that!!!

So install the no ip software.. After that, enter the username and password that you registered with in the web site..
57213896.jpg

Then log in to the website, and add hosts, from this url: https://www.no-ip.com/members/dns/
Click Add a Host button on the right side of the page, and you should get the page..
46046987.jpg
After you have clicked on create host, on the right side of the page, the host will be added.
Then go back to the software and click on select Hosts
28356668.jpg
check your host name, and that's it, any one in the world that write your address will redirected to your site!!!

the software checks if your ip changed and if it does, it will update all of your domains (you can have upto 5 for free domains...)

now, you can go to your C:\wamp\www - there are the public files, where any user can reach, as you can see, the index page is the default one (unless you change the default settings on the installation). Now just start coding!!!! :)

Errors.
If you have problems with turning the wampserver online mode simply wait until it becomes green, then click Put Online..
that should work...
If you still can't get it green, check your firewall, that is one of the things that makes a lot of trouble.
Reset / reboot your PC

If all of that things does not work, uninstall and reinstall the software, also check:
http://www.experts-exchange.com - can get a lot of help here...

That is all, hope I helped you guys and hope that you find this article useful
2
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 35

Expert Comment

by:gr8gonzo
I've tried a lot of different WAMP packages (WampServer, XAMPP, Triad, etc...) but the best one so far has been EasyPHP. It is kept up to date frequently and has a simple, easy interface.

http://www.easyphp.org/
0

Featured Post

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

Join & Write a Comment

In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month