Showing posts with label godaddy. Show all posts
Showing posts with label godaddy. Show all posts

Tuesday, August 18, 2009

Setting up Hardy Heron with Apache2 and multiple Domains

Finally cracked setting up multiple domains on my shiny new Ubuntu server. In case it helps anyone else out of a hold, here are my tips for easy domain management.

1. Use GoDaddy and their total DNS option (google for instructions) This means you don't have to worry about a name server. Just setup your domains and subdomains with an A record that points to your IP address. If your domain is currently pointing to a nameserver other than GoDaddy's change the nameserver option to Forwarding - wait a few mins, then you use Total DNS.


2. in /etc/apache2/site-available, create one file for each domain, I just used the domain name for the filename, eg. mydomain.com This should contain something like:



ServerName mydomain.com
ServerAlias www. mydomain.com
DocumentRoot /home/django/mydomain

...and all the other usual stuff ...




3. in /etc/apache2/sites-enabled create a dynamic link to the file you just created in sites-available. Ordering is import so add a sequence number to the beginning of the name. Ensure sub-domains come before main domain entry.

eg.

ln -s /etc/apache2/sites-available/blog.mydomain.com 010-blog.mydomain.com
ln -s /etc/apache2/sites-available/mydomain.com 011-mydomain.com


4. And this is what I had missed. Ensure there is a default file in your sites-available that includes this line:

NameVirtualHost *:80


That's all I have in mine. And have a dynamic link in sites-enabled so that DEFAULT IS RUN FIRST.

eg, ln -s /etc/apache2/sites-available/default 000-default

5. restart apache eg. /etc/init.d/apache2 restart

6. Cross fingers and enter domain in the browser.

If you are doing this all at once, it takes a while for the changes to propogate through from godaddy, so be patient.

Wednesday, January 30, 2008

GoDaddy Support Poor - Moving to MyHost.ie

Am finding the support provided by Godaddy, both their online information and the people providing email support frustratingly inadequate. For example, I want to use the FTP backup facility provided. Nowhere does it tell me how to set it up so I sent in an email support request. Correspondance went like this:


MY QUESTION:

I have spent the last hour searching for how to setup the FTP backup on my server so that I can use backup. After scouring your help, help on plesk, googled etc. I still can't see how to setup the IP address that seems to be required here. I'm sure this information is available somewhere but I have to admit defeat in trying to find it.

FTP Backup Info:
User Name: pbright
IP Address: Pending Setup
Disk Quota: 10 GB
Quota Used: 0.000 GB


THEIR ANSWER

To access your FTP Backup information and/or reset the password:

First, log into your customer account:

• Go to the Go Daddy Account Login Page
• Log in using your account username (which may be the same as your customer number) and password

If you have trouble logging in, our password reset form may help you. You can find this form through the following link:

Account Retrieval Page

• Click ‘Dedicated & Virtual Dedicated Servers’ under the ‘Hosting & Email’ menu at the top
• Click ‘Launch Manager’ for the server you wish to manage
• Click the 'FTP Backup' option
• Your backup server IP address, username and password reset option will be presented.

HOW I WOULD HAVE LIKED TO RESPOND, BUT WAS TOO POLITE TO DO SO

Yes you idiot, I sent you the text from that page and as you can see, if you could only read, there is no IP address, it says Pending Setup, that is why I contacted you.

This has now been forwarded to Advanced Technical Support.



Much more seriously, I suddenly cannot ssh or ftp to the server, although everything appears to work fine,

I sent them an email saying I cannot ssh

MY QUESTION
About 10 hours ago I was able to ssh onto my server fine. Went to bed and now trying to start work and I get permission denied when trying to access server via ssh.

eg The-Main-Man:~ phoebebr$ ssh pbright@72.167.98.15
pbright@72.167.98.15's password:
Permission denied, please try again.
pbright@72.167.98.15's password:

Same with editor and database package.
Can access Plesk control panel
Websites are running fine
Have restarted server

I have not changed anything since last night, so why can't I ssh suddenly????

THEIR RESPONSE

We do not modify your password and using the credentials on file we are not able to access your server. We suggest resetting your root SSH password from within your server account manager. This will not change your Plesk password. You may want to review your server logs for any additional information.
....

