Mudanças entre as edições de "Roteiro de Instalação do Apache e SVN com autenticação NIS"
(→Configurando o Apache (htttpd)) |
|||
Linha 52: | Linha 52: | ||
Na linha 401, adicione index.php, ficando assim: | Na linha 401, adicione index.php, ficando assim: | ||
DirectoryIndex index.php index.html index.html.var | DirectoryIndex index.php index.html index.html.var | ||
+ | |||
+ | Ao final do arquivo adicione para o log: | ||
+ | #Alias for the log files | ||
+ | Alias /log log | ||
+ | |||
+ | <Direcotory /log> | ||
+ | Options +Indexes | ||
+ | IndexIgnore *.html lost+found | ||
+ | DirectoryIndex disabled | ||
+ | </Directory> | ||
+ | |||
+ | php_flag display_startup_erros off | ||
+ | php_flag display_errors off | ||
+ | php_flag html_errors off | ||
+ | |||
+ | Agora vamos iniciar o Apache e permitir sua inicialização automática: | ||
+ | # systemctl start httpd.service | ||
+ | # systemctl enable httpd.service | ||
=Caso algo de errado= | =Caso algo de errado= |
Edição das 13h01min de 14 de setembro de 2012
Índice
Objetivo desse roteiro
Este é um roteiro de como instalar o Apache (httpd), Mysql (mysqld) e Subversion com autenticação NIS para a LCAD 2 no LCAD.
Instalando os pacotes
Instale os pacotes necessários com o comando:
# yum install httpd php php-common mod_dav_svn subversion php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql \ php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml mysql mysql-server \ mysql-workbench perl-ExtUtils-AutoInstall
Após instalar todos vamos configurar o Mysql
Configurando o Mysql
Execute na linha de comando:
# systemctl start mysqld.service # systemctl enable mysqld.service
Logo após digite:
# mysql -u root -p
Entre com a nova senha de root.
Configurando o Apache (htttpd)
Edite o arquivo /etc/httpd/conf/httpd.conf
# vim /etc/httpd/conf/htttpd.conf
Na linha 261 que contém ServerAdmin, coloque:
ServerAdmin suporte@lcad.inf.ufes.br
Na linha 275 que contém ServerName, coloque:
ServerName www.lcad.inf.ufes.br
Na linha 365 que contém Userdir disabled, coloque:
Userdir enabled
Descomente a linha 372, ficando assim:
UserDir public_html
Apague as linhas de 380 até 391 e coloque:
<Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes +FollowSymLinks Includes <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all </LimitExcept> </Directory>
Na linha 401, adicione index.php, ficando assim:
DirectoryIndex index.php index.html index.html.var
Ao final do arquivo adicione para o log:
#Alias for the log files Alias /log log <Direcotory /log> Options +Indexes IndexIgnore *.html lost+found DirectoryIndex disabled </Directory> php_flag display_startup_erros off php_flag display_errors off php_flag html_errors off
Agora vamos iniciar o Apache e permitir sua inicialização automática:
# systemctl start httpd.service # systemctl enable httpd.service
Caso algo de errado
Procure na internet, especialmente: