Difference between revisions of "Main Page"

From Brian Nelson Ramblings
Jump to: navigation, search
(Other)
(Apache/PHP)
(48 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#seo:
 
|keywords=Centos, Linux Commands, Sphinx, Varnish, Memcached, System Admin, How-To's, Magento, Wordpress, Mediawiki, Apache, PHP-PFM,PHP
 
|description=How-To's for CentOS, How to Configure and Maintain the LAMP/NAMP Stack including Apache, Nginx, php, php-fpm, Percona, Mysql and Various Caching Varnish, Redis and Memcache.
 
}}
 
 
==Welcome to Ramblings of a Centos Ninja==
 
==Welcome to Ramblings of a Centos Ninja==
  
 
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]
 
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]
 +
===Centos 7===
 +
--> [[Install Remi and EPEL yum repo Centos 7]]
 +
--> [[Install Mysql Database Centos 7]]
 +
--> [[Install Apache Web Server Centos 7]]
 +
--> [[Install PHP/PHP-FPM 5.4 Centos 7]]
 +
--> [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]
 +
--> [[Install Redis on Centos 7 How To]]
 +
--> [[How To Configure SWAP on Centos 7]] [[File:New.jpg|35px|frameless]]
 +
--> [[How to find user memory usage in linux]][[File:New.jpg|35px|frameless]]
 +
--> [[How to Configure letsencrypt with Apache on Centos 7 Server]]
 +
--> [[How to configure Gmail as a Mail Relay with Postfix]]
 +
 
===Centos 6===
 
===Centos 6===
 
  --> [[Change Runlevel]]
 
  --> [[Change Runlevel]]
Line 20: Line 28:
 
  --> [[How to install Sphinx on Centos Server]]
 
  --> [[How to install Sphinx on Centos Server]]
 
  --> [[How to install Redis on a Centos 6.4 Server]]
 
  --> [[How to install Redis on a Centos 6.4 Server]]
 +
--> [[Basic Redis commands - Cheat Sheet]][[File:New.jpg|35px|frameless]]
 
  --> [[Adding a New Disk Drive with Centos]]
 
  --> [[Adding a New Disk Drive with Centos]]
 
  --> [[Creating Backups using rsync with Examples]]
 
  --> [[Creating Backups using rsync with Examples]]
Line 35: Line 44:
 
  --> [[Howto Setup NTP on CentOS]]
 
  --> [[Howto Setup NTP on CentOS]]
 
  --> [[Fix corrupted RPM database]]
 
  --> [[Fix corrupted RPM database]]
 +
--> [[Crontab Usage]]
 
  --> [[Make an ISO from a Folder with mkisofs]][[File:New.jpg|35px|frameless]]
 
  --> [[Make an ISO from a Folder with mkisofs]][[File:New.jpg|35px|frameless]]
 
  --> [[How to setup a VPN server with CentOS PPTPD]][[File:New.jpg|35px|frameless]]
 
  --> [[How to setup a VPN server with CentOS PPTPD]][[File:New.jpg|35px|frameless]]
 +
--> [[APF Firewall -Advanced Policy Firewall - Basics]][[File:New.jpg|35px|frameless]]
 +
--> [[How to Block Bittorrent Traffic with IPtables]][[File:New.jpg|35px|frameless]]
 +
--> [[How to find user memory usage in linux]][[File:New.jpg|35px|frameless]]
 +
--> [[How to install ccsrch on Centos 6]][[File:New.jpg|35px|frameless]]
 +
--> [[How to install jpegoptim for CentOS]]
 +
--> [[How to install optipng for CentOS]]
 +
--> [[How to install gifsicle for CentOS]]
 +
--> [[How to install jpegtran for CentOS]]
 +
--> [[IPTABLES quick command list]]
  
 
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]
 
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]
Line 62: Line 81:
 
  --> [[Magento Site Performance Optimization]] [[File:New.jpg|35px|frameless]]
 
  --> [[Magento Site Performance Optimization]] [[File:New.jpg|35px|frameless]]
 
  --> [[Magento Log Rotate with logrotate]] [[File:New.jpg|35px|frameless]]
 
  --> [[Magento Log Rotate with logrotate]] [[File:New.jpg|35px|frameless]]
 +
