ubuntu-12.04

nginx + uwsgi: — unavailable modifier requested: 0 --

拟墨画扇 提交于 2019-11-29 20:22:34
Ubuntu 12.04, nginx 1.2.0, uwsgi 1.0.3. I start uwsgi with the following command: uwsgi -s 127.0.0.1:9010 -M -t 30 -A 4 -p 4 -d /var/log/uwsgi.log On each request nginx replies with 502 and uwsgi writes to log the following line: -- unavailable modifier requested: 0 -- Original answer For Python 2 on Ubuntu 11.10, using upstart , install the python plugin for uWSGI with apt-get install uwsgi-plugin-python and if you're using an ini file to configure your uWSGI app, then add plugins = python to the [uwsgi] section and it should solve this problem. Edit: Updated for Python 3 and Ubuntu 17.10 For

gcc cannot find bits/predefs.h on i686

给你一囗甜甜゛ 提交于 2019-11-29 19:47:57
Okay, so, I switched from ubuntu 12.04 64-bit to 32-bit and installed build-essential. I then compiled and installed GMP-5.0.5, MPFR-3.1.1, MPC-1.0, ISL-0.10 and CLOOG-0.17.0. I checked out a copy of the main gcc trunk and attempted to build it with the following configure line (from a separate directory): ../svnsrc/configure --prefix=/usr/GCC/svn --enable-__cxa_atexit --with-plugin-ld=/usr/bin/ld.gold --enable-threads=posix --enable-werror --enable-build-with-cxx --with-gmp=/usr/GCC/prereq/svn --with-mpfr=/usr/GCC/prereq/svn --with-mpc=/usr/GCC/prereq/svn --with-isl=/usr/GCC/prereq/svn --with

What is the difference between sites-enabled and sites-available directory?

旧城冷巷雨未停 提交于 2019-11-29 18:56:05
What is use of these two directories in apache2 and how can we do it? ABC The difference is that virtual sites listed in the sites-enabled directory are served by apache. In the sites-available directory there are the virtual sites that exist on your server but people can't access them because they are not enabled yet. sites-available: this directory has configuration files for Apache2 Virtual Hosts. Virtual Hosts allow Apache2 to be configured for multiple sites that have separate configurations. sites-enabled: like mods-enabled, sites-enabled contains symlinks to the /etc/apache2/sites

Eclipse 4.2 (Juno) 'Cannot create a server using the selected type' in Tomcat 7

北城以北 提交于 2019-11-29 18:45:02
I have installed: eclipse juno java-6-openjdk-i386 (selected as default JRE in Eclipse) java-7-openjdk-i386 When I try to add a new server Tomcat7 in Eclipse I get this message 'Cannot create a server using the selected type' and I can not continue. No problem adding Tomcat6 server. I read this question but it didn't worked Similar Question Joe 1 . To fix the error 'Cannot create a server using the selected type' run the following: cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/ rm org.eclipse.jst.server.tomcat.core.prefs rm org.eclipse.wst.server.core.prefs 2 . Once you

OpenSSL trouble with Ruby 1.9.3

两盒软妹~` 提交于 2019-11-29 18:07:01
问题 I am having a semi-serious problem with OpenSSL 1.0.1 + Ruby 1.9.3 on Ubuntu 12.04. All rubies are installed with rvm require 'uri' require 'net/http' require 'net/https' endpoint = "https://secure.mmoagateway.com/api/transact.php" RUBY_184_POST_HEADERS = { "Content-Type" => "application/x-www-form-urlencoded" } body = "orderid=ae5dd847d9f31209cbffeeea076ed966&orderdescription=Active+Merchant+Remote+Test+Purchase&ccnumber=4111111111111111&ccexp=0913&cvv=123&company=Widgets+Inc&address1=1234

I'm Confused with Memcache vs Memcached vs php5-memcache

独自空忆成欢 提交于 2019-11-29 15:28:02
I followed the instruction in this tutorial on how to install nginx, php, and mysql including the php5-memcache. I'm wondering if I still need to install the memcache or memcached without the "php5" prefix . As of now my WordPress site is complaining the ff: The following memcached servers are not responding or not running: Page Cache: 127.0.0.1:11211. Database Cache: 127.0.0.1:11211. Object Cache: 127.0.0.1:11211. This message will automatically disappear once the issue is resolved. If it is needed to be installed, will it not conflict with php5-memcache? Or something like an overkill usage

Failed to build gem native extension (mkmf (LoadError)) - Ubuntu 12.04 [duplicate]

。_饼干妹妹 提交于 2019-11-29 14:42:40
This question already has an answer here: Unable to install gem - Failed to build gem native extension - cannot load such file — mkmf (LoadError) 9 answers Hey I'm trying to install rails on a new ubuntu machine. I have ruby and rvm installed but I'm getting a "failed to build gem native extension" error. What does this mean? $ sudo gem install rails -v 3.2.9 (without the sudo says I don't have permissions) Then it outputs a lot of 'fetching' commands and ultimately this error: Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem

PHP cannot find MongoDB driver

你离开我真会死。 提交于 2019-11-29 12:30:52
On my Ubuntu 12.04 installation I install PHP5 (5.5) from the ondej package. Everything works ok with the PHP, Apache and MySQL, I also successfully install Mongo daemom and Mongo client. But then PHP cannot locate the MongoDB driver in pear. I have followed all the steps explained in the documentation I have added the extension to the php.ini file in the CLI folder restarted the server updated everything and restart the server again. I have been stuck on this issue quite long time now. Where should I look in. My Ubuntu is also running on a virtual machine I have tried both on VMWare and

How to install the fftw3 package of R in ubuntu 12.04?

梦想的初衷 提交于 2019-11-29 11:00:52
I am trying to install the fftw3 package through R console >install.packages("fftw") After this command it is asking to select the cran mirror.I have selected the cran mirror then following error occurs: Loading Tcl/Tk interface ... done Warning: unable to access index for repository http://ftp.iitm.ac.in/cran/src/contrib Warning messages: 1: In open.connection(con, "r") : unable to connect to 'cran.r-project.org' on port 80. 2: In getDependencies(pkgs, dependencies, available, lib) : package ‘fftw’ is not available (for R version 2.14.1) And When I am trying for fftw3 then following error

how to install pthread in ubuntu 12.10

余生长醉 提交于 2019-11-29 08:49:03
I have been strugling for hours on how to install pthread in my ubuntu server to allow php threading. Please help me. Mahesh V HOW TO INSTALL IN LINUX SYSTEM'S: The following instructions will result in an isolated installation of PHP that does not affect your current installation. 1) Checkout PHP sources into a new directory on your system cd /usr/src git clone https://github.com/php/php-src cd php-src 1a) Optionally checkout a specific version of PHP git checkout PHP-5.6 2) Download the pthreads sources to the build directory (/ext) cd ext git clone https://github.com/krakjoe/pthreads cd ../