Language
perl: warning: Falling back to a fallback locale (“C.UTF-8”). On a Linux server, if the language is different, you can
cut
How to cut lines separated by multiple spaces? Here is an example of cut command, that will remove all PHP
apt
List all Dependencies for a package. Using apt-get to manage software Uninstalling Software in Debian Server apt policy apt show
MySQL User
Create a user For local mysql access To allow remote access, run To allow a user to create another user
Enable FCGI cache in Nginx
To enable fcgi cache in Nginx, add the following code outside the server block. Inside your location for .php files,
MongoDB
MongoDB is an Open Source NoSQL database. https://www.mongodb.com/ Connecting to to MongoDB with user/pass Getting Started with MongoDB MongoDB delete
Rsync backup with X days retention
rsync is run on backup server, that login to remote servers and backup. Add following code Repeat the rsync/echo lines
lvm
vgcreate pvdisplay lvdisplay lvcreate Resize EC2 file system with LVM pvcreate Device /dev/sdb excluded by a filter How to Remove
Nginx WordPress
Here is nginx configuration for wordpress Nginx Config with FCGI Cache + gzip compression
Cpanel Error NetworkManager is installed
When installing Cpanel on a dedicated server, i get error NetworkManager is installed and running, or configured to startup. To
Debian Allow MySQL root user to login using phpMyAdmin
On Debian/Ubuntu by default MySQL root user can only login from local accounts. To enable login from phpMyAdmin, you need
Configuring MySQL .my.cnf
Add following content Replace DBPASSWORD with your MySQL root password. Now set permission for this file to 600, so no