Setting up a PHP Server - A local one

Discussion in 'Site & Server Administration' started by pratik, Apr 29, 2008.

  1. #1
    Firstly I am really sorry if this may sound weird or stupid...

    Ok its like I have a data server at my office running on Linux. Now I want to use it as a web server too. I mean i have done this for Windows.. i did it by doing IIS and stuffs..

    But I have no ideas how to do it on a Linux Machine... I want to use it as a local web server.. with WordPress and other PHP scripts running on it.. ;)

    So how do i go about it..??? Any link on info would be helpful...

    Thanks in advance...
     
    pratik, Apr 29, 2008 IP
  2. Afazelpoor

    Afazelpoor Guest

    Messages:
    292
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The easiest way is to install a control panel, so you wouldn't have to worry about running apache, php and mysql.
     
    Afazelpoor, Apr 29, 2008 IP
    pratik likes this.
  3. pratik

    pratik Notable Member

    Messages:
    2,306
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #3
    yeah thtz what i was looking for...

    now the thing is where can i get tht Control Panel??? also is this the same like cPanel like i get on my website host... ??
     
    pratik, Apr 29, 2008 IP
  4. aditya_sfs

    aditya_sfs Peon

    Messages:
    2,271
    Likes Received:
    389
    Best Answers:
    0
    Trophy Points:
    0
    #4
    1. You need a static IP Address.
    2. Your machine should be on 24x7 and if there is temporary disconnection, the IP address should not change.
    3. Install An Apache Server on your PC.
    4. Goto your main domain control panel and create ns1.domain.com and ns2.domain.com and point them to your machine's IP Address.
    5. Then you can register domains and put the default nameservers there and host on your PC.
     
    aditya_sfs, Apr 29, 2008 IP
  5. pratik

    pratik Notable Member

    Messages:
    2,306
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #5
    thanks for the reply...
    but i have some queries..

    1. Static IP? What for.. i mean i am just using on local network..
    5. I dont want to use domain names on tht server.. just default IP address if fine too..
     
    pratik, Apr 29, 2008 IP
  6. aditya_sfs

    aditya_sfs Peon

    Messages:
    2,271
    Likes Received:
    389
    Best Answers:
    0
    Trophy Points:
    0
    #6
    okay then i got you wrong. I thought you want to host websites at your home PC or something similar ...
     
    aditya_sfs, Apr 29, 2008 IP
  7. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #7
    You might want to look into LAMP or XAMP server. Google it.
     
    Camay123, Apr 29, 2008 IP
  8. LogicFlux

    LogicFlux Peon

    Messages:
    2,925
    Likes Received:
    102
    Best Answers:
    0
    Trophy Points:
    0
    #8
    My DSL router has DNS built in so if I set up a machine on my network with a web server on it I can access it simply by doing http://machine-name . It also runs a DHCP server so it doesn't matter if I reset the router or reboot or unplug or whatever, every machine will be assigned an ip dynamically but the new ip will be mapped to the domain/machine name automatically. But that's my router, your's might not work like that.
     
    LogicFlux, Apr 29, 2008 IP