RES: [PHP] Installing PHP

2011-09-21 Thread Mateus Almeida
Thanks for the help, people. Problem solved.


-Mensagem original-
De: Alejandro Michelin Salomon (Hotmail) [mailto:amichel...@hotmail.com] 
Enviada em: quarta-feira, 21 de setembro de 2011 00:07
Para: 'Mateus Almeida'
Cc: php-general@lists.php.net
Assunto: RES: [PHP] Installing PHP

Mateus:

Para configurar o php no apache :
1) Adicionar estas linhas no httpd.conf

Troca D:\PHP\ pelos dados da tua instalação.
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir D:\PHP\ 
LoadModule php5_module D:\PHP\php5apache2_2.dll

AddHandler application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

2 ) Trocar o directory index do apache
IfModule dir_module
DirectoryIndex index.html index.php adicionar index.php como um arquivo
padrão para ele procurar
/IfModule

Inglish:

Mateus:
To configure php on apache:
1) Add this lines in httpd.conf

Change this D:\PHP\ to yours instalation data.
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir D:\PHP\ 
LoadModule php5_module D:\PHP\php5apache2_2.dll

AddHandler application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

2 ) Change the directory index on apache
IfModule dir_module
DirectoryIndex index.html index.php == add index.php to be a default
file to search
/IfModule

Alejandro M.S.
PAO/RS
Brasil

-Mensagem original-
De: Mateus Almeida [mailto:supor...@avanutri.com.br] 
Enviada em: segunda-feira, 19 de setembro de 2011 18:32
Para: php-general@lists.php.net
Assunto: [PHP] Installing PHP

Hello, I'm newbie and I'm trying to install PHP with Apache, but it doesn't
work. 

Every time I try to run a test I receive the message Not Found The
requested URL /php/php-cgi.exe/test.php was not found on this server. OR
(when I try to change some options) Forbidden You don't have permission to
access /php/php-cgi.exe/test.php on this server.

I've tried to copy the recommended configurations from some sites, but it
haven't worked. 

The machine runs Windows XP, I'm using an administrator account, no firewall
is blocking me, PHP and Apache are the most recent versions.

Thanks in advance.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RES: [PHP] Installing PHP

2011-09-20 Thread Mateus Almeida
Yes, I've put the test.php in the htdocs.
The server works with an html file, but it doesn’t work with the php.

-Mensagem original-
De: Bastien [mailto:phps...@gmail.com] 
Enviada em: terça-feira, 20 de setembro de 2011 09:04
Para: Mateus Almeida
Cc: php-general@lists.php.net
Assunto: Re: [PHP] Installing PHP



On 2011-09-19, at 5:32 PM, Mateus Almeida supor...@avanutri.com.br
wrote:

 Hello, I'm newbie and I'm trying to install PHP with Apache, but it
doesn't
 work. 
 
 Every time I try to run a test I receive the message Not Found The
 requested URL /php/php-cgi.exe/test.php was not found on this server. OR
 (when I try to change some options) Forbidden You don't have permission
to
 access /php/php-cgi.exe/test.php on this server.
 
 I've tried to copy the recommended configurations from some sites, but it
 haven't worked. 
 
 The machine runs Windows XP, I'm using an administrator account, no
firewall
 is blocking me, PHP and Apache are the most recent versions.
 
 Thanks in advance.
 

The files need to go into the htdocs folder of the apache installation. They
do no go in the php folder at all. 

You can also set the root directory in the httpd.conf file, the apache
config, to place the root of the webserver elsewhere in your filesystem

Bastien Koert
905-904-0334


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: RES: [PHP] Installing PHP

2011-09-20 Thread Lester Caine

Mateus Almeida wrote:

Yes, I've put the test.php in the htdocs.
The server works with an html file, but it doesn’t work with the php.


Mateus

There are only tow things which need adding to httpd.conf to get PHP working.

LoadModule should point to your php installation
LoadModule php5_module c:/Network/PHP-5_2_6a/php5apache2_2.dll

And file type
AddType application/x-httpd-php .php .php5

I suspect you have an 'Action' line which should be commented out.

--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: RES: [PHP] Installing PHP

2011-09-20 Thread Curtis Maurand



try http://localhost/test.php



Mateus Almeida
wrote:
 Yes, I've put the test.php in the htdocs.
 The server works with an html file, but it doesnrsquo;t work with
the php.
 
 -Mensagem original-
 De:
Bastien [mailto:phps...@gmail.com]
 Enviada em:
terça-feira, 20 de setembro de 2011 09:04
 Para: Mateus
Almeida
 Cc: php-general@lists.php.net
 Assunto:
Re: [PHP] Installing PHP
 
 
 
 On
2011-09-19, at 5:32 PM, Mateus Almeida
supor...@avanutri.com.br
 wrote:
 

