• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] License Key Check (LocalHost)

Started by kiddawg,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kiddawgTopic starter

I was able to get phpvibe somewhat working on my Godaddy hosting account. I'll have to purchase a dedicated server from them to get root access. Instead, I setup my own server at home for testing. Everything checks out fine on the phpvibe tester and all my files are in place. I can't get past the "License key check with the PHPVibe server has failed.
Please add the correct license key for domain under vibe_config.php"

I'm added the falling domains to my licenses on your site: 10.0.1.3(which is my local server IP).

I continue to get that error. Please help. I know I must be doing something wrong here
  •  

PHPVibe A.

<?php function get_domain($url)
{
  $pieces = parse_url($url);
  $domain = isset($pieces['host']) ? $pieces['host'] : '';
  if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {
    return $regs['domain'];
  }
  return false;
}
echo get_domain('10.0.1.3');
?>

Paste this in a php file and run it in your local server, what does it output?
Cause I suspect it blanks out the output (no output), and send the check against an empty domain name.
You can point an domain name (one you don't use) to your localserver, for example using google nameservers and then it will run.

You can also look which dns is faster for you using https://code.google.com/p/namebench/



kiddawgTopic starter

I put that code in a php file and ran it on my local server. The output was a blank page
  •  

PHPVibe A.

I've imagined, the function that normalizes the domain before calling the licensing system removes ips.
Can you try to put an dummy domain?

Similar topics (7)