How to Host a Website From Home For Free Using WordPress and XAMPP Web Server
Articles,  Blog

How to Host a Website From Home For Free Using WordPress and XAMPP Web Server

Hello, Video Tutorial shows you, how to host a website from home for free using WordPress & XAMPP web server These are the main steps, to host a website from your home computer First of all make sure you have cable modem, DSL or another high-speed connection 1. Installation and Configuration XAMPP web server 2. Get a DNS host-name for your home Internet connection 3. Port Forward Your Router 4. Test your web server from outside your network 5. WordPress installation 1. Installation and Configuration XAMPP web server Download and install XAMPP web server All useful links you can find in description It takes some time, so I will skip installation process Test your server Secure your XAMPP Server Enter password for MYSQL super user You can also protect XAMP directory Make sure, that your password is strong recommended to use a mixture, of upper, and lower case letters, numbers, and symbols Configure the XAMPP Server Download and install Notepad ++ Set up note-pad plus as editor Increase upload size in your “php.ini” file Search for: “upload_max_filesize” and adjust it by your needs Increase PHP memory limit Search for: “memory_limit” and adjust it by your needs Allow users, to access your server from a network Open, xamp configuration file Search for: Require local and comment it Restart your server 2. Get a DNS hostname for your home Internet connection Create Account, on Log in your account, Click on DDNS tab and Choose SIGN UP In Host section, type your host name, then choose domain name, and click add button Now your IP address is connected to domain name There are two important things, your Internet IP address, and port 80 Internet IP address is assigned to you by your ISP (Internet Service Provider) it’s may be Dynamic or Static, difference: Dynamic IP address can change at any time from your ISP Static IP address stays the same. (Never change) If you really want to check, if your ISP is blocking ports you can scan your ports using this website The most of ISP assigns a Dynamic IP address, and blocks port 80 So let’s say you have Dynamic IP address and your ISP blocks port 80 You need to download and install Dynu IP Update Client The primary goal of dynamic DNS is, to keep the domain name, pointed to the most current IP address, at all times Ok, test your domain name Now let’s assign a static local IP address, for your computer within your home network Redirect your static local IP address to your domain name Type your local IP address, press Tab key on keyboard and type your domain name Change the Apache Port in XAMPP, by default it’s running on port 80, so change it to any Search for: “Listen 80” and Change the port number (80) to a different number Search for: Server Name and do the same Save the file and Restart the Apache Server 3. Port Forward Your Router First of all, you need to access your router Open CMD (command prompt) and type “ipconfig” Search for Default Gateway IP address, copy and paste it into your web browser If you don’t know default user name and password you can find it on this website: If Default username and password doesn’t work You may need to reset router password, to default settings Also you can find instruction, how to correctly forward port for your router I opened port 7070 on my router Open ports are used, to allow a connection in to your home network from the Internet OK let’s test it 4. Test your web server from outside your network To test my web server from outside my network, I use my neighbor’s internet Wi-Fi connection Works fine 5. WordPress installation Download WordPress Create MySQL Database for your WordPress website Unzip WordPress, and move all files in root directory folder Open the “wp-config-sample.php” file with notepad Type your database name, user and password Save file as “wp-config.php” Open your browser and go to your website Choose language Enter your details and click “Install WordPress” Test your WordPress website from outside your network OK, WordPress website hosted successfully


  • Vince Hair

    there is no security page when trying to setup security, object not found, error 404.

  • Thoughts

    awesome 🙂
    but there is any way to make my address direct or it should have freeddns ?!
    and also i made a website and want to make my pc a server so i can direct share any thing from my pc direct without upload to a cloud .. i will really appreciate your help 🙂
    thanks alot

  • Liverpool Fans

    hi thanks for your video , i have try it , but i cant access my web form other device . what should I do know ?

    Thank you

  • Govind Balla

    Hi there I already own a domain name which I bought from godaddy. Do I still need to do step 2? Please could you clarify what step 2 is for.

  • Jack Calloway

    Ok this is getting desperate. I have spent over a week on this and ive got as far as installing wordpress but now when i go to log in, it says invalid username even though i took a picture of the login details and they are all the smae. Please help and it failed at step 2.

  • TheLaughingMan48

    When I type in localhost into the address bar it just constantly loading and never finishes. The same thing happens when trying to use WAMP so I though XAMPP would be better, any help? I tried in both firefox and chrome nothing works

  • reprised iqbal

    In your video you are creating a dynamic host name .if i want to use to your video) as my domain then how can i do it?? BTW, that's a great video……….

  • Mkpurumpio Ngei

    I did this set up on a local Network. The site is so slow from another computer on the network. about 15secs to load.

  • Alexander J.Bubalo

    this is a wonderfull idea, i am using XAMPP but only for see and wordpress sites and themes and plugs …. if anyhow it is possible this would be super to have my own website webhosting and my domains publishing it my own way , thank you …its a wonderful idea thank you and i will follow you …..

  • Alexander J.Bubalo

    i dont like much domain companies and webhosting too , this is a wonderful idea that we can have our webhosting and our domain freedom , thank you , any idea i hope will be great

  • Abdelhadi Benlaredj

    I followed every step but it failed when I tried to test my domain like you did on 8:47… but it worked when I typed my ipv4:port on the browser… do you think there is something I have to fix ? thank you for the video

  • Fayyad Tech

    Nice tutorial.. But I only manage connect/redirect my LAN IP with dynu DUC.. I also successs connect my LAN IP with other devices..

    But.. Why I cannot open XAMPP directory? 🙁

    EDITED :

    Sorry.. I forgot to open my port in router.. My bad.. Now its working perfectly.. Thanks!! I took a day tried to connect my external IP into domain name and tried many tutorial and many DUC.. But your tutorial only works!! Thanks a lot..

  • Eric Wood

    When I put in the static internet credential my internet goes down. I am then have issues with finding the dns, let alone the port forwarding. I thought I was doing everything you said but something isn't working right. I have Windows 10 if that helps.

  • martino ivaba

    when I changed my ip addres a lost my internt conection am conected to a wifi does it interfere ? or do i need to conect troutgh a cable? hlp

  • Meena Kumari

    sir how can I upload my code to internet. I have domain name(go daddy) but I don't know to upload all my files. please help me sir

  • XtremeConditions

    Would all this work if I wanted to host a site using phpmotion or such CMS-type systems? I believe it would require the install of ffmpeg and the like so that my server would compress video and so on. Is that all compatible with this XAMPP server software?

  • Anant Dargude

    i am having domain name with me from bigrock and i want to host it from home. how should i setup dns and name server and how to use dynamic ip

  • ᄅ호ᅩᅥᅡᅢᅢ노ᅮᅢᅧᄂ서ᅢᅡᄂᄒᄎᄂ ᄇᄃ퍼ᅢᅭᄉᄂᄐ츄ᅥᅮᅥᅡᅵᅢᄂ서ᅢᅡ

    wow you are genial my brother…..i love how you exlain .you are a genie…thanks a lot of brother ….

  • Muzammil Khowaja

    (Error establishing a database connection) i try same but when i change wp-config.php this will comes up

  • ESB Production

    HELP ?
    Error: Apache shutdown unexpectedly.
    21:42:44 [Apache] This may be due to a blocked port, missing dependencies,
    21:42:44 [Apache] improper privileges, a crash, or a shutdown by another method.
    21:42:44 [Apache] Press the Logs button to view error logs and check
    21:42:44 [Apache] the Windows Event Viewer for more clues
    21:42:44 [Apache] If you need more help, copy and post this
    21:42:44 [Apache] entire log window on the forums

  • Mohammed Wasey Siddiqui

    Perfect tutorial for Hosting a website. Loved how you compiled all the steps into such short video. (Y)
    Now i can able to host multiple websites with their respective domain name eg:, etc..
    Thanks allot @mmk -Your work is much appreciated!

  • Nilachal Gouda

    I am trying to create a web server for my organization. But ISP of my org. is using proxy. Could you please guide how to deal with that! Thanks.

  • Waza

    Thanks for saving my bacon. I need to setup wordpress site for school work and this saved me the trouble of buying a hosting service and dealing with all that crap.

  • Paayi Inc

    how can we do it on Mac or Linux on Local Computer. I want to buy the small server and install my blog there. Can i do that or can you help me out

  • Joshua B

    When ever I go to my wordpress site on a a nother computer it looks weird and has no images, like a really really old website.

  • Jenner walter

    Hello thanks for the video,
    i am having an issue after dynu when i enter the " " it says cant reach the server i should make sure i have type the website correctly, please help thanks

  • Andy Sailor

    thx a lot for this video and all the work. great stucture.
    The xampp conf file has changed with newer versions.
    should I comment every require local like you do on 4:18
    # XAMPP settings

    <IfModule env_module>
    SetEnv MIBDIRS "C:/xampp/php/extras/mibs"
    SetEnv MYSQL_HOME "\xampp\mysql\bin"
    SetEnv OPENSSL_CONF "C:/xampp/apache/bin/openssl.cnf"
    SetEnv PHP_PEAR_SYSCONF_DIR "\xampp\php"
    SetEnv PHPRC "\xampp\php"
    SetEnv TMP "\xampp\tmp"

    # PHP-Module setup
    LoadFile "C:/xampp/php/php7ts.dll"
    LoadFile "C:/xampp/php/libpq.dll"
    LoadModule php7_module "C:/xampp/php/php7apache2_4.dll"

    <FilesMatch ".php$">
    SetHandler application/x-httpd-php
    <FilesMatch ".phps$">
    SetHandler application/x-httpd-php-source

    # PHP-CGI setup
    #<FilesMatch ".php$">
    # SetHandler application/x-httpd-php-cgi
    #<IfModule actions_module>
    # Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"

    <IfModule php7_module>
    PHPINIDir "C:/xampp/php"

    <IfModule mime_module>
    AddType text/html .php .phps

    ScriptAlias /php-cgi/ "C:/xampp/php/"
    <Directory "C:/xampp/php">
    AllowOverride None
    Options None
    Require all denied
    <Files "php-cgi.exe">
    Require all granted

    <Directory "C:/xampp/cgi-bin">
    <FilesMatch ".php$">
    SetHandler cgi-script
    <FilesMatch ".phps$">
    SetHandler None

    <Directory "C:/xampp/htdocs/xampp">
    <IfModule php7_module>
    <Files "status.php">
    php_admin_flag safe_mode off
    AllowOverride AuthConfig

    <IfModule alias_module>
    Alias /licenses "C:/xampp/licenses/"
    <Directory "C:/xampp/licenses">
    Options +Indexes
    <IfModule autoindex_color_module>
    DirectoryIndexTextColor "#000000"
    DirectoryIndexBGColor "#f8e8a0"
    DirectoryIndexLinkColor "#bb3902"
    DirectoryIndexVLinkColor "#bb3902"
    DirectoryIndexALinkColor "#bb3902"
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

    Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
    <Directory "C:/xampp/phpMyAdmin">
    AllowOverride AuthConfig
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

    Alias /webalizer "C:/xampp/webalizer/"
    <Directory "C:/xampp/webalizer">
    <IfModule php7_module>
    <Files "webalizer.php">
    php_admin_flag safe_mode off
    AllowOverride AuthConfig
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

  • István Radics

    Very good tutorial. I have 2 questions. How to add my registered domain name to the WordPress? How to avoid using 7070. Users will not type the ports when they want to visit my site.

Leave a Reply

Your email address will not be published. Required fields are marked *