Okay - I missed another mistake - You specify an alias to a sub directory of php4 and then try to execute php.exe from an action under subdirectory of php
Here is an example of all that is needed in the httpd.conf file : ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" _____________________________________________________________ I sincerely hope that sorts it - note my example uses drive c _____________________________________________________________ >>>>you shouldn't get any html codes, when it works correctly. simply an empty >>>>screen....What you've seen is the screen with error 404.... >>>> >>>>-----Original Message----- >>>>From: Titus Cheung [mailto:[EMAIL PROTECTED]] >>>>Sent: 21. ledna 2002 10:52 >>>>To: Christ Christoph (Erste) >>>>Cc: [EMAIL PROTECTED] >>>>Subject: Re: [PHP-INST] phpinfo.php File Not Found >>>> >>>> >>>>Hello, >>>> >>>>Interesting. The install manual asks specifically to place php.ini.dist >>>>into the winnt folder, and then rename it to php.ini. >>>>I ran the command "php.exe -i" in the d:\php4\ folder and I saw a screen >>>>full of html codes so it does work. I really don't know what else could be >>>>wrong here. >>>> >>>>Titus >>>> >>>>----- Original Message ----- >>>>From: "Christ Christoph (Erste)" <[EMAIL PROTECTED]> >>>>To: "'Titus Cheung'" <[EMAIL PROTECTED]> >>>>Sent: Monday, January 21, 2002 1:26 AM >>>>Subject: RE: [PHP-INST] phpinfo.php File Not Found >>>> >>>> >>>>> first of all, don't install the php.ini into the winnt folder, this very >>>>> dirty. you should keep all files of a program in one directory, in this >>>>case >>>>> in d:\php4\.... then try to start the program php.exe directly. when it >>>>> cannot be executed, because some features are not properly set, then try >>>>to >>>>> install it correctly... (extensions must be set as .\extensions\ ...). The >>>>> recommended php.ini should be php.ini.dist (which has maximum backwards >>>>> compatibilty).... When this program is working, then you can link it into >>>>> the webserver. Your werbserver config seems ok... >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: Titus Cheung [mailto:[EMAIL PROTECTED]] >>>>> Sent: 21. ledna 2002 10:27 >>>>> To: Christ Christoph (Erste); [EMAIL PROTECTED] >>>>> Subject: Re: [PHP-INST] phpinfo.php File Not Found >>>>> >>>>> >>>>> Hello, >>>>> >>>>> I just tried taking that line out, but it still gives me Error 404. Any >>>>> ideas? >>>>> >>>>> Titus >>>>> ----- Original Message ----- >>>>> From: "Christ Christoph (Erste)" <[EMAIL PROTECTED]> >>>>> To: "'Titus Cheung'" <[EMAIL PROTECTED]> >>>>> Sent: Monday, January 21, 2002 1:12 AM >>>>> Subject: RE: [PHP-INST] phpinfo.php File Not Found >>>>> >>>>> >>>>> > try not to set the doc-root. it works without that pretty nice on my >>>>> > server.... >>>>> > >>>>> > -----Original Message----- >>>>> > From: Titus Cheung [mailto:[EMAIL PROTECTED]] >>>>> > Sent: 21. ledna 2002 8:55 >>>>> > To: [EMAIL PROTECTED] >>>>> > Subject: [PHP-INST] phpinfo.php File Not Found >>>>> > >>>>> > >>>>> > Hello, >>>>> > >>>>> > I've installed Apache and PHP4 on my Windows 2000 Pro machine. Can >>>>> someone >>>>> > tell me what I have done wrong? >>>>> > When I use my browser to see http://localhost/phpinfo.php, it says File >>>>> Not >>>>> > Found with Error 404. >>>>> > The file is there and contains the code <? phpinfo() ?> >>>>> > >>>>> > I installed PHP4 in d:\php4, and set the following lines in my php.ini >>>>> file, >>>>> > which resides in d:\winnt\: >>>>> > doc_root =d:\program files\apache\htdocs >>>>> > user_dir = >>>>> > extension_dir = d:\php4\extensions >>>>> > >>>>> > The Apache is installed in d:\program files\apache group\apache\, and >>>>I've >>>>> > set the following lines in my conf\httpd.conf file: >>>>> > ScriptAlias /cgi-bin/ "D:/Program Files/Apache Group/Apache/cgi-bin/" >>>>> > ScriptAlias /php4/ "D:/php4/" >>>>> > AddType application/x-httpd-php .php .phtml >>>>> > AddType application/x-httpd-php-source .phps >>>>> > Action application/x-httpd-php /php/php.exe >>>>> > >>>>> > And yes, I did start the Apache server. I can see http://localhost >>>>> > >>>>> > Thanks >>>>> > Titus >>>>> > >>>>> > >>>>> >>>> >>>>-- >>>>PHP Install Mailing List (http://www.php.net/) >>>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>For additional commands, e-mail: [EMAIL PROTECTED] >>>>To contact the list administrators, e-mail: [EMAIL PROTECTED] >>>> >>>>
you shouldn't get any html codes, when it works correctly. simply an empty screen....What you've seen is the screen with error 404.... -----Original Message----- From: Titus Cheung [mailto:[EMAIL PROTECTED]] Sent: 21. ledna 2002 10:52 To: Christ Christoph (Erste) Cc: [EMAIL PROTECTED] Subject: Re: [PHP-INST] phpinfo.php File Not Found Hello, Interesting. The install manual asks specifically to place php.ini.dist into the winnt folder, and then rename it to php.ini. I ran the command "php.exe -i" in the d:\php4\ folder and I saw a screen full of html codes so it does work. I really don't know what else could be wrong here. Titus ----- Original Message ----- From: "Christ Christoph (Erste)" <[EMAIL PROTECTED]> To: "'Titus Cheung'" <[EMAIL PROTECTED]> Sent: Monday, January 21, 2002 1:26 AM Subject: RE: [PHP-INST] phpinfo.php File Not Found > first of all, don't install the php.ini into the winnt folder, this very > dirty. you should keep all files of a program in one directory, in this case > in d:\php4\.... then try to start the program php.exe directly. when it > cannot be executed, because some features are not properly set, then try to > install it correctly... (extensions must be set as .\extensions\ ...). The > recommended php.ini should be php.ini.dist (which has maximum backwards > compatibilty).... When this program is working, then you can link it into > the webserver. Your werbserver config seems ok... > > > -----Original Message----- > From: Titus Cheung [mailto:[EMAIL PROTECTED]] > Sent: 21. ledna 2002 10:27 > To: Christ Christoph (Erste); [EMAIL PROTECTED] > Subject: Re: [PHP-INST] phpinfo.php File Not Found > > > Hello, > > I just tried taking that line out, but it still gives me Error 404. Any > ideas? > > Titus > ----- Original Message ----- > From: "Christ Christoph (Erste)" <[EMAIL PROTECTED]> > To: "'Titus Cheung'" <[EMAIL PROTECTED]> > Sent: Monday, January 21, 2002 1:12 AM > Subject: RE: [PHP-INST] phpinfo.php File Not Found > > > > try not to set the doc-root. it works without that pretty nice on my > > server.... > > > > -----Original Message----- > > From: Titus Cheung [mailto:[EMAIL PROTECTED]] > > Sent: 21. ledna 2002 8:55 > > To: [EMAIL PROTECTED] > > Subject: [PHP-INST] phpinfo.php File Not Found > > > > > > Hello, > > > > I've installed Apache and PHP4 on my Windows 2000 Pro machine. Can > someone > > tell me what I have done wrong? > > When I use my browser to see http://localhost/phpinfo.php, it says File > Not > > Found with Error 404. > > The file is there and contains the code <? phpinfo() ?> > > > > I installed PHP4 in d:\php4, and set the following lines in my php.ini > file, > > which resides in d:\winnt\: > > doc_root =d:\program files\apache\htdocs > > user_dir = > > extension_dir = d:\php4\extensions > > > > The Apache is installed in d:\program files\apache group\apache\, and I've > > set the following lines in my conf\httpd.conf file: > > ScriptAlias /cgi-bin/ "D:/Program Files/Apache Group/Apache/cgi-bin/" > > ScriptAlias /php4/ "D:/php4/" > > AddType application/x-httpd-php .php .phtml > > AddType application/x-httpd-php-source .phps > > Action application/x-httpd-php /php/php.exe > > > > And yes, I did start the Apache server. I can see http://localhost > > > > Thanks > > Titus > > > > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]