--> [[How to use CDN with Webfonts with Magento]] [[File:New.jpg|35px|frameless]]
 +
--> [[How to Disable Magento Newsletter Module]]
 +
 +
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]
 +
 +
===Magento 2 Community Edition===
 +
--> [[Upgrade Magento2 via CLI]]
 +
--> [[Enable/Disable Magento2 Maintenance Page]]
  
 
[[File:Memcahed.jpg|100px|frameless|right|alt=Mecache Caching]]
 
[[File:Memcahed.jpg|100px|frameless|right|alt=Mecache Caching]]
Line 72: Line 99:
 
  --> [[Check Memory Usage of Memcached]]
 
  --> [[Check Memory Usage of Memcached]]
 
  --> [[Memcache running out of Memory?]]
 
  --> [[Memcache running out of Memory?]]
 +
--> [[Memcached List all Keys]]
  
 
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]
 
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]
Line 78: Line 106:
  
 
  --> [[Redirect site to www or non www]]
 
  --> [[Redirect site to www or non www]]
 +
--> [[Restrict POST request to Website]]
 
  --> [[Install Tomcat6 Server on Centos 6]]
 
  --> [[Install Tomcat6 Server on Centos 6]]
 
  --> [[How to setup an SSL Certificate for Free]]
 
  --> [[How to setup an SSL Certificate for Free]]
Line 87: Line 116:
 
  --> [[Install ionCube Loaders for Centos]]
 
  --> [[Install ionCube Loaders for Centos]]
 
  --> [[Install Zend Guard with PHP 5.3 on Centos]]
 
  --> [[Install Zend Guard with PHP 5.3 on Centos]]
  --> [[Install Zend Guard 6.0 with PHP 5.4 on Centos]][[File:New.jpg|35px|frameless]]
+
  --> [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]
 
  --> [[Disable Mod_Security for a single vhost]]
 
  --> [[Disable Mod_Security for a single vhost]]
 
  --> [[Hide PHP Version(X-Powered-By) in Headers]]
 
  --> [[Hide PHP Version(X-Powered-By) in Headers]]
Line 93: Line 122:
 
  --> [[Apache mod_speling case insensitive urls issue]]
 
  --> [[Apache mod_speling case insensitive urls issue]]
 
  --> [[Restrict access via htaccess via ipaddress]]
 
  --> [[Restrict access via htaccess via ipaddress]]
  --> [[Howto install mod_evasive with fail2ban]][[File:New.jpg|35px|frameless]]
+
  --> [[Howto install mod_evasive with fail2ban]]
  --> [[Install the Latest version PHP on CentOS]][[File:New.jpg|35px|frameless]]
+
--> [[Install the Latest version PHP on CentOS]]
  --> [[How to bypass .htpasswd for certain IPs Apache]][[File:New.jpg|35px|frameless]]
+
--> [[How to bypass .htpasswd for certain IPs Apache]]
 +
--> [[Clear mod_pagespeed cache ]][[File:New.jpg|35px|frameless]]
 +
  --> [[Install GeoIP for Apache and PHP]][[File:New.jpg|35px|frameless]]
 +
  --> [[How to block or allow countries using GeoIP and .htaccess]][[File:New.jpg|35px|frameless]]
 +
--> [[How to disable mod_security per vhost]][[File:New.jpg|35px|frameless]]
 +
--> [[Force HTTPS for entire website via htaccess]]
 +
--> [[Restrict Access to wp-login.php and xmlrpc.php]]
 +
--> [[The X-Frame-Options response header]]
 +
--> [[Install Xdebug with php-fpm per pool]]
 +
--> [[How to Enable Gzip Compression]]
 +
