ubuntu-server

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

梦想与她 提交于 2019-12-06 00:11:39
I've just recently moved my websites from apache2 to Nginx as my new web server backend. got to love problems aha. HTML files in the web host director work prior to php files making there way main directory then I received 502 error from nginx Error message from nginx: SO thought it was code :) >tail -f /var/log/nginx/error.log >2018/07/03 15:27:45 [alert] 1275#1275: *48 open socket #3 left in connection 11 >2018/07/03 15:27:45 [alert] 1275#1275: aborting >2018/07/03 15:27:47 [crit] 4049#4049: *3 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting

enable firewall port 22 on ec2 server after disable it

孤街浪徒 提交于 2019-12-05 20:27:29
Step error: 1. sudo ufw enable 2. Command may disrupt existing ssh connections. Proceed with operation (y|n)? y 3. exit Before ssh again and can not access. On Security Group, port 22 is opening But firewall disable port 22. How to access server again? You could use the following simplest way (user-data) to turn off the ufw then access the instance and edit your firewall. stop the instance Edit the user data to disable the ufw once and let you access the instance start the instance Following is the user data: Content-Type: multipart/mixed; boundary="//" MIME-Version: 1.0 --// Content-Type:

Cannot access tomcat instance installed in EC2

六眼飞鱼酱① 提交于 2019-12-05 09:52:17
I have install tomcat 7 in an Ubuntu EC2 instance. It's up and running but I cannot access it using the public ip (54.213.225.148:8080). I have also setup the security groups as specified in the previous posts. But, still no luck. Any help on this would be really appreciated. Make sure your Ubuntu Uncomplicated Firewall is controlling the traffic instead of iptables. sudo ufw enable Then to configure it to allow 8080. sudo ufw allow 8080 On Ubuntu 14.04 in EC2 #to save the rules you have created and to load them when the server starts. sudo apt-get install iptables-persistent sudo service

How to execute a php script every day [duplicate]

若如初见. 提交于 2019-12-04 20:02:32
Possible Duplicate: Cron job on Ubuntu for php I am running and ubuntu server and wanted to run a php script every day. I have done some research and found that cron is the best way of doing this however, this is where i got stuck, a lot of the information on the internet about cron is very hard to follow and understand. So i wanted to execute a simple php script once a day, the script i made for testing simply just deletes a record from a database, but the real script will do a lot more. I tried setting up a task through plesk which is provided through my web host service but it didn't seem

docker login fails on a server with no X11 installed

穿精又带淫゛_ 提交于 2019-12-03 05:45:36
问题 I am trying to deploy a docker configuration with images on a private docker registry. Now, every time I execute docker login registry.example.com , I get the following error message: error getting credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY` The only solution I found for non-macos users was to run export $(dbus-launch) first, but that did not change anything. I am running Ubuntu Server and tried with both the Ubuntu Docker package and the Docker-CE

Unable to connect to mongo on remote server

安稳与你 提交于 2019-12-03 03:10:30
I have installed mongo on machine1( Ubuntu 14.04.3 LTS server ) in my local network. I have also opened the port 27017 as mentioned in this guide using following commands: sudo iptables -A INPUT -p tcp --destination-port 27017 -m state --state NEW,ESTABLISHED -j ACCEPT sudo iptables -A OUTPUT -p tcp --source-port 27017 -m state --state ESTABLISHED -j ACCEPT Current rules are ( iptables -L ): Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:27017 state NEW,ESTABLISHED Chain FORWARD (policy ACCEPT) target prot opt source destination Chain

Default password of mysql in ubuntu server 16.04

女生的网名这么多〃 提交于 2019-12-03 03:02:44
问题 I have installed ubuntu 16.04 server. Mysql server was installed by default in it. When I am trying to access the mysql with mysql -u root -p , I am unable to log in to mysql because I dont have the password. Is there any default password? I have also tried with --skip-grant-tables , even this does not work. Even trying to log in with just mysql -u root is a failure. 回答1: This is what you are looking for: sudo mysql --defaults-file=/etc/mysql/debian.cnf MySql on Debian-base Linux usually use

Deploying Django project with Gunicorn and nginx

末鹿安然 提交于 2019-12-03 01:13:53
问题 I am new to django, i would like to know how to set up my django project with nginx and gunicorn. I read this guide: http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ but it doesn't work for my project. I think that it is due to the particular structure of my project, that is: ├──icecream │ ├── settings │ | ├── __init.py │ | ├── base.py │ | ├── local.py │ | ├── production.py │ ├── __init__.py │ ├── urls.py │ ├── wsgi.py ├── manage.py I got this layout

How do I add a remote Git repository to an Ubuntu Server?

a 夏天 提交于 2019-12-03 01:02:31
问题 I have created a Git repository on my Desktop machine (Windows 7) with: git init git add <all my files> git commit -m "added my files" Now I have installed a new Ubuntu Server 10.10 on a machine on my LAN and installed OpenSSH. My home directory is /home/jonas and I created a directory ~/code/ to contain my projects. I can log in to the Ubuntu Server from Windows 7 with Putty. I installed Git on the server with sudo apt-get install git Adding a remote repository Now I want to add my Git

docker login fails on a server with no X11 installed

眉间皱痕 提交于 2019-12-02 22:36:15
I am trying to deploy a docker configuration with images on a private docker registry. Now, every time I execute docker login registry.example.com , I get the following error message: error getting credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY` The only solution I found for non-macos users was to run export $(dbus-launch) first, but that did not change anything. I am running Ubuntu Server and tried with both the Ubuntu Docker package and the Docker-CE package. How can I log in without an X11 session? Looks like this is because it defaults to use the