Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 não reconhece APACHE2_OPTS="-D PHP"
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
neriberto
n00b
n00b


Joined: 16 Feb 2005
Posts: 11
Location: Limeira/SP

PostPosted: Fri Apr 08, 2005 7:00 pm    Post subject: Apache2 não reconhece APACHE2_OPTS="-D PHP" Reply with quote

Olá pessoal instalei o apache2 e ele não está interpretando corretamente a linha APACHE2_OPTS="-D PHP" quando digito apache2ctl start retorna isto :
Syntax error on line 15 of /etc/apache2/conf/apache2.conf:
Invalid command 'APACHE_OPTS="-D', perhaps mis-spelled or defined by a module not included in the server configuration

Alguem sabe me dizer o que pode ser ? só estou tentando fazer o apache2 funcionar com o php(versão 4)
Back to top
View user's profile Send private message
mamsbrl
n00b
n00b


Joined: 16 May 2002
Posts: 53
Location: Boca Raton - Florida, USA

PostPosted: Fri Apr 08, 2005 7:27 pm    Post subject: Reply with quote

pode parecer uma pergunta boba mais por acaso voce instalou o mod_php?

mais voce deve dar "-D PHP4" para versao 4 ou "-D PHP5" para versao 5 do php.
Back to top
View user's profile Send private message
neriberto
n00b
n00b


Joined: 16 Feb 2005
Posts: 11
Location: Limeira/SP

PostPosted: Fri Apr 08, 2005 7:35 pm    Post subject: Reply with quote

instalei sim, pior que sim e já tentei APACHE_OPTS, APACHE2_OPTS, já tentei PHP e PHP4 mas nos dois casos retorna isto, ainda não conhecia está opção para o apache, eu uso slackware e nunca vi isto em suas linhas...
Back to top
View user's profile Send private message
Matheus Villela
Apprentice
Apprentice


Joined: 25 Oct 2003
Posts: 263

PostPosted: Fri Apr 08, 2005 11:39 pm    Post subject: Reply with quote

Eu nem sei ao certo, mas isso aí não é pra usar o php "externamente" ?

Lembro que nunca consegui fazer funcionar direito dessa forma então sempre usei o php como módulo :P
LoadModule php4_module /usr/lib/apache2-extramodules/libphp4.so
Back to top
View user's profile Send private message
r3pek
Retired Dev
Retired Dev


Joined: 17 Sep 2003
Posts: 568
Location: Lisbon - Portugal

PostPosted: Sat Apr 09, 2005 11:05 pm    Post subject: Reply with quote

a linha APACHE2_OPTS="-D PHP" é pa ser alterada em /etc/conf.d/apache2 e nao no ficheiro de configuração do apache.
Back to top
View user's profile Send private message
s0undt3ch
n00b
n00b


Joined: 09 Apr 2005
Posts: 14

PostPosted: Mon Apr 11, 2005 2:43 am    Post subject: Reply with quote

r3pek wrote:
a linha APACHE2_OPTS="-D PHP" é pa ser alterada em /etc/conf.d/apache2 e nao no ficheiro de configuração do apache.

e para o php4 é "-D PHP4"
instalei o apache2 hoje com o mod_php e está a bulir bem...
_________________
s0undt3ch
The real *nux newbie, one has to admit!!!

[ AMD Athlon @ 1 Ghz / 512 RAM on Gentoo 2005.1 [SERVER] ]
[ P4 @ 2.8 GHz / 1Gig Ram on Gentoo 2005.1/XP ]
Back to top
View user's profile Send private message
neriberto
n00b
n00b


Joined: 16 Feb 2005
Posts: 11
Location: Limeira/SP

PostPosted: Mon Apr 11, 2005 2:41 pm    Post subject: Reply with quote

é infelizmente não está funcionando, fiz os emerge do php, mod_php e apache configurei o apache no arquivo /etc/conf/apache2 e não no /etc/apache2/conf/ o apache roda mas a ao carregar a página não executa como um documento php
Back to top
View user's profile Send private message
neriberto
n00b
n00b


Joined: 16 Feb 2005
Posts: 11
Location: Limeira/SP

PostPosted: Mon Apr 11, 2005 7:57 pm    Post subject: Reply with quote

Pessoal não sei porque mas reiniciei a máquina agora e bem, depois do reboot tá funcionando :) obrigado a todos.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum