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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |