dreamhost

Subdomain on different host

Hi everyone! I'm trying to host a subdomain for my site with a different hosting company and I'm running into issues on how to set it up. Here are the specifics: - Domain is registered with GoDaddy. - Nameservers are pointing to DiscountASP.net where ASP.NET app has been happily running for couple of years. - Would like blog.mydomain....

Upgrade Subversion 1.4.3 to 1.5.2 on Debian (hosted account)

I'm trying to upgrade my subversion server (I have it hosted with Dreamhost) This is what I run: wget http://subversion.tigris.org/downloads/subversion-1.5.2.tar.bz2 wget http://subversion.tigris.org/downloads/subversion-deps-1.5.2.tar.bz2 tar -xjf subversion-1.5.2.tar.bz2 tar -xjf subversion-deps-1.5.2.tar.bz2 cd subversion-1.5.2 ./c...

Why is this line breaking Rails with Passenger on DreamHost?

Ok, so I have a Rails app set up on DreamHost and I had it working a while ago and now it's broken. I don't know a lot about deployment environments or anything like that so please forgive my ignorance. Anyway, it looks like the app is crashing at this line in config/environment.rb: require File.join(File.dirname(__FILE__), 'boot') ...

Including ~/opt/lib libraries in a Passenger Rails App

I'm having trouble getting a rails app on Dreamhost's Passenger to see compiled libraries in my ~/opt/lib directory. I have to put them here because I don't have root access. I can boot up my app in ./script/console and it sees them libraries just fine because I updated my .bash_profile's LD_LIBRARY_PATH environment variable to inclu...

Unzipping files in PHP with zlib?!?

My web site is hosted at Dreamhost and there they only get zlib installed along with PHP. I couldn't figure out how to unzip files with the commom methods from this extension as described here : http://php.net/zlib Does anyone knows how can I unzip a .gz or .gzip file with zlib extension on PHP? That would save my life! ...

Deploying Django at Dreamhost

I'm trying to get the Poll tutorial working at my Dreamhost account (I don't have any prior experience of deploying Django). I downloaded the script I found here (http://gabrielfalcao.com/2008/12/02/hosting-and-deploying-django-apps-on-dreamhost/) at my home directory and executed it. Now I have Python 2.5 and Django in ~/.myroot/ and my...

Running Rails and PHP on Dreamhost

Hi, Is it possible to run some PHP pages at "example.com" AND also run a rails application at say "test.example.com" on Dreamhost? Has anyone done this? Or do I need to run rails apps on separate domains? Thanks. ...

Django with Passenger

I'm trying to get a trivial Django project working with Passenger on Dreamhost, following the instructions here I've set up the directories exactly as in that tutorial, and ensured that django is on my PYTHONPATH (I can run python and type 'import django' without any errors). However, when I try to access the url in a browser, I get ...

How do you implement simple website redirects?

If you go to www.codinghorror.com, it is automatically redirected to www.codinghorror.com/blog How does one re-direct to the "/blog/"? I'm using Dreamhost Shared Hosting, so my options of configuring the server are limited. ...

How to use Zend_Mail_Transport_Smtp with hosted Google Apps?

So I'm under the impression that bad things will happen if I don't use Zend_Mail_Transport_Smtp when sending lots of emails. Problem is...I can't figure out how to set it up. I host my website through DreamHost, and have my email (and other domain specific apps) through google. So to access my email, I go to mail.mydomain.com, which take...

Problem with Python modules

Hi! I'm uploading my first Django app to my Dreamhost server. My app uses xlwt package and since I can't install it in the default location ( /usr/lib/python2.3/site-packages/xlwt ), I installed it on another location by: python setup.py install --home=$HOME Then xlwt is installed here: /home/myuser/lib/python/xlwt/ After that, I ...

What's the difference between Rack and Passenger?

I'm trying to deploy a Sinatra app to Dreamhost and it says the following: Since DH supports Passenger, which in turn supports Rack-based ruby applications, DH does indeed support Sinatra. I'm having difficulty parsing that statement - what's the difference between Rack and Passenger (and why is Sinatra "Rack-based")? ...

Rails app randomly crashes with error "Premature end of script headers"

I am hosting a Ruby on Rails 2.0.2 application on DreamHost. It is on an Apache 2 server, running on top of Phusion Passenger. The application often returns a 500 error "Rails application failed to start properly", but at random times. It appears to happen when the application is under higher load, though I can't confirm this. It only ...

How to deploy a Rails app to Dreamhost?

I'm kind of lost, I try to deploy my application on a shared dreamhost server. Now everything works fine locally. It's my first try at Rails, and I'm not really a programmer or sysadmin, just hacking something together. On Dreamhost, if I start webrick, it works fine on port 3000, but webricks gets killed pretty quickly, I guess that ma...

How do I set up a basic website with registration in Python on Dreamhost?

I need to write a basic website on Dreamhost. It needs to be done in Python. I discovered Dreamhost permits me to write .py files, and read them. Example: #!/usr/bin/python print "Content-type: text/html\n\n" print "hello world" So now I am looking for a basic framework, or a set of files that has already programmed the whole registr...

Met a problem when runnning in dreamhost, django + mysql, can someone help look?

ProgrammingError at /account/register/ (1110, "Column 'about' specified twice")Request Method: POST Request URL: http: Exception Type: ProgrammingError Exception Value: (1110, "Column 'about' specified twice") Exception Location: /home/temp/lib/python2.6/site-packages/MySQL_python-1.2.3c1-py2.6-linux-x86_64.egg/MySQLdb/connections.py...

How do I run MySQL commands?

I'm in the process of updating my Symphony installation and I've been told to "run these MySQL commands" to complete the process. Funny thing... I have no idea how to do that. The commands I'm mean to run are as follows: ALTER TABLE `sym_sections` ADD `navigation_group` VARCHAR( 50 ) NOT NULL DEFAULT 'Content'; ALTER TABLE `sym_sect...

How to debug the MySQL error message: Caught an exception while rendering...

I am building Django +MySQL on dreamhost, but met the error messages: Caught an exception while rendering: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY tag.used_count DESC, tag.name ASC' at line 1") I traced hard and found the ...

what is the right version of django and mysqldb to go with dreamhost?

i am builing website on dreamhost. but found some version of python,django,mysqldb need to be bounded together. real life experience. ...

Deploy a Rails app on Dreamhost

I am trying to deploy my first Rails app. I copied all files to ~/mysite.com and set up MySql. Here's my configuration at Dreamhost. Now when I visit mysite.com I get a 404 error (which isn't my custom 404 error). It seems that Passenger does not run! What should I do? Do I need to start Passenger? (touch tmp/restart.txt does nothing)...