ubuntu-12.04

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

独自空忆成欢 提交于 2019-12-18 08:59:10
问题 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

PHP cannot find MongoDB driver

放肆的年华 提交于 2019-12-18 07:22:32
问题 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

PHP cannot find MongoDB driver

為{幸葍}努か 提交于 2019-12-18 07:22:05
问题 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

Python: ImportError: /usr/local/lib/python2.7/lib-dynload/_io.so: undefined symbol: PyUnicodeUCS2_Replace

。_饼干妹妹 提交于 2019-12-18 04:48:17
问题 I am trying to build a triviol Python script that will grab data from URL and save it onto the server. Concider the below code: #!/usr/bin/python import pprint import json import urllib2 def getUSGS_json(): print "Fetch data from URL" fileName = 'data/usgsEarthquacks_12Hrs.json' url = 'http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson' data = urllib2.urlopen(url).read() if data: try: with open(fileName) as jsonGetData: filePut = open(fileName, 'w+') #add data filePut

RVM Ruby on Rails installation

痴心易碎 提交于 2019-12-18 02:57:18
问题 I'm having a trouble installing rvm ROR on my machine using ubuntu 12.04 here are the outputs I'm getting: Output #1: Searching for binary rubies, this might take some time. No binary rubies available for: ubuntu/12.04/i386/ruby-1.8.7-p371.Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for ubuntu, might require sudo password. and at the end of the line of update I get this: Output #2: There has been error while updating

python error: no module named pylab

假装没事ソ 提交于 2019-12-17 21:43:57
问题 I am new to Python and want to use its plot functionality to create graphs. I am using ubuntu 12.04. I followed the Python installation steps from http://eli.thegreenplace.net/2011/10/10/installing-python-2-7-on-ubuntu/ but when I do from pylab import * I am getting this error >>> from pylab import * Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named pylab My Python version is python 2.7 . Can anybody tell me what I am missing here? 回答1: You'll

How do I configure Chef Solo to install Nginx on a new Vagrant box?

∥☆過路亽.° 提交于 2019-12-17 17:58:27
问题 I'm new to Chef and the documentation (even the home page of their website) makes my head spin. I'm not even sure if I'm using it for the correct purpose. My intent is to setup a Vagrantfile that tells Chef Solo to install some software automatically when I spin up a new box. That is one of Chef Solo's intended uses, am I correct? I'm not really sure if that qualifies as one of "the hardest infrastructure challenges on the planet" , but whatever. My first goal is to get Chef Solo to install

Getting error while running django-cms demo page

爱⌒轻易说出口 提交于 2019-12-17 17:46:16
问题 I tried all of the procedure for installing django-cms, after that when i try to run a demo page i getting the below error. (djvenv2)shan@shan:~/workspace/projects/djvenv$ pip freeze Django==1.6.2 PIL==1.1.7 Pillow==2.4.0 South==0.8.4 argparse==1.2.1 dj-database-url==0.3.0 django-classy-tags==0.5.1 django-cms==3.0 django-mptt==0.6.0 django-sekizai==0.7 djangocms-admin-style==0.2.2 djangocms-installer==0.4.1 html5lib==0.999 six==1.6.1 wsgiref==0.1.2 (djvenv2)shan@shan:~/workspace/projects

How to check which PHP extensions have been enabled/disabled in Ubuntu Linux 12.04 LTS?

Deadly 提交于 2019-12-17 17:28:54
问题 I'm using Ubuntu Linux 12.04 LTS on my local machine. I've installed LAMP long ago on my machine. Now I want to enable following PHP extensions: php_zip php_xml php_gd2 For it first I want to check whether these PHP extensions are enabled or not. I searched a lot about how to check the installed/enabled PHP extensions but every time I found how to install these extensions on Ubuntu Linux. So can someone please let me know how should I check the enabled/disabled PHP extensions in Ubuntu Linux

How to connect with host PostgreSQL from vagrant virtualbox machine

与世无争的帅哥 提交于 2019-12-17 15:29:19
问题 I have a VirtualBox machine running Ubuntu 12.04 in a Mac OS X host machine. In my host machine (Mac OS X), I have PostgreSQL installed. I would like to connect to this PostgreSQL server from my Ubuntu virtual machine (I know normally it's the opposite way). I guess I should configure some networking parameters in VirtualBox itself. All I get from Vagrant docs is I need to assign my vm a static IP to use a private network. But once created, how do I reach my host from my guest? I didn't find