Difference between revisions of "Afinando centos 7"
From Pandora FMS Wiki
Line 30: | Line 30: | ||
:: systemctl restart httpd.service | :: systemctl restart httpd.service | ||
+ | |||
+ | * Quitar el private tmp del systemd en apache | ||
+ | sed 's/PrivateTmp=true/PrivateTmp=false/g' /etc/systemd/system/multi-user.target.wants/httpd.service > /etc/systemd/system/multi-user.target.wants/httpd.service | ||
[[Category:Guidelines]] | [[Category:Guidelines]] |
Revision as of 11:34, 1 July 2015
CentOS 7 es una buena distribución de Linux pero tiene sus pequeñas cosas que en este articulo tratamos para instalar un Pandora sin muchos problemas.
- CentOS 7 no instala ifconfig, para instalarlo:
- yum install net-tools
- CentOS tiene un firewall como un portero encocado de discoteca, para deshabilitarlo:
- systemctl disable firewalld
- systemctl stop firewalld
- CentOS 7 tiene también SELinux activado por defecto, para deshabilitarlo:
- sestatus
- sed -i 's/enforcing/disabled/g' /etc/selinux/config /etc/selinux/config
- shutdown -r now
- sestatus
- Y para poner en funcionamiento el entorno LAMP:
- yum install httpd
- systemctl start httpd.service
- systemctl enable httpd.service
- yum install mariadb-server mariadb
- systemctl start mariadb
- mysql_secure_installation
- systemctl enable mariadb.service
- yum install php php-mysql
- systemctl restart httpd.service
- Quitar el private tmp del systemd en apache
sed 's/PrivateTmp=true/PrivateTmp=false/g' /etc/systemd/system/multi-user.target.wants/httpd.service > /etc/systemd/system/multi-user.target.wants/httpd.service