--> [[Enable Apache rewrite logging]]
  
 
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]
 
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]
Line 115: Line 154:
 
  --> [[How to update the max_connections setting in MySQL]]
 
  --> [[How to update the max_connections setting in MySQL]]
 
  --> [[How to view a list of MySQL users and their privileges]][[File:New.jpg|35px|frameless]]
 
  --> [[How to view a list of MySQL users and their privileges]][[File:New.jpg|35px|frameless]]
 +
--> [[Save MySQL query results into a text or CSV file]][[File:New.jpg|35px|frameless]]
 +
--> [[How to optimize a MySQL database using phpMyAdmin]]
 +
  
 
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]
 
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]
Line 129: Line 171:
 
  --> [[Warm up Varnish Script using Sitemap.xml]]
 
  --> [[Warm up Varnish Script using Sitemap.xml]]
 
  --> [[Varnish How to redirect non-www URLs to www]]
 
  --> [[Varnish How to redirect non-www URLs to www]]
 +
--> [[Install libvmod-header with Varnish]]
  
 
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]
 
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]
Line 138: Line 181:
 
  --> [[Nginx Magento vhost Configuration]]
 
  --> [[Nginx Magento vhost Configuration]]
 
  --> [[Basic HTTP Authentication with Nginx]][[File:New.jpg|35px|frameless]]
 
  --> [[Basic HTTP Authentication with Nginx]][[File:New.jpg|35px|frameless]]
 +
--> [[Protecting Folders with Nginx]]
  
  
Line 143: Line 187:
  
 
===Other===
 
===Other===
 +
--> [[How to add trusted root certificates]]
 +
--> [[Send email from PHP to a log file instead of sendmail]]
 
  --> [[Debugging Wordpress]]
 
  --> [[Debugging Wordpress]]
 +
--> [[How to install Linux via USB]]
 
  --> [[Network Subnet Mask Cheat Sheet]]
 
  --> [[Network Subnet Mask Cheat Sheet]]
 
  --> [[Linux Keyboard Shortcuts]]
 
  --> [[Linux Keyboard Shortcuts]]
--> [[Crontab Usage]]
 
 
  --> [[Setup a SSH Tunnel for Secure Browsing]]
 
  --> [[Setup a SSH Tunnel for Secure Browsing]]
 
  --> [[Install OpenSSH on Windows]]
 
  --> [[Install OpenSSH on Windows]]
 
  --> [[Install Qmail on a Fresh Centos Server]]
 
  --> [[Install Qmail on a Fresh Centos Server]]
 
  --> [[Setup Qmail to Listen on port 587 for SMTP]]
 
  --> [[Setup Qmail to Listen on port 587 for SMTP]]
 +
--> [[Qmail catch-all account with vpopmail]]
 
  --> [[Setup Incoming Email Pipe to Script for Qmail]]
 
  --> [[Setup Incoming Email Pipe to Script for Qmail]]
 
  --> [[Qmail Control Files]]
 
  --> [[Qmail Control Files]]
Line 159: Line 206:
 
  --> [[Useful TCPDUMP commands]][[File:New.jpg|35px|frameless]]
 
  --> [[Useful TCPDUMP commands]][[File:New.jpg|35px|frameless]]
 
  --> [[Remove Email Block Lists]]
 
  --> [[Remove Email Block Lists]]
 +
--> [[How to disable qmail vpopmail email user]] [[File:New.jpg|35px|frameless]]
 +
--> [[Git Cheat Sheet - Git made easy]]
  
 
  --> [[Benchmarking and Load Testing with Siege]]
 
  --> [[Benchmarking and Load Testing with Siege]]

Revision as of 12:53, 21 March 2018

Welcome to Ramblings of a Centos Ninja

Centos How-Tos

Centos 7

--> Install Remi and EPEL yum repo Centos 7
--> Install Mysql Database Centos 7
--> Install Apache Web Server Centos 7
--> Install PHP/PHP-FPM 5.4 Centos 7
--> Install (LAMP) Linux Apache MySQL and PHP Centos 7
--> Install Redis on Centos 7 How To
--> How To Configure SWAP on Centos 7 New.jpg
--> How to find user memory usage in linuxNew.jpg
--> How to Configure letsencrypt with Apache on Centos 7 Server
--> How to configure Gmail as a Mail Relay with Postfix

