You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Silvio Siefke <li...@silviosiefke.de> on 2009/09/21 19:46:57 UTC

[users@httpd] PHP5

Hello,

i want to configure Apache2 under Windows Server 2003.

The follow lines i have write:
Action application/x-httpd-php "/php/php-cgi.exe"
AddHandler application/x-httpd-php .php

Apache Dir > c:\apache2
PHP Dir > c:\php

The follow error Messages come:
[Mon Sep 21 19:41:34 2009] [error] [client] File does not exist:
C:/Apache2/htdocs/php/php-cgi.exe

I have copy the php-cgi.exe in the directory. When i called up the homepage
i can download the php File.


Have someone a idea?


Greetings
Silvio

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: PHP5

Posted by Nicholas Sherlock <n....@gmail.com>.
Silvio Siefke wrote:
> Error:
> it comes a window what say "The requested operation has failed".
> No log entry.


Check the "applications" section of the windows Event Viewer. Startup 
errors can end up there in some situations.

Cheers,
Nicholas Sherlock


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] PHP5

Posted by Silvio Siefke <li...@silviosiefke.de>.
Serge Fonville schrieb:
> 
>     It were it. But as module Apache running not and write no log. I
>     don't know
> 
>     why apache dosen't start, when i write config for module.
> 
> 
> What steps have you taken to run it as a module, because all I needed to
> do was:
> Add php to the path
> Add a module line
> Add phpinidir to httpd.conf

php.conf
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"


Error:
it comes a window what say "The requested operation has failed".
No log entry.

Greeting
Silvio


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] PHP5

Posted by Serge Fonville <se...@gmail.com>.
> It were it. But as module Apache running not and write no log. I don't know

why apache dosen't start, when i write config for module.


What steps have you taken to run it as a module, because all I needed to do
was:Add php to the path
Add a module line
Add phpinidir to httpd.conf

This is described in install.txt

HTH

Regards,

Serge Fonville

On Mon, Sep 21, 2009 at 9:08 PM, Silvio Siefke <li...@silviosiefke.de>wrote:

> Serge Fonville schrieb:
> >     > What is the reason you wan't to run php as cgi
> >
> >     Yes i want when its run.
> >
> > Why do you want to run it as cgi?
> > What makes that running as a module isn't an option?
>
> It were it. But as module Apache running not and write no log. I don't know
> why apache dosen't start, when i write config for module.
>
>
> Greetings
> Silvio
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] PHP5

Posted by Silvio Siefke <li...@silviosiefke.de>.
Serge Fonville schrieb:
>     > What is the reason you wan't to run php as cgi
> 
>     Yes i want when its run.
> 
> Why do you want to run it as cgi?
> What makes that running as a module isn't an option?

It were it. But as module Apache running not and write no log. I don't know
why apache dosen't start, when i write config for module.


Greetings
Silvio


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] PHP5

Posted by Serge Fonville <se...@gmail.com>.
>
> > What is the reason you wan't to run php as cgi
>
> Yes i want when its run.
>
Why do you want to run it as cgi?
What makes that running as a module isn't an option?

Regards,

Serge Fonville


>
>
> Now the follow entry in the log:
> [Mon Sep 21 20:01:10 2009] [error] [client] client denied by server
> configuration: C:/PHP/php-cgi.exe
>
> php.conf
> ScriptAlias /php/ "C:/php/"
> AddHandler php-script .php
> AddHandler application/x-httpd-php .php
> Action application/x-httpd-php "c:/php/php-cgi.exe"
>
>
>
> Greeting
> Silvio
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] PHP5

Posted by Silvio Siefke <li...@silviosiefke.de>.
Serge Fonville schrieb:
> What is the reason you wan't to run php as cgi

Yes i want when its run.


Now the follow entry in the log:
[Mon Sep 21 20:01:10 2009] [error] [client] client denied by server
configuration: C:/PHP/php-cgi.exe

php.conf
ScriptAlias /php/ "C:/php/"
AddHandler php-script .php
AddHandler application/x-httpd-php .php
Action application/x-httpd-php "c:/php/php-cgi.exe"



Greeting
Silvio

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] PHP5

Posted by Serge Fonville <se...@gmail.com>.
Hi,

i want to configure Apache2 under Windows Server 2003.
>
> The follow lines i have write:
> Action application/x-httpd-php "/php/php-cgi.exe"
> AddHandler application/x-httpd-php .php
>
> Apache Dir > c:\apache2
> PHP Dir > c:\php
>
> The follow error Messages come:
> [Mon Sep 21 19:41:34 2009] [error] [client] File does not exist:
> C:/Apache2/htdocs/php/php-cgi.exe


What is the reason you wan't to run php as cgi

Regards,

Serge Fonville

Re: [users@httpd] PHP5

Posted by Serge Fonville <se...@gmail.com>.
Have you restarted our system afterwards?
Since the error seems to be in the executable and not in the configuration
(httpd -t)
I'd check dependency walker.
Check the missing dependencies and get those resolved

HTH

Regards,

Serge Fonville

On Tue, Sep 22, 2009 at 4:55 PM, Silvio Siefke <li...@silviosiefke.de>wrote:

> Serge Fonville schrieb:
> > Have you installed visual C++ redistributables 2005/2008?
>
>
> Yes i have installed.
> Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729
>
>
>
> Greeting
> Silvio
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] PHP5

Posted by Silvio Siefke <li...@silviosiefke.de>.
Serge Fonville schrieb:
> Have you installed visual C++ redistributables 2005/2008?


Yes i have installed.
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729



Greeting
Silvio

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] PHP5

Posted by Serge Fonville <se...@gmail.com>.
I just noticed

> it comes a window what say "The requested operation has failed".

Have you installed visual C++ redistributables 2005/2008?

That might resolve the error

HTH

Regards,

Serge Fonville

On Tue, Sep 22, 2009 at 4:07 PM, Silvio Siefke <li...@silviosiefke.de>wrote:

> Serge Fonville schrieb:
>  > You must have logs
> > either access or error.log
>
> access.log
> 127.0.0.1 - - [22/Sep/2009:16:05:01 +0200] "GET /test.php HTTP/1.1" 200 19
>
> error.log
> [Tue Sep 22 16:04:53 2009] [notice] Apache/2.2.13 (Win32) PHP/5.2.11
> configured -- resuming normal operations
> [Tue Sep 22 16:04:53 2009] [notice] Server built: Aug  6 2009 15:50:50
> [Tue Sep 22 16:04:53 2009] [notice] Parent: Created child process 13492
> [Tue Sep 22 16:04:53 2009] [notice] Child 13492: Child process is running
> [Tue Sep 22 16:04:53 2009] [notice] Child 13492: Acquired the start mutex.
> [Tue Sep 22 16:04:53 2009] [notice] Child 13492: Starting 64 worker
> threads.
> [Tue Sep 22 16:04:53 2009] [notice] Child 13492: Starting thread to listen
> on port 80.
>
>
>
> > I meant is c:\php in your path variable
>
> C:\Perl\site\bin;C:\Perl\bin;C:\PHP\;C:\Program Files (x86)\Mail
>
> Enable\BIN;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program
> Files (x86)\Mail Enable\BIN64;C:\Program Files\MySQL\MySQL Server 5.1\bin
>
> > Also I noticed that it tries to download the php file
> > Have you restarted apache when you changed the config?
>
> Yes i have.
>
>
> Greeting
> Silvio
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] PHP5

Posted by Silvio Siefke <li...@silviosiefke.de>.
Serge Fonville schrieb:
 > You must have logs
> either access or error.log

access.log
127.0.0.1 - - [22/Sep/2009:16:05:01 +0200] "GET /test.php HTTP/1.1" 200 19

error.log
[Tue Sep 22 16:04:53 2009] [notice] Apache/2.2.13 (Win32) PHP/5.2.11
configured -- resuming normal operations
[Tue Sep 22 16:04:53 2009] [notice] Server built: Aug  6 2009 15:50:50
[Tue Sep 22 16:04:53 2009] [notice] Parent: Created child process 13492
[Tue Sep 22 16:04:53 2009] [notice] Child 13492: Child process is running
[Tue Sep 22 16:04:53 2009] [notice] Child 13492: Acquired the start mutex.
[Tue Sep 22 16:04:53 2009] [notice] Child 13492: Starting 64 worker threads.
[Tue Sep 22 16:04:53 2009] [notice] Child 13492: Starting thread to listen
on port 80.



