Como instalar o Drupal no Fedora

Para instalar os pacotes use a sintaxe:

%sudo dnf install @"Web Server" drupal8 php-opcache php-mysqlnd mariadb-server

Se não estiver sendo executado automaticamente os servidores httpd e mysql/mariadb use os comandos abaixo:

%sudo systemctl enable httpd.service mariadb.service
%sudo systemctl start httpd.service mariadb.service

Entre no browser com localhost e phpmyadmin para configurar o banco de dados. Se não tiver nada configurado use o procedimento seguinte.

Configurando os servidores bando de dados e web

Configurando MariaDB ou MySQL

Estes passos serão mais simples se for usado o browser, a partir de localhost/phpmyadmin, faça tudo na força bruta como abaixo:

%sudo mysqladmin -u root password

%sudo mysqladmin create drupal8 -u root -p


%sudo mysql -D mysql -u root -p

O comando acima retornará a seguinte mensagem

            Enter password:
            Reading table information for completion of table and column names
            You can turn off this feature to get a quicker startup with -A

            Welcome to the MariaDB monitor.  Commands end with ; or \g.
            Your MariaDB connection id is 6
            Server version: 10.1.18-MariaDB MariaDB Server

            Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

            Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

            MariaDB [mysql]> GRANT ALL PRIVILEGES ON myd8site.* TO 'sqluser'@'localhost' IDENTIFIED BY 'password';
            Query OK, 0 rows affected (0.00 sec)

            MariaDB [mysql]> FLUSH PRIVILEGES;
            Query OK, 0 rows affected (0.01 sec)

            MariaDB [mysql]> QUIT;
            Bye

Configurando o servidor web

%sudo setsebool -P httpd_can_network_connect_db=1

%sudo setsebool -P httpd_can_sendmail=1

Configure o arquivo /etc/httpd/conf.d/drupal8.conf

%sudo sed -i 's/Require local/Require all granted/' /etc/httpd/conf.d/drupal8.conf  

Configure o firewall na port 80 (HTTP):

%sudo firewall-cmd --add-service=http --permanent
%sudo firewall-cmd --reload

Configure o arquivo setting.php com os comandos abaixo

%sudo cp /etc/drupal8/sites/default/default.settings.php /etc/drupal8/sites/default/settings.php
%sudo chmod 666 /etc/drupal8/sites/default/settings.php

Por fim reinicie o servidor web

%systemctl restart httpd

Configurando o Site Drupal

Abra o browser e acesse o site com http://localhost/drupal18

Escolha a linguagem padrão. Coloque o nome do banco de dados drupal8, o usuário e senha.

Pronto. Fim.

Fonte: email

Instalar o apache no Fedora o fedoraproject tem uma página especifica explicando detalhadamente tudo. O principais comandos são:

$ su

dnf install httpd

O servidor deve ser habilitado e iniciados com os comandos:

# systemctl enable httpd.service

# systemctl start httpd.service

O comando dnf é o novo instalador do Fedora, substitui o yum.

Link da página do fedoraproject. Acesse para ler todo conteúdo em inglês.

| Iniciar o Apache httpd no Fedora

Yum Repositórios para CentOS/RHEL. Abaixo lista contém cinco principais repositórios yum (RPMForge, Epel, remi, ATrpms, Webtatic) para sistemas baseados RHEL com links de instalação, o que necessita para manter nosso sistema atualizado com as mais recentes pacotes. Estes repositórios tem a maioria de rpms necessárias para servidores.

Adicionando Repositório RPMForge

Use seguintes comandos para instalar o repositório rpmforce em seus sistemas ### CentOS / RHEL 7/6/5.

CentOS/RHEL 7 x86 64bit:

rpm -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

CentOS/RHEL 6 x86 64bit:

rpm -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

CentOS/RHEL 6 x86 32bit:

rpm -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm

CentOS/RHEL 5 x86 64bit:

rpm -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm

CentOS/RHEL 5 x86 32bit:

rpm -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm

CentOS/RHEL 7 x86 64bit:

rpm -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

CentOS/RHEL 6 x86 64bit:

rpm -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

