Monday, January 21, 2013

Setup Own Name Server on Godaddy

http://support.godaddy.com/help/article/7513/setting-up-nameserver-dns-using-cpanel?pc_split_value=2

To Set up Nameserver DNS Using cPanel

  1. Open a Web browser and navigate to:
    https://[[ipaddress]]:2087/
    where [[ipaddress]] is the IP address for your dedicated server.
  2. Enter root as your user name and enter the password you specified when you set up your dedicated server account.
  3. Click OK.
  4. Click DNS Functions, and then click Edit DNS Zone.
  5. Select the domain name you want to update the DNS for, and click Edit.
  6. By default two NS records display for your domain name. Edit the first NS record to read ns1.yourdomain.com.
    NOTE: Don't forget the period after your nameserver. You need a "." after your nameserver for the DNS to work properly.
  7. Edit the second NS record to read ns2.yourdomain.com.
  8. In the Add New Entries Below this Line area, select A from the first drop-down list.
  9. Enter ns1 in the blank field on the left.
  10. In the IP or Hostname field, enter the server IP for the domain name.
  11. In the second new entry row, select A from the drop-down list.
  12. Enter ns2 in the blank field on the left.
  13. In the IP or Hostname field, enter the server IP for the domain name.
  14. Click Save.
  15. Now you need to restart the DNS service to ensure these changes take effect on your server. Click Home, and then click Restart Services.
  16. Click DNS Server (BIND/NSD).
  17. Click Yes to restart the service. Allow a few minutes for the service to restart. DNS can take 24-48 hours to propagate once these changes have been made
Monday, January 7, 2013

How to run symfony and magento on Godaddy

http://gfaraj.wordpress.com/2008/04/25/deploying-a-symfony-project-on-godaddy-shared-hosting/

Next,
you need to modify the .htaccess file. Go ahead and uncomment the RewriteBase line in the default symfony .htaccess file:
  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  RewriteBase /
This should prevent ‘www.myhost.com/mymodule’ from getting a 404 error from GoDaddy. Now, at least you might get forwarded to your 404 module/action. This is, at least, some proof that you’re moving forward. If you turn on logging (logging is turned off for production configurations by default), you might see the following:
  1 Info Context initialization
  2 Info Controller initialization
  3 Info Routing match route [default_index] "/:module"
  4 Info Request request parameters array ( 'module' => 'index.php', 'action' => 'index',)
  5 Info Controller dispatch request
  6 Info Controller action "indexphp/index" does not exist
As you can see, the module/action resolution is very wrong. This, of course, results in Symfony forwarding to your 404 module/action. Well, it turns out that adding one line to your php5.ini fixes this.
  cgi.fix_pathinfo = 1
This worked nicely for me, and I hope it works for you. I’m posting my full php5.ini and .htaccess files for completeness.
Addendum
It has come to my attention that some people are still having problems after making the changes described here. You might want to try one more change. In your application’s config/settings.yml file, set the following setting:
prod:
  .settings:
     path_info_key: REDIRECT_URL

php5.ini

register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
memory_limit = 20000000
session.gc_maxlifetime = 72000

#log_errors = On
#error_log = php_error.log
#display_errors = On
#error_reporting  =  E_ALL

magic_quotes_gpc = false
cgi.fix_pathinfo = 1

[Zend]
zend_extension=/usr/local/zo/ZendExtensionManager.so
zend_extension=/usr/local/zo/4_3/ZendOptimizer.so
.htaccess
Options +FollowSymLinks +ExecCGI

  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  RewriteBase /

  # we skip all files with .something
  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]

# big crash from our front web controller
ErrorDocument 500 "

Application error

symfony application failed to start properly"