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

AID: 8630
  • Status: Published

980 points

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
  • 41 KB
  • wamp server installation
wamp server installation


and next..

34172792.jpg
  • 49 KB
  • wamp server installation
wamp server installation


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
  • 11 KB
  • wampserver menu - PUT ONLINE
wampserver menu - PUT ONLINE

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
  • 24 KB
  • no-ip register to software
no-ip register to software


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
  • 37 KB
  • no-ip create new host
no-ip create new host

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
  • 29 KB
  • no-ip select hosts to keep updated
no-ip select hosts to keep updated

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
    Asked On
    2011-11-20 at 08:08:27ID8630
    Tags

    PHP wamp server apache no-ip mysql database

    Topic

    Apache Web Server

    Views
    403

    Comments

    Add your Comment

    Please Sign up or Log in to comment on this article.

    Join Experts Exchange Today

    Gain Access to all our Tech Resources

    Get personalized answers

    Ask unlimited questions

    Access Proven Solutions

    Search 3.2 million solutions

    Read In-Depth How-To Guides

    1000+ articles, demos, & tips

    Watch Step by Step Tutorials

    Learn direct from top tech pros

    And Much More!

    Your complete tech resource

    See Plans and Pricing

    30-day free trial. Register in 60 seconds.

    Loading Advertisement...

    Top Apache Web Server Experts

    1. ahoffmann

      74,014

      Master

      0 points yesterday

      Profile
      Rank: Genius
    2. testez

      66,765

      Master

      0 points yesterday

      Profile
      Rank: Guru
    3. arnold

      58,411

      Master

      0 points yesterday

      Profile
      Rank: Genius
    4. Ray_Paseur

      48,568

      0 points yesterday

      Profile
      Rank: Savant
    5. DaveBaldwin

      48,088

      0 points yesterday

      Profile
      Rank: Genius
    6. xterm

      37,235

      1,000 points yesterday

      Profile
      Rank: Sage
    7. routinet

      36,750

      0 points yesterday

      Profile
      Rank: Genius
    8. jason1178

      22,265

      0 points yesterday

      Profile
      Rank: Genius
    9. arober11

      21,914

      20 points yesterday

      Profile
      Rank: Sage
    10. COBOLdinosaur

      19,164

      0 points yesterday

      Profile
      Rank: Genius
    11. ravenpl

      17,268

      0 points yesterday

      Profile
      Rank: Genius
    12. larsrohr

      15,900

      0 points yesterday

      Profile
      Rank: Guru
    13. maeltar

      15,300

      0 points yesterday

      Profile
      Rank: Guru
    14. for_yan

      15,050

      0 points yesterday

      Profile
      Rank: Genius
    15. KeremE

      14,601

      1,000 points yesterday

      Profile
      Rank: Genius
    16. giltjr

      14,360

      0 points yesterday

      Profile
      Rank: Genius
    17. maestropsm

      13,955

      0 points yesterday

      Profile
      Rank: Guru
    18. Tiggerito

      12,064

      0 points yesterday

      Profile
      Rank: Sage
    19. legolasthehansy

      11,820

      0 points yesterday

      Profile
      Rank: Guru
    20. smadeira

      11,652

      0 points yesterday

      Profile
      Rank: Wizard
    21. hernst42

      11,400

      0 points yesterday

      Profile
      Rank: Genius
    22. Roads_Roads

      10,630

      0 points yesterday

      Profile
      Rank: Genius
    23. gr8gonzo

      10,600

      0 points yesterday

      Profile
      Rank: Sage
    24. maxmk

      10,168

      0 points yesterday

      Profile
    25. Anuroopsundd

      9,936

      0 points yesterday

      Profile
      Rank: Sage

    Hall Of Fame