Posts Tagged ‘error’

’502 Bad Gateway’ when running WordPress with spawn-fcgi nginx php

I am running a WordPress blog using nginx + PHP + spawn-fcgi and it works fine, but once a day spawn-fcgi seems to crash.

(more…)

‘xterm-256color’: unknown terminal type.

The following error popped up when I was accessing a Ubuntu EC2 instance from my MacOS X system:

xterm-256color’: unknown terminal type.

To fix this error I needed to install ncurses-term via

sudo apt-get install ncurses-term

YAML parsing errors in Rails 3.0.x application (couldn’t parse YAML)

I’ve just got this error in my Rails 3.0.7 application:

Psych::SyntaxError (couldn’t parse YAML at line 289 column 14)

To fix this I needed to add

require 'yaml'
YAML::ENGINE.yamler= 'syck'

into my first two lines of the config/boot.rb

Cannot set LC_* to default locale

I got the following errors when I ran

locale

on my Debian installation:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory

To fix this I executed

localedef -i en_US -c -f UTF-8 en_US.UTF-8

to redefine my locale-settings.

error: Unexpected HTML page found at http://trac-hacks.org/svn/accountmanagerplugin/0.10

I got the following error:

error: Unexpected HTML page found at http://trac-hacks.org/svn/accountmanagerplugin/0.10

To fix it, you need to update setuptools via

sudo easy_install -U setuptools

phpize not found

I needed to install phpize on my Ubuntu system

The phpize command is used to prepare the build environment for a PHP extension. [...]

and got the following error:

phpize not found

To solve this problem i needed to install the php5-dev package

sudo apt-get install php5-dev