Centos 6

--> Change Runlevel
--> Check Current Runlevel
--> Change Run Level at Bootup
--> How to change the Hostname on Centos
--> chkconfig settings
--> How to extract a tar.gz file
--> Install SIM - System Integrity Monitor
--> Use Bash on a Non Bash User
--> Quit Bash Shell without Saving Bash History
--> Change the Timezone Centos
--> Check the Version of Package
--> How to install Sphinx on Centos Server
--> How to install Redis on a Centos 6.4 Server
--> Basic Redis commands - Cheat SheetNew.jpg
--> Adding a New Disk Drive with Centos
--> Creating Backups using rsync with Examples
--> Expand your bash_history to 2500
--> Setup logrotate to rotate your logs
--> GPG: Encrypt And Decrypt Files With A Password
--> Install Remi and EPEL yum repo 
--> Install NewRelic on Centos6
--> Setting Up An NFS Server And Client On CentOS 6
--> Sar is not working how to restart
--> Batch jpeg Image Optimization
--> Howto Block or Open HTTP/HTTPs Ports IPTables
--> Reset Root Password in CentOS
--> Setup vsftp with SELinux
--> Howto Setup NTP on CentOS
--> Fix corrupted RPM database
--> Crontab Usage
--> Make an ISO from a Folder with mkisofsNew.jpg
--> How to setup a VPN server with CentOS PPTPDNew.jpg
--> APF Firewall -Advanced Policy Firewall - BasicsNew.jpg
--> How to Block Bittorrent Traffic with IPtablesNew.jpg
--> How to find user memory usage in linuxNew.jpg
--> How to install ccsrch on Centos 6New.jpg
--> How to install jpegoptim for CentOS
--> How to install optipng for CentOS
--> How to install gifsicle for CentOS
--> How to install jpegtran for CentOS
--> IPTABLES quick command list
Magento How To's

Magento Community Edition/Magento Enterprise Edition

--> What is Magento?
--> Clear Magento Cache
--> Disable Magento Modules
--> Turn on Manual Indexing
--> How to Reset Magento Password
--> How to Create Users in Mageento
--> Enable Mysql Slow Query Logging
--> Magento Connect is not Working
--> Magento will NOT save my Product Updates
--> Magento Internal Cron not Running
--> Setting up the System Cron Job
--> Magento Connect is not Working
--> Changing the Minimum Search Query - MySQL Full Text Only
--> Install Redis Caching for Magento
--> Install Redis Full Page Caching for Magento Enterprise
--> Setting up a Second Instance of Redis
--> Magento Setup Return-Path Email New.jpg
--> Magento Server Compatibility Check
--> Magento Database Optimization - Log Cleaning ScriptNew.jpg
--> Magento Site Performance Optimization New.jpg
--> Magento Log Rotate with logrotate New.jpg
--> How to use CDN with Webfonts with Magento New.jpg
--> How to Disable Magento Newsletter Module
Magento2 How To's

Magento 2 Community Edition

--> Upgrade Magento2 via CLI
--> Enable/Disable Magento2 Maintenance Page
Mecache Caching

Memcached Server

--> Memcached Monitor Tool
--> Setup Multi Instance Memcache
--> Check if Memcached is Running
--> Flush Your Memcached Instance
--> Check Memory Usage of Memcached
--> Memcache running out of Memory?
--> Memcached List all Keys
Apache How Tos

Apache/PHP