I DID THAT

I didn't work, so I reponded

Reset password as suggested. Still not letting me in. Tried ssh as
both admin and root with the new password and neither works.

The-Main-Man:~ phoebebr$ ssh admin@72.167.98.15
admin@72.167.98.15's password:
Permission denied, please try again.
admin@72.167.98.15's password:
Permission denied, please try again.
admin@72.167.98.15's password:
Permission denied (publickey,password,keyboard-interactive).
The-Main-Man:~ phoebebr$ ssh root@72.167.98.15
root@72.167.98.15's password:
Permission denied, please try again.
root@72.167.98.15's password:
Permission denied, please try again.
root@72.167.98.15's password:

The Plesk password remains unchanged. I suspect this is not a
password issue but have not idea where to look. Nobody else has
access to this server so nothing that I have control over could have
been changed to make it suddenly stop allowing me permission. Any
other ideas?
AND WOULD YOU BELIVE THE RESPONSE

Thank you for contacting Server Support.

When logging into SSH you will need to use your server user name and then switch to the root user. So accessing SSH from the terminal will look like this :

ssh pbright@72.167.98.15

You will need to switch to the root account by running the following command once you are logged into SSH with your normal user :


su -


It will then prompt you for your password which is the same password as the one you used to login to SSH.

HARD TO KNOW HOW TO RESPOND

But I continue to be polite:

But I can't login to SSH, that is my problem.

I awaite their response with interest, but in the meantime and switching to myhost.ie. Here is their response to my question about who does their support:


What kind of support do you provide and is it your own staff or outsourced?

We use a combination. Our immediate staff is Irish based but we use the expertise of a UK company for a lot of our PLESK support.

We have been partered with them for over 5 years now and have a good relationship built, we also have our foot in the door with the SW SOFT developers (the guys who developed PLESK and Virtuozzo) so we have a good peg above a lot of PLESK providors in that respect.

We also have techs working 24x7 so urgent matters can be handled.


In saying that , our VPS ranges come unmanaged as well as managed so depending on what option you go for determines what level of support is delivered.


Will report on how I get on....

Tuesday, November 6, 2007

Setting up new Godaddy VPS

Mods to linux:
1. Modified .bashrc in my home directory and root and added:

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

alias ls='ls -laF --color'

(used vi, ugh http://freeengineer.org/learnUNIXin10minutes.html#Vi)

2. installed emacs

yum install emacs

3. Copied previously zipped domain code from old server using ftp mput

(http://www.cs.colostate.edu/helpdocs/ftp.html)

and unzipped into domain directories

/var/www/vhosts/ggjump.com/httpdocs

and change ownership

chown -R pbright *


4. Setup locate database

Checked not already in cron

crontab -l

Added /etc/cron.daily/mlocate.cron to run daily using Plesk
Ran script to get it started
sh /etc/cron.daily/mlocate.cron

5. Used to having domains in /home so put in dynamic links

ln -s /var/www/vhosts/ggjump.com/httpdocs
etc.


6. Get mysql server accessible from desktop

cd /home
7. Transferred data from mysql databases using Navicat and for each database create new users.

7.5 Create Domain template and User Phoebe Bright

8. For each domain
In domain part of godaddy
- setup nameservers (http://help.godaddy.com/article.php?article_id=653&topic_id=60)
- in nameserver put in new names, eg. ns1.ggjump.com
- modify index.php for this domain so I can tell when/if transfer takes place

9. Install ZendGData
http://code.google.com/support/bin/answer.py?answer=76585&topic=12027#appendix
- downloaded and installed in /usr/include/php/ZendGdata
- amended /etc/php.ini include
include_path = ".:/usr/include/php:/usr/include/php/ZendGdata"
restart

10. Customised php.ini
- display_errors on
- log_errors off
- safe_mode off
restart

11. Fixed default safe_mode on

For each domain, when setting up make sure the safe mode tickbox next to the php tickbox is set to off. There are domain specific settings for php in
# /var/www/vhosts/ggjump.com/conf/vhost.conf
# /var/www/vhosts/ggjump.com/subdomains//conf/vhost.conf
can modify these manually but likely to be overwritten.