Hello, I'm newbie and I'm trying to install PHP with Apache, but it
 doesn't
 work.

 Every time
I try to run a test I receive the message Not Found The
 requested URL /php/php-cgi.exe/test.php was not found on this
server.
 OR
 (when I try to change some
options) Forbidden You don't have permission
 to
 access /php/php-cgi.exe/test.php on this server.

 I've tried to copy the recommended configurations
from some sites, but
 it
 haven't worked.

 The machine runs Windows XP, I'm using an
administrator account, no
 firewall
 is blocking me,
PHP and Apache are the most recent versions.


Thanks in advance.

 
 The files need to go
into the htdocs folder of the apache installation.
 They
 do no go in the php folder at all.
 
 You can
also set the root directory in the httpd.conf file, the apache

config, to place the root of the webserver elsewhere in your filesystem
 
 Bastien Koert
 905-904-0334
 
 
 --
 PHP General Mailing List
(http://www.php.net/)
 To unsubscribe, visit:
http://www.php.net/unsub.php
 



Re: RES: RES: [PHP] Installing PHP

2011-09-20 Thread Curtis Maurand
 [mailto:cur...@maurand.com]
 Enviada em: terça-feira, 20 de setembro de 2011 11:50
 Para: Mateus Almeida
 Cc: 'Bastien';
php-general@lists.php.net
 Assunto: Re: RES: [PHP] Installing
PHP
 
 
 
 
 try
http://localhost/test.php
 
 
 

Mateus Almeida wrote:
 Yes, I've put the test.php
in the htdocs.
 The server works with an html file, but it
doesnrsquo;t work with the php.

 -Mensagem
original-
 De: Bastien [mailto:phps...@gmail.com]
 Enviada em: terça-feira, 20 de setembro de 2011 09:04
 Para: Mateus Almeida
 Cc:
php-general@lists.php.net
 Assunto: Re: [PHP]
Installing PHP



 On
2011-09-19, at 5:32 PM, Mateus Almeida
supor...@avanutri.com.br
 wrote:

 Hello, I'm newbie and I'm trying to install PHP with
Apache, but it
 doesn't
 work.

 Every time I try to run a test I receive
the message Not Found The
 requested URL
/php/php-cgi.exe/test.php was not found on this server.
 OR
 (when I try to change some options)
Forbidden You don't have
 permission

to
 access /php/php-cgi.exe/test.php on this
server.

 I've tried to copy the
recommended configurations from some sites, but
 it
 haven't worked.

 The
machine runs Windows XP, I'm using an administrator account, no
 firewall
 is blocking me, PHP and Apache are
the most recent versions.

 Thanks in
advance.


 The files need to
go into the htdocs folder of the apache installation.

They
 do no go in the php folder at all.

 You can also set the root directory in the httpd.conf file, the
apache
 config, to place the root of the webserver elsewhere
in your filesystem

 Bastien Koert

905-904-0334


 --

PHP General Mailing List (http://www.php.net/)
 To
unsubscribe, visit: http://www.php.net/unsub.php


 



RES: [PHP] Installing PHP

2011-09-20 Thread Alejandro Michelin Salomon (Hotmail)
Mateus:

Para configurar o php no apache :
1) Adicionar estas linhas no httpd.conf

Troca D:\PHP\ pelos dados da tua instalação.
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir D:\PHP\ 
LoadModule php5_module D:\PHP\php5apache2_2.dll

AddHandler application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

2 ) Trocar o directory index do apache
IfModule dir_module
DirectoryIndex index.html index.php adicionar index.php como um arquivo
padrão para ele procurar
/IfModule

Inglish:

Mateus:
To configure php on apache:
1) Add this lines in httpd.conf

Change this D:\PHP\ to yours instalation data.
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir D:\PHP\ 
LoadModule php5_module D:\PHP\php5apache2_2.dll

AddHandler application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

2 ) Change the directory index on apache
IfModule dir_module
DirectoryIndex index.html index.php == add index.php to be a default
file to search
/IfModule

Alejandro M.S.
PAO/RS
Brasil

-Mensagem original-
De: Mateus Almeida [mailto:supor...@avanutri.com.br] 
Enviada em: segunda-feira, 19 de setembro de 2011 18:32
Para: php-general@lists.php.net
Assunto: [PHP] Installing PHP

Hello, I'm newbie and I'm trying to install PHP with Apache, but it doesn't
work. 

Every time I try to run a test I receive the message Not Found The
requested URL /php/php-cgi.exe/test.php was not found on this server. OR
(when I try to change some options) Forbidden You don't have permission to
access /php/php-cgi.exe/test.php on this server.

I've tried to copy the recommended configurations from some sites, but it
haven't worked. 

