Similar Posts
Running Node.js App with Supervisord on Homestead
Earlier I covered how to continuously run Node.js app with Forever. In this article I will explain how to run Node.js app with Supervisord. Since Homestead already has Supervisord installed, we will use it. First, let’s create a simple node application. Edit after.sh script in Homestead installation to contain the following code: #!/bin/sh cd /var/www…
WordPress Errors and Solutions
Infinite redirect loop If there is infinite redirect loop, put this line in functions.php of current theme. remove_filter(‘template_redirect’, ‘redirect_canonical’); WordPress asks for FTP credentials Change ownership of your WordPress directory. chown –R www-data:www-data Nginx: 413 Request Entity Too Large Error Change Nginx config file sudo nano /etc/nginx/nginx.conf # set client body size to 128M #…
Ubuntu Command Line Search
Sometimes I have to go through log files searching for a certain error message. The command below will show you log file names and lines where the message was recorded. grep -rnw ‘logs/’ -e ‘Hello World’ To learn more about “grep” command use the following link https://help.ubuntu.com/community/grep Share this article
Using PhpMyAdmin With Homestead
Laravel Homestead includes a lot of software, but unfortunately does not have PhpMyAdmin. You can always install it on nginx, but if you have it already on your host system (for example, as a part of xampp package), you can always configure it as a Nginx site. First of all, you need to edit your config.inc.php file. At…
Node.js App on AWS EC2 Instance
To get started let’s spin up an Ubuntu 16.4 LTS instance on AWS. After instance is up and running, we need to add port 80 to the instance’s security group inbound rules. There should be at least two ports open: 22, and 80. Now we can ssh into the instance and install Nginx, Node, and…