Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Installing on subdomain - error: unlicensed domain
  • Vote Up0Vote Down ben_a_adamsben_a_adams
    Posts: 7Sendy user

    Trying to setup Sendy on a subdomain and subdirectory [ http://newsletter.ageofascent.com/newsletter/ ] but recieve the error:

    Unlicensed domain You need to install Sendy on the domain you purchased it for.

    Should be licensed to ageofascent.com this should include the subdomain? Also after setup would want to move to a different subdomain (i.e. www) would this be a problem?

    _compatibility.php reports:

    Server configuration:

    Your PHP version is 5.4.9-4ubuntu2.1
    mysqli extension is installed
    mod_rewrite is not enabled
    display_errors is turned off
    hash is enabled
    curl is enabled
    gettext is enabled
    curl_exec is enabled
    curl_multi_exec is enabled

    Score: 8/9

  • 10 Comments
  • Vote Up0Vote Down BenBen
    Posts: 3,484Sendy support

    Hi @ben_a_adams,

    If you have a firewall blocking connections, make sure to whitelist:

    Thanks.

    Best regards,
    Ben

  • Vote Up0Vote Down ben_a_adamsben_a_adams
    Posts: 7Sendy user

    Thank you @ben for your prompt response :)

    Is this outbound connections?

    I don't think they are blocked, but am rigging up a test in the compatibility.php

  • Vote Up0Vote Down BenBen
    Posts: 3,484Sendy support

    You're welcome. Yes these are outgoing connections. I checked your subdomain directly on my license checker and it returns positive, so there's no issue on my side though.

    If your compatibility looks good, it can only be firewall.

  • Vote Up0Vote Down ben_a_adamsben_a_adams
    Posts: 7Sendy user

    I have added the following to the end of _compatibility.php :

    function processURL($url){
        $url=str_replace('&','&',$url);
        $ch=curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
        $html = curl_exec ($ch);
        curl_close ($ch);
        echo htmlentities ( substr ($html,0,200) );
    }
    
    echo '<h2>Curl tests</h2>';
    
    echo '<b>http://sendy.co/</b><br/>';
    processURL('http://sendy.co/');
    echo '<br/><br/>';
    
    echo '<b>https://email.us-east-1.amazonaws.com/</b><br/>';
    processURL('https://email.us-east-1.amazonaws.com/');
    echo '<br/><br/>';
    
    echo '<b>https://sns.us-east-1.amazonaws.com/</b><br/>';
    processURL('https://sns.us-east-1.amazonaws.com/');
    

    It outputs:

    Curl tests
    
    http://sendy.co/
    <!DOCTYPE html> <html lang="en"> <head> <title>Sendy - Send Newsletters 100x cheaper via Amazon SES</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="descriptio
    
    https://email.us-east-1.amazonaws.com/
    <UnknownOperationException/> 
    
    https://sns.us-east-1.amazonaws.com/
    <UnknownOperationException/>
    

    Which is the same result as viewing the sites in the browser. So it doesn't look like a firewall issue.

    Step 4. Install Sendy still shows the "Unlicensed domain You need to install Sendy on the domain you purchased it for".

    includes/config.php is set with:

    define('APP_PATH', 'http://newsletter.ageofascent.com/newsletter');
    

    Any other places I should look?

  • Vote Up0Vote Down BenBen
    Posts: 3,484Sendy support

    Thanks for the details. Are you running Sendy on a LAMP stack? Linux/Apache/MySQL/PHP? Sendy is only tested and supported on Linux/Apache/MySQL/PHP.

  • Vote Up0Vote Down ben_a_adamsben_a_adams
    Posts: 7Sendy user

    On a LNMP stack Linux/Nginx/MySQL/PHP. Going to triple check my rewrites.

    Currently newsletter/ correctly redirects to newsletter/_install.php however maybe that page is incorrectly rewritten to a different page?

    i.e. would I be correct to think the _install page would ask you for your licence info, before, telling you your domain is not licenced? Therefore my rewrite rules are serving a different page as _install.php

  • Vote Up0Vote Down BenBen
    Posts: 3,484Sendy support

    Sendy is only tested and supported on Apache. But if you search for "nginx" you'll find some help with rewrite rules for nginx.

    The installation page checks your licensed domain immediately when it's loaded. I have checked your sub domain directly on my license checker and it's saying "valid", so there is no issue on my side. In fact, if there is, this forum would be flooded with the same issue.

  • Vote Up0Vote Down ben_a_adamsben_a_adams
    Posts: 7Sendy user

    Resolved! I had server_name set to localhost in my nginx config file rather than my domain name

  • Vote Up0Vote Down ben_a_adamsben_a_adams
    Posts: 7Sendy user

    The rest of the setup process was very straight forward and well explained.

    Thank you!

  • Vote Up0Vote Down BenBen
    Posts: 3,484Sendy support

    Good to hear you've solved it. :)

This discussion has been closed.
All Discussions