Code Snippet

Just another Code Snippet site

CentOS

[CentOS] Sudo

# Backup sudoers file and create tmp file add the following line in the sudoers.tmp (with %) or # Enable new sudoers file (tmp)

How To Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6

LEMP stack is a group of open source software to get web servers up and running. The acronym stands for Linux, nginx (pronounced Engine x), MySQL, and PHP. This tutorial explains how to install the required repos to download nginx and php-fpm, how to /etc/php.ini : /etc/nginx/nginx.conf : /etc/nginx/conf.d/default.conf : /etc/php-fpm.d/www.conf : Restart all services […]

, ,

[How-To] HTTPD & Apache

Install HTTPD Check Proxy mod is installed/enabled : and look for “proxy_balancer” module To add a reverse proxy settings, create a new .conf file un /etc/httpd/conf.d/ like : In case of error like : Permission denied: proxy: HTTP: attempt to connect to You must disable SELinux : => SELINUX=disabled

, ,

[MySQL] How-To

Install MySQL (new version)on CentOS Download RPM file from : https://dev.mysql.com/downloads/repo/yum/ Install repo : Check repo is installed : Install MySQL : Start/Stop MySQL Server : Connect to MySQL Select database List all tables Repair a table MariaDB

, ,

Previous Posts Next posts