--> Redirect site to www or non www
--> Restrict POST request to Website
--> Install Tomcat6 Server on Centos 6
--> How to setup an SSL Certificate for Free
--> Enable Apache to Create Core Dumps
--> Enable php-fpm to create core dumps
--> Debug PHP Enabling slow_log 
--> Block Bots by User Agent String
--> Install mod_extact_forward - Show Real IP behind Proxy
--> Install ionCube Loaders for Centos
--> Install Zend Guard with PHP 5.3 on Centos
--> Install Zend Guard 6.0 with PHP 5.4 on Centos
--> Disable Mod_Security for a single vhost
--> Hide PHP Version(X-Powered-By) in Headers
--> Sessions are ending before MaxLifetime
--> Apache mod_speling case insensitive urls issue
--> Restrict access via htaccess via ipaddress
--> Howto install mod_evasive with fail2ban
--> Install the Latest version PHP on CentOS
--> How to bypass .htpasswd for certain IPs Apache
--> Clear mod_pagespeed cache New.jpg
--> Install GeoIP for Apache and PHPNew.jpg
--> How to block or allow countries using GeoIP and .htaccessNew.jpg
--> How to disable mod_security per vhostNew.jpg
--> Force HTTPS for entire website via htaccess
--> Restrict Access to wp-login.php and xmlrpc.php
--> The X-Frame-Options response header
--> Install Xdebug with php-fpm per pool
--> How to Enable Gzip Compression
--> Enable Apache rewrite logging
Mysql Percona

Mysql/Percona

--> How to Optimize/Repair a Table
--> MySQL - Check Which Query is Consuming Resources
--> How to Set your MySQL Password
--> Rest your MySQL Admin Password
--> How to Convert Table to InnoDB 
--> How to install Percona Database Server
--> How to Access the MySQL via Shell
--> How to Add a User in MySQLNew.jpg
--> How to Drop a User in MySQLNew.jpg
--> How to Create and Delete a MySQL Database
--> How to Create a Table in MySQL Database
--> How to Create a MySQL Database Backup
--> How to Import a MySQL Database
--> How to update the max_connections setting in MySQL
--> How to view a list of MySQL users and their privilegesNew.jpg
--> Save MySQL query results into a text or CSV fileNew.jpg
--> How to optimize a MySQL database using phpMyAdmin


Varnish How tos

Varnish Cache

--> Setup Varnish Cache
--> Setup Varnish for Magento
--> Setup Varnish for Wordpress
--> Setup Varnish for MediaWiki
--> Setup Varnish - Multiple Domains
--> Setup Varnish - Multiple Ipaddress
--> Script to Clear a Page from Varnish Cache
--> Varnish will not restart WHY?
--> Warm up Varnish Script using Sitemap.xml
--> Varnish How to redirect non-www URLs to www
--> Install libvmod-header with Varnish
Nginx How tos

Nginx Web Server

--> Setup Nginx PHP FPM Percona Mysql
--> Wordpress Ngnix Rewrite Rules
--> Setup up Nginx Caching
--> Nginx Magento vhost Configuration
--> Basic HTTP Authentication with NginxNew.jpg
--> Protecting Folders with Nginx


Brian Nelson

Other

--> How to add trusted root certificates
--> Send email from PHP to a log file instead of sendmail
--> Debugging Wordpress
--> How to install Linux via USB
--> Network Subnet Mask Cheat Sheet
--> Linux Keyboard Shortcuts
--> Setup a SSH Tunnel for Secure Browsing
--> Install OpenSSH on Windows
--> Install Qmail on a Fresh Centos Server
--> Setup Qmail to Listen on port 587 for SMTP
--> Qmail catch-all account with vpopmail
--> Setup Incoming Email Pipe to Script for Qmail
--> Qmail Control Files
--> Install qmqtool for Qmail on Centos Server
--> Rest Email Password for vpopmail
--> How to check Used IP on your Home Network
--> How to find GMAIL IPs to allow at Firewall
--> Useful TCPDUMP commandsNew.jpg
--> Remove Email Block Lists
--> How to disable qmail vpopmail email user New.jpg
--> Git Cheat Sheet - Git made easy
--> Benchmarking and Load Testing with Siege
--> Benchmarking and Load Testing with Apache Bench(AB)
--> Top Command Line Games - Linux CLI Games Cause Linux can be funNew.jpg
--> Centos Oneliners