godaddy interview questions
Top godaddy frequently asked interview questions
I have never deployed a Django site before. I am currently looking to set it up in my deluxe GoDaddy account. Does anyone have any documentation on how to go about installing python and django on GoDaddy?
Source: (StackOverflow)
Does anyone have experience with the APIs of registrars like GoDaddy?
The goal is to use Javascript to check the availability of domain names. Someone asked a related question on StackOverflow, but the answers focused on WHOIS.
I'm hoping someone provides a more robust, JSON-based API for checking domain availability. It seems natural that registrars like GoDaddy would offer this.
Thanks!
Source: (StackOverflow)
I am new in the Amazon EC2 world, I just created an app, that is located URL like this:
http://ec2-54-123-45-678.compute-1.amazonaws.com:8080
This is generated URL by Amazon EC2.
Now I would need to use my own domain name, so when I would access www.my-domain-name.com, I would like to see the content from
http://ec2-54-123-45-678.compute-1.amazonaws.com:8080
I bought the domain name on Godaddy.
Is there any way to do this in Amazon AWS dashboard or do I need to set it up in Godaddy system?
Thanks
Source: (StackOverflow)
I'm trying to get URL rewriting to work under IIS 7 at GoDaddy. I have wordpress installed and would like to use the "pretty" permalinks.
After searching I found a few articles at learn.iis.net (general info and specific info for wordpress) but nothing from those articles helped me.
I tried adding a web.config with the following configuration:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
An error 500 appears if I use this web.config, it doesn't recognize the rewrite tag. So I tried contacting GoDaddy support and they replied with this message:
You would be able to perform URL rewriting however we would be unable to provide technical support on how to accomplish this. I apologize for any inconvenience.
So they do support URL rewriting but they do not want to tell us how.
Anyone had this problem and managed to fix it?
Update from GoDaddy
Thank you for contacting Online
Support. I apologize for the
confusion. While you are able to use
URL rewriting with any of our Windows
hosting accounts we are unable to
provide support on this. That being
said if we do not provide support on a
specific subject there are not going
to see any help articles related to
this within our help center since we
cannot support it. You will need to
use a search engine or community forum
for assistance with setting up URL
rewriting with your account. I
apologize for any inconvenience this
may cause.
Looks like I either find the solution here or use a Linux hosting account (which I'd rather not).
Source: (StackOverflow)
So here is the problem: We have decided to buy a code signing certificate, we bought one from Godaddy which was in p12 format.
After researching a bit I fount out that p12 and pfx is the same thing with a different extension so I renamed it to pfx. I also got spc and p7c files but I don't have a clue what to do with them.
Anyway, I tried to add my certificate to my visual studio 2013 solution and here is what I get:
First I get a password prompt and after I input the password I am
getting an error saying
"An attempt was made to reference a token that does not exist."
On my second try to install the pfx I am getting no prompts or error messages at all but when I build I am getting the error
"Cannot import the following key file: something.pfx
The key file may be password protected.
To correct this, try to import the certificate again or
manually install the certificate to the Strong Name CSP with the following
key container name: VS_KEY_33FA18307607ECFB"
So I am doing that using
sn -i something.pfx VS_KEY_33FA18307607ECFB
which completes with no errors but when I try
to build again I am getting the exact same error with the same container name.
"Cannot import the following key file: something.pfx ....
I tried to use the signtool which is what Goddady support recommends as an alternative but although it signs the assembly it does not provide strongnaming which I need.
I also tried to extract the certificate from the pfx to an snk using
sn -p something.pfx key.snk
and selected delayed signing but the project didn't build again with even more errors.
Rhetorical question: why is this so hard? So many people have problems with this.
Can someone please help?
Source: (StackOverflow)
Since I have change my hosting to ASP.NET 4.0 Web Form and IIS7 Integrated Mode, my website usually get error as below:
[NullReferenceException: Object reference not set to an instance of an
object.] System.Web.PipelineStepManager.ResumeSteps(Exception
error) +197
System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext
context, AsyncCallback cb) +89
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
wr, HttpContext context) +189
And work fine without change anything.
Could anyone tell me why i like that?
Source: (StackOverflow)
When doing some web maintenance today, I noticed a strange new folder on my GoDaddy hosting account at the root level named "dbboon", with a single file inside, called proxy.php. It's code is listed below, and seems to be some sort of proxy function.
I was kind of troubled because I didn't put it there. I googled all this to learn more, but didn't find anything, except for the proxy file happened to be also stored at pastebin.com: http://pastebin.com/PQsSPbCr
I called GoDaddy and they confirmed that it belonged to them, said it was put there by their advanced hosting group for testing purposes but didn't have any more information.
I thought this was all really weird: why would they put something in my folder without giving me a heads-up, and why would they need to do something like this?
anybody know anything about this?
<?php
$version = '1.2';
if(isset($_GET['dbboon_version'])) {
echo '{"version":"' . $version . '"}';
exit;
}
function dbboon_parseHeaders($subject) {
global $version;
$subject = trim($subject);
$parsed = Array();
$len = strlen($subject);
$position = $field = 0;
$position = strpos($subject, "\r\n") + 2;
while(isset($subject[$position])) {
$nextC = strpos($subject, ':', $position);
$fieldName = substr($subject, $position, ($nextC-$position));
$position += strlen($fieldName) + 1;
$fieldValue = NULL;
while(1) {
$nextCrlf = strpos($subject, "\r\n", $position - 1);
if(FALSE === $nextCrlf) {
$t = substr($subject, $position);
$position = $len;
} else {
$t = substr($subject, $position, $nextCrlf-$position);
$position += strlen($t) + 2;
}
$fieldValue .= $t;
if(!isset($subject[$position]) || (' ' != $subject[$position] && "\t" != $subject[$position])) {
break;
}
}
$parsed[strtolower($fieldName)] = trim($fieldValue);
if($position > $len) {
echo '{"result":false,"error":{"code":4,"message":"Communication error, unable to contact proxy service.","version":"' . $version . '"}}';
exit;
}
}
return $parsed;
}
if(!function_exists('http_build_query')) {
function http_build_query($data, $prefix = '', $sep = '', $key = '') {
$ret = Array();
foreach((array) $data as $k => $v) {
if(is_int($k) && NULL != $prefix) {
$k = urlencode($prefix . $k);
}
if(!empty($key) || $key === 0) {
$k = $key . '[' . urlencode($k) . ']';
}
if(is_array($v) || is_object($v)) {
array_push($ret, http_build_query($v, '', $sep, $k));
} else {
array_push($ret, $k . '=' . urlencode($v));
}
}
if(empty($sep)) {
$sep = '&';
}
return implode($sep, $ret);
}
}
$host = 'dbexternalsubscriber.secureserver.net';
$get = http_build_query($_GET);
$post = http_build_query($_POST);
$url = $get ? "?$get" : '';
$fp = fsockopen($host, 80, $errno, $errstr);
if($fp) {
$payload = "POST /embed/$url HTTP/1.1\r\n";
$payload .= "Host: $host\r\n";
$payload .= "Content-Length: " . strlen($post) . "\r\n";
$payload .= "Content-Type: application/x-www-form-urlencoded\r\n";
$payload .= "Connection: Close\r\n\r\n";
$payload .= $post;
fwrite($fp, $payload);
$httpCode = NULL;
$response = NULL;
$timeout = time() + 15;
do {
while($line = fgets($fp)) {
$response .= $line;
if(!trim($line)) {
break;
}
}
} while($timeout > time() && NULL === $response);
$headers = dbboon_parseHeaders($response);
if(isset($headers['transfer-encoding']) && 'chunked' === $headers['transfer-encoding']) {
do {
$cSize = $read = hexdec(trim(fgets($fp)));
while($read > 0) {
$buff = fread($fp, $read);
$read -= strlen($buff);
$response .= $buff;
}
$response .= fgets($fp);
} while($cSize > 0);
} else {
preg_match('/Content-Length:\s([0-9]+)\r\n/msi', $response, $match);
if(!isset($match[1])) {
echo '{"result":false,"error":{"code":3,"message":"Communication error, unable to contact proxy service.","version":"' . $version . '"}}';
exit;
} else {
while($match[1] > 0) {
$buff = fread($fp, $match[1]);
$match[1] -= strlen($buff);
$response .= $buff;
}
}
}
fclose($fp);
if(!$pos = strpos($response, "\r\n\r\n")) {
echo '{"result":false,"error":{"code":2,"message":"Communication error, unable to contact proxy service.","version":"' . $version . '"}}';
exit;
}
echo substr($response, $pos + 4);
} else {
echo '{"result":false,"error":{"code":1,"message":"Communication error, unable to contact proxy service.","version":"' . $version . '"}}';
exit;
}
Source: (StackOverflow)
I have a Heroku app and I've add a CNAME (www to herokuapp) to redirect it from GoDaddy to Heroku. Now I'm trying to manage also the naked domain.
This is from Heroku documentation.
Naked domains (also known as bare domains or apex domains, for example mydomain.com) must use DNS A-records. To setup your root domain, add separate A records for each of the following addresses using your DNS management tool:
75.101.163.44
75.101.145.87
174.129.212.2
Check that your DNS is configured correctly with the “host” command:
$ host example.com
example.com has address 75.101.163.44
example.com has address 75.101.145.87
example.com has address 174.129.212.2
I've also activated the forwarding from the GoDaddy main menu.
Ok, if I try host example.com with my domain, all is ok.
But, when I try with the browser, I get this:
Heroku | No such app There is no app configured at that hostname.
Perhaps the app owner has renamed it, or you mistyped the URL
I tried also with the command heroku domains:add yourdomain.com
but this create a second instance of my app, it doesn't redirect it to the full domain www
Source: (StackOverflow)
I've read Heroku's documentation:
http://devcenter.heroku.com/articles/custom-domains#wildcard_domains
They say to add:
To use with a custom domain, configure your DNS registrar to point *.yourdomain.com at yourapp.heroku[app].com.
In GoDaddy, you can't do:
*.yourdomain.com
in the name field. I've heard you can get around that by doing:
**
However, I tried that, but it's not working.
When I run this in console:
host anysub.yourdomain.com
I get:
Host anysub.yourdomain.com not found: 3(NXDOMAIN)
What could be the problem? I'm guessing the wildcard isn't set up in GoDaddy correctly?
(FYI: I swapped out yourdomain.com for my actual domain.)
Source: (StackOverflow)
Update -
GoDaddy said they don't provide support for custom MX records. I gave up and we just setup an MX record on another domain.
I am hitting a road block in assistance with GoDaddy in setting up an MX record correctly and tired of waiting "24 to 48 hours" for propagation. I am going to describe this question in relation to the GoDaddy interface and use "domain.com" instead of our real domain. This may be a more general DNS question or something just peculiar to GoDaddy's interface -- I don't know yet.
We are setting up new bulk email software for a hosted email product we offer. The bulk email sends out from a different server than our company email and we need to have bounce backs for bulk jobs come back to the bulk server. This requires that we have an MX record setup for that bulk email server. This domain/mx record has been setup as a "sub-domain" of our main domain as "mail2.domain.com".
Below is the current setup at GoDaddy and a description of what we have tried. The problem is in relation to the MX record and Goes To "mail2.domain.com".
A Records
Host Points to
@ ###.###.##.154
mail ###.###.##.150
mail2 ###.###.##.158
MX Records
Priority Host Goes To
10 mail2.domain.com mail2.domain.com
0 @ mail.domain.com
I have tried different variations for the Host value for mail2.domain.com with no luck. GoDaddy advised me on the phone last week to use "mail2" then their interface says to use "mail2.". These didn't work so I change it about 6 hours ago to be the full domain "mail2.domain.com" with no success yet. I called them and they said the changes I made were good, which conflicts to their original adivce. Everytime I make changes I wait a day or two to be sure whether they will work so this takes a long time to go by trial and error.
Does anyone know definitively how this should be setup?
Thanks
Source: (StackOverflow)
I'm working to setup a SSL via GoDaddy to use with my node.js server on AWS EC2. I've been unable to get it to work. Here's what I've tried below.
Intended for the domain: files.mysite.com
On the server I run:
$ openssl req -new -newkey rsa:2048 -nodes -keyout files.mysite.key -out files.mysite.csr
Common Name: files.mysite.com
password: left empty
I then get the CSR: vim files.mysite.csr
I copy and paste from:
-----BEGIN CERTIFICATE-----
......... lots of stuff
-----END CERTIFICATE-----
There is an extra empty line at the end, which I leave and paste into the GoDaddy interface using rekey.
I then download the godaddy key which provides:
gd_bundle.crt
files.mysite.com.crt
Then in node I insert:
key: fs.readFileSync('server.key').toString(),
cert: fs.readFileSync('server.crt').toString()
I'm not sure what server.key is or server.crt given that GoDaddy provides two crt files? Can you help? Thanks
Source: (StackOverflow)
below code is working fine in local, but if upload upload it on godaddy it is not working.
Error: showing
The SMTP server requires a secure connection or the client was not
authenticated. The server response was: 5.5.1 Authentication Required.
Learn more at
Line 53:
Line 54: smtp.EnableSsl = true;
Line 55: smtp.Send(message);
Line 56:
Line 57:
plz check below code
MailMessage message = new MailMessage();
message.From = new MailAddress(emailid.Text);
message.To.Add(new MailAddress("receiver@gmail.com"));
message.Subject = "NaatKhawan's Feedback";
message.Body = "Selected: " + DropDownList1.Text.ToString() + "<br/><br/>Name: " + name.Text.ToString() + " <br/><br/>Email: " + emailid.Text.ToString() + " <br/><br/>Contact Number: " + phone.Text.ToString() + " <br/><br/>Message:<br/> " + remabox.Text.ToString();
message.IsBodyHtml = true;
// finaly send the email:
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com";
smtp.Port = 587;
smtp.Credentials = new System.Net.NetworkCredential("123@gmail.com", "123");
smtp.EnableSsl = true;
smtp.Send(message);
lbltxt.Visible = true;
name.Text = "";
emailid.Text = "";
phone.Text = "";
remabox.Text = "";
lbltxt.Text = "Thank you for supporting NaatKhawan";
Source: (StackOverflow)
I am working with a database hosted at GoDaddy using Microsoft SQL Server Management Studio (version 10, for SQL Server 2008).
I am getting this message:
See Object Explorer Details for objects in this folder
probably because they have more than 2500 databases there.
I can still access everything from the Object Explorer Details, but it's a pain when you have to do it everyday.
Does anyone know any way to get the database I am working on to appear in the Object Explorer on the left?
Source: (StackOverflow)
I created a rewrite rule in IIS7 that uses the trackAllCaptures="false" attribute in the conditions element and uses outboundRules. All works fine on my test system however when I deploy these rules to GoDaddy I get the error:
Unrecognized attribute 'trackAllCaptures'
And if I include the outboundRules node I get a 500 error from the server. I spoke with their support and they insist that they have support for the 2.0 version of the URL Rewrite module. My question is how do I verify or communicate to them how to check the version of this module? I can't find a way anywhere short of attempting to install it on how to check the version.
I'm attempting to rewrite URL's for an ASP.Net application not WordPress in order to remove the sub-folder from the URL this is a very prevalent issue in their multi-domain hosting. The sample I am using is located here: http://weblogs.asp.net/owscott/archive/2010/05/26/url-rewrite-multiple-domains-under-one-site-part-ii.aspx
Source: (StackOverflow)