Contributions

14 Contributions
  • Question

    journalctl command shows no logs

    Recently, I deployed a django project using this (https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04) tutorial. When I use sudo journalctl -u gunicor...
    1 By ozwiz Django Development Python
  • Question

    Error in Certbot renewal process

    Today, I moved my application from apache to nginx. I used this (https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04) tutorial to setup SSL using certbot. Everything...
    Accepted Answer: Hello, It looks like that the certbot is still trying to use Apache instead of Nginx, as from the output I can see that certbot is trying to start Apache but Nginx is already running and that's why it is failing. What...
    1 By ozwiz Apache Nginx
  • Question

    Django 404 with static files when caching enabled in production.

    I have used this (https://www.digitalocean.com/community/tutorials/how-to-increase-pagespeed-score-by-changing-your-nginx-configuration-on-ubuntu-16-04) tutorial to enable caching on my Django project. But the issue ...
    1 By ozwiz Server Optimization Nginx
  • Question

    Unable to connect to remote MySQL server

    I am trying to connect to remote MySQL server from my local PC. I am getting "10061" error. Here are the steps I followed: changed the bind-address in file /etc/mysql/mysql.conf.d/mysqld.conf to the droplet ip. GRAN...
    1 By ozwiz MySQL DigitalOcean Ubuntu 16.04
  • Answer

    Unable to take backup of Postgres server from my local machine

    So, how do i assign required permission to this user ?
    By ozwiz
  • Answer

    Do i need to buy separate SSL certs for www and non-www ?

    the cost of wildcard ssl cert is very high. Is there any way to get the same behavior using standard SSL ?
    By ozwiz
  • Question

    Do i need to buy separate SSL certs for www and non-www ?

    Let's say I have a website named example.com hosted here in DO. Currently, I am redirecting all www urls to non-www equivalent. So if a request comes at www.example.com the server will redirect it to example.com. Now ...
    Accepted Answer: Hi @ozwiz Most certificate providers will give you www.example.com for free, when you buy example.com But you can get free signed certificates with Let's Encrypt. You can follow the tutorial depending if you're using...
    4 By ozwiz DigitalOcean Ubuntu 16.04
  • Question

    nginx redirects not working when after adding slash

    I am using nginx with django. Actually i am moving an old site to a new domain. In the process I have also updated the url structure of post and pages. Here is how nginx configuration looks like: ``` server { server_n...
    Accepted Answer: Remove the dollar sign, to redirect anything that starts with /old-url rewrite ^/old-url http://mysite.com/updated-url permanent; Or allow either-or with a question mark rewrite ^/old-url/?$ http://mysite.c...
    1 By ozwiz Nginx Django Ubuntu 16.04
  • Answer

    Django Deployment - Unable to access django app using my ip ?

    @hansen @jtittle Thanks for clarifying the issue.
    By ozwiz
  • Answer

    Django Deployment - Unable to access django app using my ip ?

    Yes gunicorn is running. (myenv) root@ubuntu-512mb-nyc3-01:/opt# sudo ps wwaux | grep -i unicorn root 27360 0.1 4.5 ...
    By ozwiz
  • Question

    Django Deployment - Unable to access django app using my ip ?

    I have followed https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-django-with-postgres-nginx-and-gunicorn tutorial to deploy django app. At the end of it, when i tried accessing I got "502 ...
    3 By ozwiz Django Nginx Ubuntu 16.04
  • Answer

    Unable to connect to remote MySQL Server

    Thanks it works !
    By ozwiz
  • Question

    Unable to connect to remote MySQL Server in Digital Ocean

    I am trying to connect to a remote MySQL server 5.7 installed on Ubuntu 16.04 from my workstation. Here is the error i am getting: 2003 - Can't connect to MySQL server on '192.245.18.37' (10061) To make it work I foll...
    1 By ozwiz MySQL Ubuntu 16.04
  • Question

    Unable to connect to remote MySQL Server

    I am trying to connect to a remote MySQL server 5.7 installed on Ubuntu 16.04 from my workstation. Here is the error i am getting (Using Navicat to connect). https://i.stack.imgur.com/oclnV.png (http://https://i.stack...
    Accepted Answer: @ozwiz Inside /etc/mysql/mysql.conf.d/ there should be a file called mysqld.cnf, if you'll open that file up: nano /etc/mysql/mysql.conf.d/mysqld.conf ... and then find this line: bind-address = 127.0.0...
    3 By ozwiz MySQL Ubuntu 16.04