Last active
January 21, 2018 16:42
-
-
Save fernandopetry/d3f4e9671a140f089604505fbbfbc65e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo dnf install java-1.8.0-openjdk | |
| rpm -Uvh http://rpms.famillecollet.com/fedora/remi-release-27.rpm | |
| dnf --enablerepo=remi --enablerepo=remi-php72 install httpd php php-common | |
| ## alterando a pasta padrão do apache em: "/etc/httpd/conf/httpd.conf" | |
| dnf --enablerepo=remi --enablerepo=remi-php72 install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongodb php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-phalcon php-redis | |
| systemctl start httpd.service ## use restart after update | |
| ## Fedora 27/26/25 and CentOS/RHEL 7.4 ## | |
| systemctl enable httpd.service | |
| yum install redis memcached git | |
| # install composer | |
| curl -sS https://getcomposer.org/installer | php | |
| mv composer.phar /usr/local/bin/composer | |
| chmod +x /usr/local/bin/composer | |
| composer -V | |
| nano -w /etc/sysconfig/iptables | |
| #adicionar a linha | |
| -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT | |
| ## Desabilitar o SELINUX | |
| nano /etc/selinux/config | |
| ## E onde está SELINUX=enforcing, como indicado pela seta na imagem abaixo, altere para SELINUX=disabled: | |
| # instalando mysql | |
| dnf install https://dev.mysql.com/get/mysql57-community-release-fc27-10.noarch.rpm | |
| yum install mysql mysql-server | |
| systemctl start mysqld.service ## use restart after update | |
| systemctl enable mysqld.service | |
| # verificação da senha root criada | |
| grep 'A temporary password is generated for root@localhost' /var/log/mysqld.log |tail -1 | |
| # Para desabilitar a segurança de senha edite o arquivo /etc/my.cnf e adicione a linha validate-password=OFF no final do arquivo. | |
| systemctl stop mysqld | |
| systemctl start mysqld | |
| dnf --enablerepo=remi --enablerepo=remi-php72 install php-recode php-common php-pecl-mcrypt php-zip | |
| systemctl enable httpd.service | |
| systemctl enable mysqld.service | |
| systemctl enable redis.service | |
| systemctl enable memcached.service | |
| sudo yum install mysql-workbench | |
| ## PHP 5.6 | |
| dnf --enablerepo=remi install httpd php56-php php56-php-fpm php56-php-phalcon php56-php-redis php56-php-memcache php56-php-pecl-apcu php56-php-cli php56-php-pear php56-php-pdo php56-php-mysqlnd php56-php-pgsql php56-php-pecl-mongodb php56-php-pecl-memcache php56-php-gd php56-php-mbstring php56-php-mcrypt php56-php-xml php56-php-phalcon php56-php-redis | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment