Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #374573

    michaelxxx
    Participant

    Hi,

    I installed WordPress & X Theme with XAMPP on my local Computer.

    Now I tried the poduct validation and get the error “Could not establish connection.”
    For generating the API Key I used for the URL my local IP 127.0.0.1

    I found your topic:

    localhosts do not work for validating your theme you will need to create a vhost (virtual host) on your computer and validate that vhost domain. You can find an article explaining everything in detail here: http://sawmac.com/xampp/virtualhosts/

    But the URL from sawmac.com is not working.
    So what to do now?

    #374709

    Rupok
    Member

    Hi there,

    Thanks for writing in! Note that 127.0.0.1 is just the alias of localhost. You can try validating http://localhost. Also the virtual host should work. Would you please clarify what error you got?

    However it’s better if you can use a staging domain on your server.

    Thanks

    #374727

    michaelxxx
    Participant

    validating http://localhost is not working

    I got the following error:
    Could not establish connection. Please ensure your firewall is not blocking requests to theme.co

    #374809

    michaelxxx
    Participant

    I want to have my virtual host under gon/

    I tried to do the following:

    In hosts.txt I added the following 2 domains
    127.0.0.1 localhost
    127.0.0.1 gon

    And in the httpd-vhosts.conf fle I added the following code:

    NameVirtualHost *:80
    
    <VirtualHost *:80>
        DocumentRoot "C:/xampp/htdocs"
        ServerName localhost
    </VirtualHost>
    
    <VirtualHost *:80>
        DocumentRoot "C:/xampp/htdocs/gon"
        ServerName gon
        <Directory "C:/xampp/htdocs/gon">
    	Options Indexes FollowSymLinks ExecCGI Includes
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>

    I can open the adress localhost at the browser. It redirects to http://localhost/xampp/

    But I can“t open gon/ in the browser. When I try it opens google with the searchstring gon and not my index.html under the folder C:/xampp/htdocs/gon

    What did I do wrong?

    #375014

    Friech
    Moderator

    Hi There,

    Please follow the solution provided here.

    Also open the php.ini file on \xampp\php\ directory and make sure the php_curl.dll is enabled and allow_url_fopen is on.

    Check also your firewall if its not blocking the XAMPP.

    Hope it helps, Cheers!