ubuntu-14.04

Installed lamp on ubuntu server on an ec2 amazon instance, still can't access server through browser with apache running. Why?

不问归期 提交于 2019-12-08 08:53:55
问题 I started an instance on amazon ec2, ami is ubuntu 14.04. I followed the steps on https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html exactly up until "Transferring Files to Your Linux Instance Using the PuTTY Secure Copy Client" Since I don't need to put files on there just yet. Then I followed the following: https://help.ubuntu.com/community/ApacheMySQLPHP. "To install the default LAMP stack in Ubuntu 10.04 and above First refresh your package index... $ sudo apt-get update ...

Exception in thread “main” org.hibernate.HibernateException: Error accessing stax stream

纵饮孤独 提交于 2019-12-08 08:23:12
问题 I am making hibernate application using ubuntu trying to connect hibernate with mysql but this exception is arising. What should I have to do now to solve this? Exception in thread "main" org.hibernate.HibernateException: Error accessing stax stream at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:107) at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:65) at org.hibernate.boot.cfgxml.internal.ConfigLoader

Unable to openssl verify SSL certificate

不羁的心 提交于 2019-12-08 08:10:43
问题 What I want to do: Get a clean connection with openssl -connect to a remote site. Site seems self signed. What I'm getting: CONNECTED(00000003) depth=0 CN = DC01.home.pri verify error:num=20:unable to get local issuer certificate verify return:1 depth=0 CN = DC01.home.pri verify error:num=27:certificate not trusted verify return:1 depth=0 CN = DC01.home.pri verify error:num=21:unable to verify the first certificate verify return:1 ... ... Verify return code: 21 (unable to verify the first

How to setup base URL in codeigniter running on Ubuntu 14.04?

早过忘川 提交于 2019-12-08 07:12:25
问题 Installed LAMP stack. Right now I've extracted codeigniter files to /var/www/ci but while running on browser http://localhost/ci/ the welcome page doesn't display. 回答1: Finally found the answer. Have to enable the site. In /etc/apache2/sites-available/000-default.conf file shud modified as follows: <VirtualHost *:80> DocumentRoot /var/www/ ServerAdmin webmaster@localhost <Directory /var/www/ci/> AllowOverride All </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}

Eric5: The OK button of 'new project' dialog is disable

旧时模样 提交于 2019-12-08 04:13:55
问题 I have installed Eric5 successfully. But I could not create a new project, as the 'OK' button of the 'Project Properties' dialogue is disable. Help ! Thank you very much. PS: I install the dependence via synaptic. System is Ubuntu 14.04. I have fund a indirect solution: Download a example source, for example, from the tutorial of python: tutorial of Eric4 edit the *.e4p file with a text editor, make sure the value of 'version' of 'Project' section is 5.0 or higher. Return Eric IDE, open the

cannot allocate memory error

社会主义新天地 提交于 2019-12-08 03:18:32
问题 I just ported my app over from python so I'm a bit new to Go. It seems I am having a memory issues. getAudioOnlyInfo: fork/exec /usr/local/bin/youtube-dl: cannot allocate memory. This is run on a ubuntu machine. Via supervisor. Edit: setting the sysctl -w vm.swappiness=1 resolve the issue 回答1: For anyone else who runs into this problem, it was a related recent issue in the golang issue For all those affected, temporary workaround on Linux until it is fixed properly can be one of following:

What can I do against 'CUDA driver version is insufficient for CUDA runtime version'?

泄露秘密 提交于 2019-12-08 01:32:21
问题 When I go to /usr/local/cuda/samples/1_Utilities/deviceQuery and execute moose@pc09 /usr/local/cuda/samples/1_Utilities/deviceQuery $ sudo make clean rm -f deviceQuery deviceQuery.o rm -rf ../../bin/x86_64/linux/release/deviceQuery moose@pc09 /usr/local/cuda/samples/1_Utilities/deviceQuery $ sudo make "/usr/local/cuda-7.0"/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch

Installing sublime text 3 on AWS Ubuntu 14.04.1 LTS

淺唱寂寞╮ 提交于 2019-12-07 23:51:20
问题 Sublime-text is a fast editor for Windows and Linux. I failed to install sublime text 3 on AWS Ubuntu 14.04.1 LTS using the following commands: sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get install sublime-text-installer Results in following error message: p: cannot create regular file "/usr/share/icons/hicolor/16x16/apps/": No such file or directory dpkg: error processing package sublime-text-installer (--configure): subprocess installed post

\copy permission denied while importing CSV to Postgres on Ubuntu

孤者浪人 提交于 2019-12-07 19:51:16
问题 I'm using Postgres on Ubuntu 14.04 and I've been trying to import a csv file to a table in Postgres called 'weather'. I've looked at the question Postgres ERROR: could not open file for reading: Permission denied and tried using the \copy command instead of the regular copy, but I still get the same Permission Denied error. I'm somewhat hesitant to modify ownership permissions for all files for that directory for all the users (as suggested in the first answer). Here's the copy statement:

vagrant and ubunutu: pip install jupyter error: Storing debug log for failure in /home/vagrant/.pip/pip.log

99封情书 提交于 2019-12-07 19:29:56
问题 I want to install jupyter on ubuntu 14.04(vagrant) with the command: sudo pip install jupyter, but there is error, could you tell me how to solve it. vagrant@vagrant-ubuntu-trusty-64:~$ pip install jupyter Downloading/unpacking jupyter Downloading jupyter-1.0.0-py2.py3-none-any.whl Downloading/unpacking ipywidgets (from jupyter) Downloading ipywidgets-6.0.0-py2.py3-none-any.whl (46kB): 46kB downloaded Cleaning up... Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist