Mudanças entre as edições de "Instalação do APACHE"
Ir para navegação
Ir para pesquisar
(3 revisões intermediárias por 2 usuários não estão sendo mostradas) | |||
Linha 8: | Linha 8: | ||
*Abrir arquivo: | *Abrir arquivo: | ||
#vi /etc/httpd/conf/httpd.conf | #vi /etc/httpd/conf/httpd.conf | ||
+ | *Editar a seguinte linha: | ||
+ | ServerName www.exemplo.com | ||
+ | para | ||
+ | ServerName maquina.dominio.extensão | ||
+ | ex | ||
+ | ServerName maverick.berbigao.sj.cefetsc.edu.br | ||
− | * | + | *Acrescentar no fim do arquivo |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <IfModule | + | <IfModule mod_userdir.c> |
− | + | UserDir public_html | |
− | |||
− | |||
− | |||
− | |||
</IfModule> | </IfModule> | ||
− | + | loadmodule userdir_module modules/mod_userdir.so | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <Directory /home/*/public_html> | |
− | + | AllowOverride FileInfo AuthConfig Limit | |
− | + | Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec | |
− | + | <Limit GET POST OPTIONS PROPFIND> | |
− | + | Order allow,deny | |
− | + | Allow from all | |
− | + | </Limit> | |
− | + | <LimitExcept GET POST OPTIONS PROPFIND> | |
− | + | Order deny,allow | |
− | + | Deny from all | |
− | + | </LimitExcept> | |
− | + | </Directory> | |
− | |||
− | |||
− | |||
− | |||
− | + | *Iniciar, Parar e reiniciar o serviço | |
+ | service httpd start | ||
+ | service httpd stop | ||
+ | service httpd restart |
Edição atual tal como às 21h07min de 1 de abril de 2007
Instalando o serviço Apache
- Para instalar o serviço Apache, digitar:
#urpmi apache
Editando o arquivo de configuração do serviço Apache
Editando o arquivo "httpd.conf"
- Abrir arquivo:
#vi /etc/httpd/conf/httpd.conf
- Editar a seguinte linha:
ServerName www.exemplo.com para ServerName maquina.dominio.extensão ex ServerName maverick.berbigao.sj.cefetsc.edu.br
- Acrescentar no fim do arquivo
<IfModule mod_userdir.c> UserDir public_html </IfModule>
loadmodule userdir_module modules/mod_userdir.so
<Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept> </Directory>
- Iniciar, Parar e reiniciar o serviço
service httpd start service httpd stop service httpd restart