Results 1 to 5 of 5
  1. #1
    Newbie
    Overall activity: 0%

    Join Date
    Jun 2008
    Posts
    3
    Liked
    0 times
    Points
    2,882
    hi,does any1 know how to make a webserver on own computer using apache,MySQL and PHP??
    i alredy try to make it on pc but,the website i make cannot be open on other pc vis internet:o,only can open on my pc vis localhost...anybody have some tips to share??:)

  2. #2
    The Fun Stuff Owner
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    UK
    Posts
    2,883
    Liked
    7 times
    Points
    28,077
    I found a way for you to do this but this might be unsuitable for heavy traffic..

    Step 1: Download this file: HFS or Http file server from: http://www.rejetto.com/hfs/?f=dl

    Step 2: By default HFS uses port 80. If your firewall is blocking port 80, set HFS to some other port( for example to 8025 or which ever is free, as a precaution keep it above 1024 which is used youroperating system itself.)
    To change the port number, click on Port Number menu and enter a new one.

    Step 3: Now you need to test your settings before you start. Click the menu in HFS and choose self test.If the test completes successfully, your settings are correct and you are ready for next step, To point your web browser to your ip address.



    Step 4: For setting up a web site, you need to first assign it a domain name. For this, you will need to a DNS service running on your computer which can be mapped to particular ip address.



    Step 5: Download and install this dynamic update client: http://www.noip.com/downloads.php?page=win

    Install it and provide your login details.This program will sit in the system tray and automatically update your NoIp account when your external ip changes.

    Step 6: Launch your website

    You can now decide what page will appear when someone access your site, like the default page. To change the default page,

    * Open HFS and click on “You are in Easy Mode ” to turn it to advance mode.
    * Right click on little house icon on VFS and click on “Bind Root to Real Folder”.
    * Now you can add files and folder here which you want to make available in your website.
    * Next is when your site is ready send the address which you created in NO-IP or step 4 to all your friends.
    * You can even see what others are viewing in advanced mode of hfs



    Source: http://www.technospot.net/blogs/host-a-web-server-on-your-home-pc/

  3. #3
    Newbie
    Overall activity: 0%

    Join Date
    Jun 2008
    Posts
    3
    Liked
    0 times
    Points
    2,882
    wow,thanx man i realy appreciate that;)
    but i cant open it on vista nor xp...

  4. #4
    The Fun Stuff Owner
    Overall activity: 0%

    Join Date
    Jun 2008
    Location
    UK
    Posts
    2,883
    Liked
    7 times
    Points
    28,077
    ok then..

    I've found another way..

    Download Apache for Windows from: http://httpd.apache.org/

    Please note, when you install Apache as a service, you need to create a new Windows user account (eg: call it Apache) and grant it permissions for specific directories.
    From http://httpd.apache.org/docs/2.2/platform/windows.html

    You may want to create a separate account for running Apache service(s). Especially, if you have to access network resources via Apache, this is strongly recommended.

    1. Create a normal domain user account, and be sure to memorize its password.

    2. Grant the newly-created user a privilege of Log on as a service and Act as part of the operating system. On Windows NT 4.0 these privileges are granted via User Manager for Domains, but on Windows 2000 and XP you probably want to use Group Policy for propagating these settings. You can also manually set these via the Local Security Policy MMC snap-in.

    3. Confirm that the created account is a member of the Users group.

    4. Grant the account read and execute (RX) rights to all document and script folders (htdocs and cgi-bin for example).

    5. Grant the account change (RWXD) rights to the Apache logs directory.

    6. Grant the account read and execute (RX) rights to the Apache.exe binary executable.


    Just about everything in Apache is configured in the httpd.conf file. Handily, Apache installs a link to configure this on the Windows Start Menu.

    Generally speaking, the default configuration are optimal, however you will need to make some modifications to it to get even the most basic website going.

    Note: You should use forward slashes in your configuration. Windows supports back slashes too (/), however Apache can get confused with back slashes (\) due to its Unix origins.

    Note: For the purposes of illustration I am using one of my websites as an example.

    This domain name is:


    www.mikeullrich.com

    It is stored on my Windows host computer on:


    C:/_Live/mikeullrich.com

    The top level web page is:


    Default.html

    The following are the key lines to change in your Apache conf file:

    Code:
    ServerAdmin a@b.c
    Put your email address here.

    Code:
    ServerName www.mikeullrich.com:80
    This is the default name of the web host

    Code:
    DocumentRoot "C:/_Live/mikeullrich.com"
    This is the location where the website is stored on the windows host computer

    Code:
    <Directory " C:/_Live/mikeullrich.com ">
    As above

    Code:
    DirectoryIndex default.html
    The top level web page on the host.

    Code:
    ErrorLog C:/_Live/logs/error.log
    Assumes that you want your error log in the same directory hierarchy as the website.

    If you plan to host more that one domain name from your web host, then you can configure them using Virtual Hosts. Virtual hosts, in their main form, allow many domain names to be used with a single IP address.

    For every Virtual domain you can set up a different set of parameters, some of which are similar as mentioned above for the primary site.

    Note: For the purposes of illustration I have a 2nd domain called howtohostawebsite.net on the same IP address:

    <VirtualHost *:80>

    ServerAdmin blackhole@howtohostawebsite.net

    DocumentRoot C:/_Live/ howtohostawebsite.net

    ServerName www.howtohostawebsite.net

    Code:
    ServerAlias howtohostawebsite.net *.howtohostawebsite.net
    
          CustomLog C:/_Live/logs/access_ howtohostawebsite_net.log combined
    
    </VirtualHost>
    [

    Note: ServerAlias ensures that if a user enters into their web browser http://howtohostawebsite.net or http://www.howtohostawebsite.net then they will still both go to the same default.html page. This also requires that your DNS recognises both forms of the domain name.

    Note: You should only grant your Apache user privileges to the directories where you store your web content and to the directories mentioned above where the Apache binaries and logs are stored.

    Every time you make a change to the httpd.conf file, ensure that you stop and start the Apache service.
    Checking out that your website works

    OK, so now that you have installed Apache, configured it to point towards your own directory with web content, and started the service, then you should have an up and running website!

    Depending on the router that you have installed you may not be able to access your website from within your own network using your domain name. If this is the case, a good way to test it is to use a site like: www.anonymizer.com or if you have access to another network over VPN, try connecting using your VPN client and loading up a web browser.

    Sometimes, again depending on the router, you can use http://xyz where xyz is the name of your computer. This will show the default website, but not any virtual hosts.

    After viewing your website open up your access_xxx.log file (where xxx is what you have named is in the httpd.conf). You should see your own access requests appearing.

    If for some reason it did not work, 1st port of call is the error.log.

    source: howtohostawebsite.net

  5. #5
    Newbie
    Overall activity: 0%

    Join Date
    Jun 2008
    Posts
    3
    Liked
    0 times
    Points
    2,882
    it work,thank you^^

 

 

Similar Threads

  1. Replies: 7
    Last Post: 08-26-2008, 06:00 PM
  2. Any1 want to know how to delete a samsorry(system.exe) virus.
    By Mobilemaster in forum Spyware/Viruses
    Replies: 2
    Last Post: 08-21-2008, 09:07 PM
  3. I would like to make some programs
    By Jowin in forum General Forum
    Replies: 12
    Last Post: 06-25-2008, 09:29 PM
  4. Replies: 2
    Last Post: 06-13-2008, 06:38 PM
  5. Any1 heard of fanbox?
    By bahirzaheri8 in forum General Forum
    Replies: 3
    Last Post: 03-08-2008, 03:48 PM
All times are GMT +8. The time now is 06:25 AM.