The machine runs Windows XP, I'm using an administrator account, no firewall
is blocking me, PHP and Apache are the most recent versions.

Thanks in advance.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RES: [PHP] Installing PHP

2011-07-04 Thread Alejandro Michelin Salomon (Hotmail)
Jim:
In my Windows the install adds the lines :

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir C:\PHP\
LoadModule php5_module C:\PHP\php5apache2_2.dll

AddHandler application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Where is the apache version that you install?

I have the apache 2.2.17

This  php5apache2.dll  is for the version 2.0.x
And this  php5apache2_2.dll  for the version 2.2.x

Maybe the dll files is in the brong version.

Alejandro M.S.

-Mensagem original-
De: Jim Giner [mailto:jim.gi...@albanyhandball.com] 
Enviada em: segunda-feira, 4 de julho de 2011 09:40
Para: php-general@lists.php.net
Assunto: [PHP] Installing PHP

Hi all,
(Hopefully I posted this in a place that can/will help me)

I got curious about running php / apache on my own laptop in order to help
my devl process, instead of writing, uploading and testing on my site.

Found a nice pair of docs from thesitewizard.com that appeared to be
pretty well-written instructions on installing each of these systems.  btw-
I'm running XpSp2.  Chose the Apache 2.0 and PHP 5.2 (thread-safe?) per the
recommendations.

Went thru all instructions step-by-step, testing all the way.  Apache
works - PHP doesn't.  When I bring up IE and type in localhost I get the
default apache page as I was told I should see.  When I type
localhost/test.php I get a windows dialog asking what program should run
the php script.

In debugging I went to a cmd windows and ran c:\php\php-cgi test.php and
got the expected result from my script - so PHP works.

End result - they each work separately, but php is not working under apache.

As part of the docs instructions I added the following code to the apache
conf file:

1 - I chose the configure apache to run php as an apache module.
2 - added LoadModule php5_module c:/php/php5apache2.dll as last one of
those lines
3 - added AddType application/x-httpd-php .php as the last of those lines
4 - added PHPIniDir c:/php as the last line of the conf file.

Upon adding these lines apache will no longer restart.  In fact adding any
ONE of these lines breaks Apache.

Ideas welcome.

And for those who still love the USofA, Happy Independence Day!





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: RES: [PHP] Installing PHP

2011-07-04 Thread Chris Stinemetz
Jim,

What is your server root set up too? I would put the apache configuration
back to the way it was and then place php script with phpinfo() function in
it. Try to run it and see if that works.

HTH,

Chris
On Jul 4, 2011 8:14 AM, Alejandro Michelin Salomon (Hotmail) 
amichel...@hotmail.com wrote:
 Jim:
 In my Windows the install adds the lines :

 #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
 PHPIniDir C:\PHP\
 LoadModule php5_module C:\PHP\php5apache2_2.dll

 AddHandler application/x-httpd-php .php
 #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

 Where is the apache version that you install?

 I have the apache 2.2.17

 This  php5apache2.dll  is for the version 2.0.x
 And this  php5apache2_2.dll  for the version 2.2.x

 Maybe the dll files is in the brong version.

 Alejandro M.S.

 -Mensagem original-
 De: Jim Giner [mailto:jim.gi...@albanyhandball.com]
 Enviada em: segunda-feira, 4 de julho de 2011 09:40
 Para: php-general@lists.php.net
 Assunto: [PHP] Installing PHP

 Hi all,
 (Hopefully I posted this in a place that can/will help me)

 I got curious about running php / apache on my own laptop in order to help
 my devl process, instead of writing, uploading and testing on my site.

 Found a nice pair of docs from thesitewizard.com that appeared to be
 pretty well-written instructions on installing each of these systems. btw-
 I'm running XpSp2. Chose the Apache 2.0 and PHP 5.2 (thread-safe?) per the
 recommendations.

 Went thru all instructions step-by-step, testing all the way. Apache
 works - PHP doesn't. When I bring up IE and type in localhost I get the
 default apache page as I was told I should see. When I type
 localhost/test.php I get a windows dialog asking what program should run
 the php script.

 In debugging I went to a cmd windows and ran c:\php\php-cgi test.php and
 got the expected result from my script - so PHP works.

 End result - they each work separately, but php is not working under
apache.

 As part of the docs instructions I added the following code to the apache
 conf file:

 1 - I chose the configure apache to run php as an apache module.
 2 - added LoadModule php5_module c:/php/php5apache2.dll as last one of
 those lines
 3 - added AddType application/x-httpd-php .php as the last of those
lines
 4 - added PHPIniDir c:/php as the last line of the conf file.

 Upon adding these lines apache will no longer restart. In fact adding any
 ONE of these lines breaks Apache.

 Ideas welcome.

 And for those who still love the USofA, Happy Independence Day!





 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php