LEMP

LEMP subscription active
You will receive email notifications for new publications on LEMP.
448 Results
  • 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

    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

    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

    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

    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

    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...
    3 By AndreyPavlov DNS Initial Server Setup LEMP Networking Nginx PHP WordPress Ubuntu 18.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

    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

    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

    error loading wordpress

    I just installed wordpress on my LEMP server. When I attempted to access it to set it up via Firefox browser it came back with the the following popup: You have chosen to open: which is: application/octet-stream (42...
    Accepted Answer: Hello, I believe that something is not correct with the Wordpress Nginx server block, would you mind sharing the Nginx configuration file here so that I could have a look and advice you further? Regards, Bobby (https:...
    2 By wrknight LEMP WordPress
  • 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

    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
  • Question

    Droplet Web Console Outputting Random Characters

    Hi there, After installing a simple LEMP droplet I've noticed the web console outputting random characters when I paste a string. I've also noticed a lot of my letters randomly change from capital letters to non-capit...
    Accepted Answer: Just received an answer from the Digital Ocean support team saying this is a known issue that they have been looking into, but since the solution is not very straightforward, they don't really know when we can see thi...
    1 By gesp DigitalOcean LEMP Ubuntu 18.04
  • Question

    DigitalOcean - CloudFlare CDN & Self-Hosted CDN

    Hello Friends, I'm trying to decrease server response time as per Google PageSpeed Insights (https://developers.google.com/speed/pagespeed/insights/) recommendation. They're saying "You should reduce your server respo...
    Accepted Answer: @chinmayrajyaguru There's a relatively large difference between CloudFlare, which uses hundreds to thousands of web servers that are geographically dispersed to various locations across the US and other countries and...
    3 By chinmayrajyaguru DigitalOcean LEMP VPN Nginx Ubuntu 16.04
  • Question

    wordpress is not sending emails

    Hello, im using wordpress multisite and i set my following email settings from Network > sites >setting Mailserver Url Mailserver Login Mailserver Pass Mailserver Port but unfortunately no mails are going. same detail...
    Accepted Answer: @newbie When it comes to e-mail, you're going to be much better off using a transactional e-mail provider to ensure that e-mail goes through. For example: https://www.sparkpost.com/ https://mailgun.com https://sendgr...
    1 By newbie WordPress Email LEMP Ubuntu 16.04
  • Question

    Unable to setup multisite on nginx & php7.0-fpm

    Hi all, I am trying to solve this issue for few weeks to no avail :( I am trying to set up multiple websites in my Ubuntu 16.04 droplet by following this guide: https://www.digitalocean.com/community/tutorials/how-to-...
    Accepted Answer: Hi @amellie Maybe something went wrong at one point, when you restarted php-fpm after doing some configuration changes. Everything looks okay, as far as I can see. Try to stop php-fpm, then force-kill any lingering p...
    3 By amellie Nginx PHP WordPress PHP Frameworks LEMP Ubuntu 16.04
  • Question

    How to I setup FTP to allow people to upload a website?

    So I followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-16-04 But it limits the user to write only in their directory. Is there a tutorial fo...
    Accepted Answer: Hello friend! That can get a bit more complicated, but I found a discussion on it here which contains a few ideas about how you might accomplish it. https://unix.stackexchange.com/questions/94603/limit-ftp-access-only...
    1 By andy302894ca959fe1be65d7e0 LEMP Nginx WordPress
  • Question

    Can someone elaborate on the meaning of "Transfer" in the pricing tables?

    I'd like to build a Wordpress site and integrate a Discourse community with the WP site. I'll be using an LMS plugin with the WP site but all of the video content that is consumed in the courses will be hosted on YouT...
    Accepted Answer: Hello friend! Great question. So transfer is going to refer to the outbound data transferred from your droplet. So for example if your website is 5MB and I load it, you should have just added 5MB to your transfer usag...
    2 By jord8on2 LEMP
  • Question

    Increasing max file size in PHP

    Ubuntu 16.04 running nginx and php7. I've tried multiple changes to the fpm/php.ini to increase 'uploadmaxsize' and 'postmaxsize', but none of my changes appear in a phpinfo() that I added to the webserver. I locate...
    Accepted Answer: Ended up reinstalling php and nginx. After doing so, I was able to modify the configurations and restart with changes appearing successfully.
    3 By jalayton PHP WordPress LEMP Nginx Ubuntu 16.04