> I meant is c:\php in your path variable

C:\Perl\site\bin;C:\Perl\bin;C:\PHP\;C:\Program Files (x86)\Mail
Enable\BIN;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program
Files (x86)\Mail Enable\BIN64;C:\Program Files\MySQL\MySQL Server 5.1\bin

> Also I noticed that it tries to download the php file
> Have you restarted apache when you changed the config?

Yes i have.


Greeting
Silvio

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] PHP5

Posted by Serge Fonville <se...@gmail.com>.
On Tue, Sep 22, 2009 at 1:41 PM, Silvio Siefke <li...@silviosiefke.de>wrote:

> Serge Fonville schrieb:
> >     Apache runs with PHP as a module. Indeed, the side remains white by
> the
> >     call from phpinfo.
> >
> >     There no log entrys.
> >
> >
> > Just a few:
> >
> > What is the URL.
>
> http://trade.silviosiefke.de/test.php
>
> > What is your exisiting source (.php file)
>
> <? phpinfo(); ?>
>
> > What logs are you referring to
>
> nothing
>

You must have logs
either access or error.log

>
> > What is the relevant part of httpd.conf
>
> LoadModule php5_module c:/php/php5apache2_2.dll
> AddType application/x-httpd-php .php
> PHPIniDir "C:/php"
>
> > What is your path
>
> c:\php
>

I meant is c:\php in your path variable

Also I noticed that it tries to download the php file
Have you restarted apache when you changed the config?


>
> > Have you created a php.ini
>
> Yes.
> c:/php/php.ini
> c:/windows/system32/php.ini
> c:/windows/system/php.ini
>
>
> > Have you read install.txt
>
> Yes.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] PHP5

Posted by Silvio Siefke <li...@silviosiefke.de>.
Serge Fonville schrieb:
>     Apache runs with PHP as a module. Indeed, the side remains white by the
>     call from phpinfo.
> 
>     There no log entrys.
> 
>  
> Just a few:
>  
> What is the URL.

http://trade.silviosiefke.de/test.php

> What is your exisiting source (.php file)

<? phpinfo(); ?>

> What logs are you referring to

nothing

> What is the relevant part of httpd.conf

LoadModule php5_module c:/php/php5apache2_2.dll
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

> What is your path

c:\php

> Have you created a php.ini

Yes.
c:/php/php.ini
c:/windows/system32/php.ini
c:/windows/system/php.ini


> Have you read install.txt

Yes.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] PHP5

Posted by Serge Fonville <se...@gmail.com>.
>
> Apache runs with PHP as a module. Indeed, the side remains white by the
> call from phpinfo.
>
> There no log entrys.


Just a few:

What is the URL.
What is your exisiting source (.php file)
What logs are you referring to
What is the relevant part of httpd.conf
What is your path
Have you created a php.ini
Have you read install.txt

HTH

Regards,

Serge Fonville

On Tue, Sep 22, 2009 at 9:02 AM, Silvio Siefke <li...@silviosiefke.de>wrote:

> Hey,
>
> Apache runs with PHP as a module. Indeed, the side remains white by the
> call from phpinfo.
>
> There no log entrys.
>
>
> Greeting
> Silvio
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] PHP5

Posted by Silvio Siefke <li...@silviosiefke.de>.
Hey,

Apache runs with PHP as a module. Indeed, the side remains white by the
call from phpinfo.

There no log entrys.


Greeting
Silvio

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] PHP5

Posted by Nick Kew <ni...@webthing.com>.
Silvio Siefke wrote:
> Hello,
> 
> i want to configure Apache2 under Windows Server 2003.
> 
> The follow lines i have write:
> Action application/x-httpd-php "/php/php-cgi.exe"
> AddHandler application/x-httpd-php .php

That AddHandler is for mod_php.  To run PHP as CGI, you'd
want the cgi-script Handler.

Can't help with anything else that might affect you on Windows.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org