CentOS/RHEL 6 x86 32bit:

rpm -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm

CentOS/RHEL 5 x86 64bit:

rpm -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm

CentOS/RHEL 5 x86 32bit:

rpm -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm

Adicionando Repositório EPEL

Use os seguintes comandos para instalar yum repositório EPEL em seus sistemas ### CentOS / RHEL 7/6/5.

CentOS/RHEL 7

rpm -y install http://dl.### Fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

CentOS/RHEL 6

rpm -y install http://dl.### Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

CentOS/RHEL 5

rpm -y install http://dl.### Fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

CentOS/RHEL 7

rpm -y install http://dl.### Fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

CentOS/RHEL 6

rpm -y install http://dl.### Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

CentOS/RHEL 5

rpm -y install http://dl.### Fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

Adicionando Repositório REMI

Use os seguintes comandos para instalar repositório yum REMI em seus sistemas ### CentOS / RHEL 7/6/5 e ### Fedora 21/20 .

CentOS/RHEL 7

rpm -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

CentOS/RHEL 6

rpm -y install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

CentOS/RHEL 5

rpm -y install http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

Fedora 21

rpm -y install http://rpms.famillecollet.com/### Fedora/remi-release-21.rpm

Fedora 20

rpm -y install http://rpms.famillecollet.com/### Fedora/remi-release-20.rpm

CentOS/RHEL 7

rpm -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

CentOS/RHEL 6

rpm -y install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

CentOS/RHEL 5

rpm -y install http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

Fedora 21

rpm -y install http://rpms.famillecollet.com/### Fedora/remi-release-21.rpm

Fedora 20

rpm -y install http://rpms.famillecollet.com/### Fedora/remi-release-20.rpm

Adicionando Repositório ATrpms

Use seguintes comandos para instalar repositório yum ATrpms em seus sistemas ### CentOS / RHEL 7/6/5 e ### Fedora 20/19 .

CentOS/RHEL 7 x86 64bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-7-7.el7.x86_64.rpm

CentOS/RHEL 6 x86 64bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-6-7.el6.x86_64.rpm

CentOS/RHEL 6 x86 32bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-6-7.el6.i686.rpm

CentOS/RHEL 5 x86 64bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-5-7.el5.x86_64.rpm

CentOS/RHEL 5 x86 32bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-5-7.el5.i386.rpm

Fedora 20 x86 64bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-20-7.fc20.x86_64.rpm

Fedora 20 x86 32bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-20-7.fc20.i686.rpm

Fedora 19 x86 64bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-19-7.fc19.x86_64.rpm

Fedora 19 x86 32bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-19-7.fc19.i686.rpm

CentOS/RHEL 7 x86 64bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-7-7.el7.x86_64.rpm

CentOS/RHEL 6 x86 64bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-6-7.el6.x86_64.rpm

CentOS/RHEL 6 x86 32bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-6-7.el6.i686.rpm

CentOS/RHEL 5 x86 64bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-5-7.el5.x86_64.rpm

CentOS/RHEL 5 x86 32bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-5-7.el5.i386.rpm

Fedora 20 x86 64bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-20-7.fc20.x86_64.rpm

Fedora 20 x86 32bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-20-7.fc20.i686.rpm

Fedora 19 x86 64bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-19-7.fc19.x86_64.rpm

Fedora 19 x86 32bit:

rpm -y install http://dl.atrpms.net/all/atrpms-repo-19-7.fc19.i686.rpm

Adicionando Repositório Webtatic

Use os seguintes comandos para instalar REMI repositório yum em seus sistemas ### CentOS / RHEL 7/6/5.

CentOS/RHEL 7:

rpm -y install http://repo.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6:

rpm -y install http://repo.webtatic.com/yum/el6/latest.rpm

CentOS/RHEL 5:

rpm -y install http://repo.webtatic.com/yum/el5/latest.rpm

CentOS/RHEL 7:

rpm -y install http://repo.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6:

rpm -y install http://repo.webtatic.com/yum/el6/latest.rpm

CentOS/RHEL 5:

rpm -y install http://repo.webtatic.com/yum/el5/latest.rpm