Hosting – Windows

Install Wamp

Config Wamp

Change port 80 to 8080

  • Open the httpd.conf, find “Listen” and change like this

    [html]Listen 0.0.0.0:8080
    Listen [::0]:8080[/html]

    Find “ServerName” and change “ServerName localhost:80″ to

    [html]ServerName 192.168.1.27:8080[/html]

    Find “Require local” and replace with “Require all granted”

Config Router

  • Add two separate entries: one for TCP and one for UDP packets. Something like this will do the work:

    [html]
    Private IP Private Port Type Public IP/mask Public Port
    192.168.1.27 8080 TCP 0.0.0.0/0 8080
    192.168.1.27 8080 UDP 0.0.0.0/0 8080
    [/html]

Check

  • Restart WAMP, and try http://<public IP address>:<port>/

Install WordPress

Move existing DB to new IP address

  • Export DB into sql file
  • Find “localhost” and replace with”<public IP address>:<port>”
  • Import sql file into new DB

Move existing WordPress site to WAMP

  • Open “wp-config.php” file
  • Change “DB_NAME”, “DB_USER”, “DB_PASSWORD”, “DB_HOST” with “192.168.1.27”
  • Remember to create new phpmyadmin account, don’t use root account

Secure your host

Backup your Web server & DB

Domain name

  • If you still don’t have a domain name, you can set <public ip-address> into “C:\Windows\System32\drivers\etc\hosts”

    [js]114.76.92.194    myblog[/js]

    Then, access like this on your browser

    [js]http://myblog:8080/[/js]

Be the first to comment

Leave a Reply

Your email address will not be published.


*