ubuntu-12.04

PHP not displaying errors - Internal Server Error (500)

和自甴很熟 提交于 2019-12-04 15:57:51
问题 I've set up a fresh install of Ubuntu Server 12.04 LTS on Amazon AWS with *Apache2/MySQL/PHP5. When I run a PHP script and it encounters an error I don't see any error reporting from PHP, all I see is HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request. I have checked my /etc/php5/apache2/php.ini file and as far as I can tell error reporting should be set up. The contents of the file (regarding errors) are: ;

Changing the user that nginx worker processes run under (Ubuntu 12.04)

你。 提交于 2019-12-04 15:37:42
问题 I have a manual install of nginx on Ubuntu 12.04. When I ran ./configure I used the following options: ./configure --user=www-data --group=www-data --with-http_ssl_module --with-http_realip_module Now the nginx worker processes run under the www-data user in the www-data group. However, I wish to change this to a different user (called nginx in my case). Is this possible to do after running make and make install already? Any help would be much appreciated. 回答1: As long as your new user (

copy/transfer eclipse from one ubuntu(linux) machine to other

别来无恙 提交于 2019-12-04 14:57:01
I have eclipse downloaded on one of my ubuntu machines. and now I want eclipse on my other ubuntu machine. how can I do this? In the computer you have eclipse installed: Backup the folder containing eclipse (usually it's in the /opt folder) sudo cp -r /opt/eclipse /folder/to/backup/eclipse In the one you want eclipse to be installed: Copy eclipse to the opt folder sudo cp -r /backup/eclipse /opt/eclipse Add read permission to all files chmod -R +r /opt/eclipse Add the executable bit to the eclipse binary chmod +x /opt/eclipse/eclipse Add an executalbe entry to /usr/bin sudo touch /usr/bin

Cakephp Cake command returns No such file or directory

泪湿孤枕 提交于 2019-12-04 14:38:30
问题 I have been using the cake command on my linux server for 2 years. but now im trying to move to a new server and some how the cake command gives back the error: No such file or directory even if i give the entire path to the cake command file chmod 777 it stil wont work. 回答1: I found the solution: All I had to do is use the program dos2unix the cake file for CakePHP 2.4.2 has wrong endings when you download it with Ubuntu 13.10 I used the following command: sudo dos2unix /path/to/cake/lib

Trying to delete all but most recent 2 files in sub directories

坚强是说给别人听的谎言 提交于 2019-12-04 13:13:52
I'm creating a cron that cleans subdirectories (first child only) of a specified folder of all but the most recent two files but running into issues. These are my attempts: find ./ -type d -exec rm -f $(ls -1t ./ | tail -n +4); find . -maxdepth 2 -type f -printf '%T@ %p\0' | sort -r -z -n | awk 'BEGIN { RS="\0"; ORS="\0"; FS="" } NR > 5 { sub("^[0-9]*(.[0-9]*)? ", ""); print }' | xargs -0 rm -f I also tried to create an array of files with the intention of going through the total minus 2, but the array was not populating with all files: while read -rd ''; do x+=("${REPLY#* }"); done < <(find .

libusb cannot open USB device, permission isse. NetBeans/Ubuntu

坚强是说给别人听的谎言 提交于 2019-12-04 12:55:27
问题 I'm writing a C/C++ application in NetBeans based on libusb-1.0 on Ubuntu 12.04. I can get basic information from the USB device (for example, the interface description) but I am not able to open the device. The function libusb_open gives me the error: libusb:error [op_open] libusb couldn't open USB device /dev/bus/usb/002/003: Permission denied. libusb:error [op_open] libusb requires write access to USB device nodes. I understand that I need to change the permissions but I don't know how (I

How to install Docker on 32bit machine having Ubuntu 12.04?

拥有回忆 提交于 2019-12-04 10:31:18
问题 I have followed the docker installation doc for installing it on my machine which is a 32 bit machine running Ubuntu 12.04 The step $ sudo apt-get install docker-engine fails saying E: Unable to locate package docker-engine It should have been installed, right? Also I came to know that, Docker currently only supports 64bit platforms. $ wget -qO- https://get.docker.io/ | sh Error: you are not using a 64bit platform. Docker currently only supports 64bit platforms. Is there a way to I install it

What is the difference between ServerName and ServerAlias in apache2 configuration?

徘徊边缘 提交于 2019-12-04 10:19:58
问题 I am configurating my apache2 server and I wonder whats the difference between ServerName and ServerAlias. Is the ServerName always a name without www as like google.de and the ServerAlias is www.google.de Even if it's like this, I don't get it :) sorry. I am not a professional (now) so thank you for your help! Every help will upvoted immediately. 回答1: From the Documentation: ServerName : Hostname and port that the server uses to identify itself ServerAlias : Alternate names for a host used

wget: unable to resolve host address `http'

女生的网名这么多〃 提交于 2019-12-04 10:04:26
问题 I am getting this strange thing on my Ubuntu 12.04 64-bit machine when I do a wget $ wget google.com --2014-07-18 14:44:32-- http://google.com/ Resolving http (http)... failed: Name or service not known. wget: unable to resolve host address `http' I have encountered this problem earlier when I got it for any web pages (and not http), which required me to add my nameserver to /etc/resolv.conf . However, here that doesn't seem to be the problem, instead it is recognizing http as something

Riak node no longer working after changing IP address

风格不统一 提交于 2019-12-04 10:01:44
I'm using an instanced Amazon EC2 virtual Ubuntu 12.04 server as my single Riak node. I've gone through all the proper stages of setting up Riak on the instance using the guide on the basho website here . Where x.x.x.x is the private IP address of the instance, this included: Installation Using sudo su - to gain root privileges (EC2 logs me in as 'Ubuntu'). Installing the SSL Lib with: sudo apt-get install libssl0.9.8 Downloading the 64-bit package for 12.04: wget http://downloads.basho.com.s3-website-us-east-1.amazonaws.com/riak/CURRENT/ubuntu/precise/riak_1.2.1-1_amd64.deb Then unpacking via