Newbie: PHP4.3 not working with Apache2

This is a discussion on Newbie: PHP4.3 not working with Apache2 within the PHP Language forums, part of the PHP Programming Forums category; Hopefully someone here can provide a relatively simple solution to my problem or tell me the basic mistake I've ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2004
Coz
 
Posts: n/a
Default Newbie: PHP4.3 not working with Apache2

Hopefully someone here can provide a relatively simple solution to my
problem or tell me the basic mistake I've made ...

I have installed Apache 2.0.48 on Win2k pro and it is serving static
HTML pages without problem.

I am now attempting to get Apache to process php files. I have added
the following 3 lines to Apache's httpd.conf:

ScriptAlias /php/ "c:/php/"

AddType application/x-httpd-php .php

Action application/x-httpd-php "/php/php.exe"

PHP is installed in C:/PHP.

When I attempt to call my phpinfo.php using
http://localhost/phpinfo.php I get the message:

"No input file specified."

in my browser.

phpinfo.php source :

<?php

phpinfo();

?>

Many thanks in advance

Graham.
Reply With Quote
  #2 (permalink)  
Old 01-16-2004
Coz
 
Posts: n/a
Default Re: Newbie: PHP4.3 not working with Apache2

OK, OK, it's me being stupid!!

I had downloaded and installed the incorrect version of PHP, the one
without all the external extensions. Now downloading the correct one
and trying again.

Sorry.

Graham.


On Fri, 16 Jan 2004 00:11:20 +0000, Coz <grahamATcossey.plus.com@>
wrote:

>Hopefully someone here can provide a relatively simple solution to my
>problem or tell me the basic mistake I've made ...
>
>I have installed Apache 2.0.48 on Win2k pro and it is serving static
>HTML pages without problem.
>
>I am now attempting to get Apache to process php files. I have added
>the following 3 lines to Apache's httpd.conf:
>
>ScriptAlias /php/ "c:/php/"
>
>AddType application/x-httpd-php .php
>
>Action application/x-httpd-php "/php/php.exe"
>
>PHP is installed in C:/PHP.
>
>When I attempt to call my phpinfo.php using
>http://localhost/phpinfo.php I get the message:
>
>"No input file specified."
>
>in my browser.
>
>phpinfo.php source :
>
><?php
>
>phpinfo();
>
>?>
>
>Many thanks in advance
>
>Graham.


Reply With Quote
  #3 (permalink)  
Old 01-16-2004
Chung Leong
 
Posts: n/a
Default Re: Newbie: PHP4.3 not working with Apache2

No input file specified means either your DocumentRoot is wrong or you
didn't put phpinfo.php in the right folder. Apache doesn't check to see if
the file is there before it lauches php.exe, and "No input file specified"
is PHP's way of saying "File not found."

Uzytkownik "Coz" <grahamATcossey.plus.com@> napisal w wiadomosci
news:8jae00llaq6kuepqqm8k9mgs4o9epeim2e@4ax.com...
> Hopefully someone here can provide a relatively simple solution to my
> problem or tell me the basic mistake I've made ...
>
> I have installed Apache 2.0.48 on Win2k pro and it is serving static
> HTML pages without problem.
>
> I am now attempting to get Apache to process php files. I have added
> the following 3 lines to Apache's httpd.conf:
>
> ScriptAlias /php/ "c:/php/"
>
> AddType application/x-httpd-php .php
>
> Action application/x-httpd-php "/php/php.exe"
>
> PHP is installed in C:/PHP.
>
> When I attempt to call my phpinfo.php using
> http://localhost/phpinfo.php I get the message:
>
> "No input file specified."
>
> in my browser.
>
> phpinfo.php source :
>
> <?php
>
> phpinfo();
>
> ?>
>
> Many thanks in advance
>
> Graham.



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0