Athos Felipe 0 Denunciar post Postado Fevereiro 3, 2010 Boa tarde IMaster's, estou com um problema que o index.php não executa sozinho quando abro na url o endereço, abrindo assim os arquivos que estão dentro da pasta listados, segue a configuração do meu apache. Desde Já, Obrigado! <Directory /> AllowOverride None Order deny,allow Deny from all </Directory> <Directory "/usr/local/www/apache22/data"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory> # # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # <IfModule dir_module> DirectoryIndex index.php index.html * Um ao outro ajudou e ao companheiro disse : Esforça-te! Compartilhar este post Link para o post Compartilhar em outros sites
Beraldo 864 Denunciar post Postado Fevereiro 4, 2010 Se você colocar um index.html funciona normalmente? Compartilhar este post Link para o post Compartilhar em outros sites
Athos Felipe 0 Denunciar post Postado Fevereiro 5, 2010 Se você colocar um index.html funciona normalmente? index.html também não Beraldo, e configurei também um vhost no Apache mas nada... Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Fevereiro 5, 2010 1. está alterando o httpd.conf correto ? se estiver correto, após alterar, reiniciou o apache ? 2. se executar http://endereço/index.php, o que acontece ? 3. o problema começou a partir de quando ? fez alguma alteração recente ? estava funcionando antes ? é uma instalaçao nova ? Compartilhar este post Link para o post Compartilhar em outros sites
Athos Felipe 0 Denunciar post Postado Fevereiro 5, 2010 1. está alterando o httpd.conf correto ? se estiver correto, após alterar, reiniciou o apache ? 2. se executar http://endereço/index.php, o que acontece ? 3. o problema começou a partir de quando ? fez alguma alteração recente ? estava funcionando antes ? é uma instalaçao nova ? Olá, sim altero corretamente e reinicio. Quando executo este comando colocando o www.endereço.com.br/diretório/index.php ele entra corretamente. O É uma aplicação nova, portanto começou desde que passei a pasta pro diretório no apache. Quando eu coloco www.endereço.com.br ele funciona com um index que existe lá, mas quando passo pra dentro do diretório não. Obrigado desde já. Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Fevereiro 5, 2010 existe alguma regra url? mod_rewrite,, por exemplo? se existir, poste aqui. poste tb o conteudo do httpd.conf. poste sem os trechos comentados pra nao ficar muito extenso, e alguem poderah ler e ajudar com mais facilidade. se o httpd.conf possuir dependencias, como o vhosts.conf por exemplo, poste-os tambem.. Compartilhar este post Link para o post Compartilhar em outros sites
Athos Felipe 0 Denunciar post Postado Fevereiro 10, 2010 existe alguma regra url? mod_rewrite,, por exemplo? se existir, poste aqui. poste tb o conteudo do httpd.conf. poste sem os trechos comentados pra nao ficar muito extenso, e alguem poderah ler e ajudar com mais facilidade. se o httpd.conf possuir dependencias, como o vhosts.conf por exemplo, poste-os tambem.. OK , segue sem comentários... grato <Directory "/usr/local/www/apache22/data"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> <IfModule dir_module> DirectoryIndex index.html index.htm index.php </IfModule> <FilesMatch "^\.ht"> Order allow,deny Deny from all Satisfy All </FilesMatch> ErrorLog /var/log/httpd-error.log LogLevel warn <IfModule log_config_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common <IfModule logio_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> CustomLog /var/log/httpd-access.log combined <IfModule alias_module> Alias /roundcube /usr/local/www/apache22/data/roundcube <Directory /usr/local/www/apache22/data/roundcube> AllowOverride none Options MultiViews Includes FollowSymLinks DirectoryIndex index.php index.html Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/" </IfModule> <IfModule cgid_module> criptsock /var/run/cgisock </IfModule> <Directory "/usr/local/www/apache22/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> DefaultType text/plain <IfModule mime_module> TypesConfig etc/apache22/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps tFilter INCLUDES .shtml </IfModule> <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> Include etc/apache22/Includes/*.conf -----------------------------------------------abaixo arquivo vhost------------------------------------------------------------------------- NameVirtualHost * #---------------------------------------------------------- <VirtualHost *>-------FUNCIONA------------- ServerAdmin postmaster@meudomínio.com.br ServerName www.domínio.com.br ServerAlias www.domínio.com.br DirectoryIndex index.html </VirtualHost> #------------------------------------------------------------------------------- #---------------------------Webmail-------------------------------------------- <VirtualHost *>--------FUNCIONA----------------- ServerAdmin postmaster@domínio.com.br ServerName webmail.domínio.com.br ServerAlias webmail.domínio.com.br DirectoryIndex webmail.html </VirtualHost> #------------------------------------------------------------------------------- #----------------------------projeto------------------------------ <VirtualHost *>--------NÃO FUNCIONA------------------ ServerAdmin postmaster@domínio.com.br ServerName www.domínio.com.br/minhapasta/ ServerAlias www.domínio.com.br/minhapasta/ DirectoryIndex index.html </VirtualHost> ------------------------------------------------------------------------------- Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Fevereiro 11, 2010 a configuração está confusa.. está faltando diversas partes e em diversos trechos, aponta para paths que parecem inválido como por exemplo TypesConfig etc/apache22/mime.types Include etc/apache22/Includes/*.conf não possui a lista de módulos ? poste tudo... mesmo se tiver comentário. obs: se tiver alguma informação confidencial, remova e troque por dados fictícios antes de publicar aqui Compartilhar este post Link para o post Compartilhar em outros sites
koga021 0 Denunciar post Postado Fevereiro 24, 2010 <VirtualHost *>--------NÃO FUNCIONA------------------ ServerAdmin postmaster@domínio.com.br ServerName www.domínio.com.br/minhapasta/ ServerAlias www.domínio.com.br/minhapasta/ DirectoryIndex index.PHP </VirtualHost> ALTERA PARA O INDEX.PHP Compartilhar este post Link para o post Compartilhar em outros sites