LEMP

LEMP subscription active
You will receive email notifications for new publications on LEMP.
491 Results
  • Question

    upstream timed out (110: Connection timed out) while reading response header from upstream

    Since a while I'm experiencing 501 timeouts on my DO hosted WP website. I checked /var/log/nginx/error.log and I've gotten about two errors per minute (they stopped all of the sudden and my website is online again sin...
    Accepted Answer: Hi there @angieCoral, It looks like that your PHP FPM service is crashing, this is why you are seeing these errors in your Nginx error log. I could suggest checking your PHP FPM error log for more information on why t...
    1 By angieCoral Nginx LEMP
  • Question

    "sudo apt-get update" command is not working

    Hello! <^>Error log<^> ``` Last login: Fri Jul 1 00:56:49 2016 from XXX.XXX.XXX.XX root@xxx:~# sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB] Hit:2 http://nyc2.mirrors...
    Accepted Answer: @chinmayrajyaguru There's a few things we can do in an effort to resolve this. First, I'd clean up the lists for apt-* by running: sudo rm -rvf /var/lib/apt/lists/* The above command removes all files and directori...
    3 By chinmayrajyaguru Nginx LEMP WordPress DigitalOcean Ubuntu 16.04
  • Question

    IP address worked but domain name does not

    Domain name is registered and DNS is pointed to DO as per tutorial. Created "A" record for fireball.design and www.fireball.design and *.fireball.design. Also created Nginx server block for fireball.design in /etc/ngi...
    Accepted Answer: Tried the Fail2ban stuff but nothing worked and even uninstalled it. Tried lots of other things. I give up 3 weeks later for a simple LEMP stack with Wordpress. One click garbage installs. Can somebody delete this wh...
    4 By AndreyPavlov DNS Initial Server Setup LEMP Networking Nginx PHP WordPress Ubuntu 18.04
  • Question

    nginx syntax error - listen directive not allowed

    Hello, I have been following through a few different articles, but am now getting an error. ``` "listen" directive not allowed here... listen [::]:443 ssl; # managed by certbot ``` After I set up certbot it was fine, ...
    Accepted Answer: Hi there, Can you run the following command to test your Nginx config syntax: sudo nginx -t And then share the output here. Also, can you share your whole Nginx server block here as well? Regards, Bobby
    2 By patrickb Nginx LEMP Let's Encrypt WordPress DigitalOcean
  • Question

    Can't figure out how to install php-gd for PHP7 with yum

    I followed this tutorial for upgrading my droplet with a LEMP stack to PHP7: https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-centos-7 However, I've since realised that GD Library isn't runn...
    Accepted Answer: I should have paid more attention to the naming convention - even though I couldn't find GD Library in IUS's package list, it is there. I just ran: sudo yum install php70u-gd It wasn't until I tried grabbing a list of...
    3 By indextwo Nginx WordPress LEMP CentOS
  • Question

    Nginx https to http

    I have an issue with a freshly configured Nginx setup on Ubuntu 16.04. My site loads fine using http, but I get a <^>connection refused error<^> when I access it using https. I don't need https at the moment, so I wou...
    Accepted Answer: @pixelment @jtittle You should setup Lets Encrypt - and keep your site on HTTPS-only (with a redirect from HTTP). There's multiple advantages to HTTPS - first is that it allows http/2, which is version 2 of the HTTP ...
    3 By pixelment Nginx LEMP WordPress Ubuntu 16.04
  • Question

    phpmyadmin configuration program doesn't start after abort (LEMP, Ubuntu 20.04)

    As I was following on this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-18-04-server, halfway I entered a wrong option. That is why I aborted t...
    Accepted Answer: @KFSys @alexdo , thank you for your help. I found a solution! When I start the tutorial again using the Digital Ocean Console and not the Terminal, the installation process starts :)
    3 By katovonkatz LEMP PHP Ubuntu 20.04
  • Question

    Installing WordPress on Lemp Stack - 403 forbidden

    Hello, I have been following through https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-20-04 However I have got to the end bit, and I cant login to the dashboard. it came up...
    Accepted Answer: Hello, @patrickb Can you please confirm if you've also followed the steps from the Prerequisites part of the article, e.g the initial LEMP stack part. If you've followed that you should have UFW enabled and you can d...
    2 By patrickb Nginx LEMP WordPress DigitalOcean
  • Question

    Install Wordpress on Ubuntu 20.04 with LEMP stack

    This tutorial is available for installing Wordpress with a LEMP stack on Ubuntu 18.04 (https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-18-04). Unfortunately, there is not ...
    Accepted Answer: Hey there @katovonkatz, I don't think there are any major differences. I, myself, am following old tutorials and manage to get things up and running without a problem. If you stand upon an issue while following this t...
    2 By katovonkatz WordPress LEMP Ubuntu 20.04
  • Question

    Wordpress doesn't start with installing Wordpress with LEMP on Ubuntu 20.04

    As I was following this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-18-04, I came a long way. But then after step 5, Wordpress doesn't start on my website. T...
    Accepted Answer: Hi there @KatoVonKatz, There are a couple of things which could be causing this problem. If you installed WordPress at /var/www/html/, you would need to remove the index.html file from there, you can do that with the ...
    2 By katovonkatz WordPress LEMP Ubuntu 18.04 Ubuntu 20.04 Ubuntu Configuration Management
  • Question

    Wordpress Sites Forwarding To Unknown Domain

    Hi DigitalOcean, I'm running Ubuntu 20.04 with a LEMP stack. There are two WordPress sites on this Droplet. I recently added the second, and wonder if somehow the WordPress site was compromised, because now both site...
    Accepted Answer: Thanks, Bobby. I solved the issue by: 1) Deleting all files inside /var/www/yourdomain.com where the infected files were placed 2) Uploading fresh versions of the files via sftp 3) Resetting passwords, including mysq...
    2 By willbeing LEMP WordPress Ubuntu 20.04
  • Question

    Fix MYSQL ERROR 1406 (22001) at line...

    Hello, I'm following your tutorial on how to import databases in mysql (https://www.digitalocean.com/community/tutorials/how-to-import-and-export-databases-in-mysql-or-mariadb) I receive the following error after atte...
    Accepted Answer: Hi @willbeing, It's highly unlikely the issue to be related to the database existing on the instance when importing it. This issue is with the structure of the database. What I'll suggest is to update the IP column to...
    1 By willbeing MySQL WordPress LEMP
  • Question

    Change default web root for nginx on one-click install lemp 14.04

    https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-an-nginx-web-server-on-ubuntu-14-04 All of these steps were taken, no effect at all. accessing the droplet via http all it does is show the ...
    Accepted Answer: @Vanker The way the repository packages are setup, files in: /etc/nginx/sites-available are symlinked to: /etc/nginx/sites-enabled i.e /etc/nginx/sites-available/default => /etc/nginx/sites-enabled/default The ...
    5 By Vanker LEMP PHP Nginx Ubuntu
  • Question

    Centos 8 LEMP: PHP-FPM install error

    I'm following the directions and running into an issue on the Centos 8 LEMP tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-8 Any help would be grea...
    Accepted Answer: Hi @chipsterz, Have you tried doing a System Upgrade beforehand? You can check for whether software updates are available with the following command: sudo dnf check-update You can do a minimal software update with t...
    2 By chipsterz CentOS 8 PHP LEMP
  • Question

    Nginx redirect subdomain from www to non-www

    Hello, I'm using this nginx conf: ``` root /var/www/html/laravel/public; index index.php index.html index.htm index.nginx-debian.html; server_name *.example.com; location / { try_files $uri $...
    Accepted Answer: If someone need this, solution is: if ($host ~* ^www\.(.*)) { set $host_without_www $1; rewrite ^(.*) http://$host_without_www$1 permanent; }
    4 By oksim Nginx LEMP PHP PHP Frameworks Ubuntu 16.04
  • Question

    How do I revert the group ownership of www-data to default?

    I entered sudo usermod -g www-data ftpuser How do I return it to the default values? Is it owned by root? If so it would be: sudo usermod -g www-data root? How do i check the ownership of www-data?
    Accepted Answer: Groups don't have owners. Your first command, sudo usermod -g www-data ftpuser made ftpuser's default group into www-data. If you ran sudo usermod -g www-data root, you would, in kind, make the root user's group be ww...
    2 By belakey Linux Commands Linux Basics Ubuntu 18.04 Nginx LEMP
  • Question

    WordPress security issue related to file manager plugin

    Hi I had installed two WordPress sites on same DigitalOcean server (Ubuntu + Nginx + Mariadb + php-fpm). /var/www/html /var/www/html2 Now problem is that file manager plugin installed on one WordPress site can read an...
    Accepted Answer: Hi there @rishi008tiwari, One of the benefits of PHP FPM is that is can run PHP scripts with different users. What you could do is add different users for each website and create separate PHP FPM configs for each webs...
    1 By rishi008 Apache Nginx LEMP LAMP Stack WordPress Security Development
  • Question

    Why certain domains is not propagating?

    I have a total of 5 domains in my droplet setup the same exact way, but only 3 of them is working correctly. I have been having a hard time getting 2 of my domains propagating to all servers. So I'll use one of them a...
    Accepted Answer: Finally figured out the problem.. Looks like I had DNSSEC enabled at the registrar and not configured at my server. Disabling DNSSEC was the trick, hope this helps others out there. Thank you!
    2 By gldtn DigitalOcean LEMP Ubuntu 18.04
  • Question

    Ubuntu 16.04 - NGINX - LetsEncrypt SSL - 502 Bad Gateway for first time visiting the site. Everything works if you visited the site earlier.

    I set up a web server for two Wordpress websites. Installed NGINX, PHP, Mariadb, certbot for SSL, etc.. The problem I´m facing is that if I visited the website earlier than Certbot´s config, I can access it normally, ...
    Accepted Answer: Hi again guys! Just to close this topic, this is what I found out. The culprit seems to be half wordpress half a bug in nginx. Reading NGINX´s log I found that an action from Wordpress (wp-cron.php) creates a cron job...
    3 By mauriciolazo28 Nginx Let's Encrypt LEMP PHP WordPress Ubuntu 16.04
  • Question

    How to Install and configure Varnish in Ubuntu 16.04

    I already install NGINX, PHP-FPM, MariaDB and Wordpress in Ubuntu 16.04. Also, I have Let's Encrypt SSL. Now I want to install Varnish and configure it in the backend of NGINX since I used SSL all request from 443. My...
    Accepted Answer: Hi, Since Varnish does not support SSL termination, you will need to configure nginx to do so, forward requests to Varnish, which would then forward them back to nginx over HTTP. Follow this tutorial (https://www.digi...
    2 By nowsubha LEMP Nginx WordPress Server Optimization Caching Ubuntu 16.04