Difference between revisions of "CentOS"
From Christoph's Personal Wiki
(New page: '''CentOS''' (abbreviated from '''Community Enterprise Operating System''') is a Linux distribution that attempts to provide a free, enterprise class, community-supported computing pla...) |
|||
Line 1: | Line 1: | ||
'''CentOS''' (abbreviated from '''Community Enterprise Operating System''') is a [[Linux]] distribution that attempts to provide a free, enterprise class, community-supported computing platform which aims to be 100% binary compatible with its upstream source, Red Hat Enterprise Linux (RHEL). | '''CentOS''' (abbreviated from '''Community Enterprise Operating System''') is a [[Linux]] distribution that attempts to provide a free, enterprise class, community-supported computing platform which aims to be 100% binary compatible with its upstream source, Red Hat Enterprise Linux (RHEL). | ||
+ | |||
+ | ==LAMP on CentOS== | ||
+ | The following CLI one-liner will install and configure everything you need for a basic LAMP stack setup (including the [[iptables|firewall]]): | ||
+ | sudo sh -c "yum install httpd httpd-devel mysql mysql-server mysql-devel php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml -y; service mysqld start && mysql_secure_installation && service mysqld restart && service httpd start && chkconfig httpd on && chkconfig mysqld on &&iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT && /etc/init.d/iptables save" | ||
==Packages to install== | ==Packages to install== |
Revision as of 06:51, 28 October 2014
CentOS (abbreviated from Community Enterprise Operating System) is a Linux distribution that attempts to provide a free, enterprise class, community-supported computing platform which aims to be 100% binary compatible with its upstream source, Red Hat Enterprise Linux (RHEL).
LAMP on CentOS
The following CLI one-liner will install and configure everything you need for a basic LAMP stack setup (including the firewall):
sudo sh -c "yum install httpd httpd-devel mysql mysql-server mysql-devel php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml -y; service mysqld start && mysql_secure_installation && service mysqld restart && service httpd start && chkconfig httpd on && chkconfig mysqld on &&iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT && /etc/init.d/iptables save"
Packages to install
- Install the "Development Tools":
yum groupinstall 'Development Tools' -y
These core development tools are required to compile software and build new rpms and including the following packages:
- autoconf
- bison
- gdb
- flex
- gcc (c/c++ compiler)
- gcc-c++ compiler
- redhat-rpm-config
- strace
- strace64
- rpm-build
- make
- automake
- pkgconfig
- gettext
- libtool
- binutils (and all dependencies)