Click to See Complete Forum and Search --> : PHP4.2.2 with Apache1.3.27 on XPpro


luis_santos
10-25-2002, 03:51 AM
Hi there,

I am very new to PHP, mySQL and Apache.

I just installed mySQL and works fine and the service is up and responds to commands such as mysqlshow or mysqladmin ... , great!

Then I installed Apache 1.3.27

works fine and the service is up, it responds to commands such as 'net start apache' and 'net stop apache'. very good!

I even got the apache welcome page when calling localhost

I then installed PHP4.2.2 and copied PHP4TS.DLL to c:\windows\system32. MSVCRT.DLL already existed in c:\windows\system32

I also changed the php.ini to include:

doc_root = ".;c:\php\serverRoot"
extension_dir = ".;C:\php\binaries\php-4.2.2-Win32.zip\php-4.2.2-Win32\extensions"
... and enabled all the extensions such as:

extension=php_bz2.dll
i wasn't sure which ones to enable or to leave out so I decided for installation and test purpose to have them all!?

I edited the httpd.conf to include:

ScriptAlias /php/ "c:/php/serverRoot/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
Action application/x-httpd-php "/php/php.exe "
ServerName 127.0.0.1

I created a simple test.php page to include <? phpinfo ?> and called http://localhost/test.php from the browser and it cannot find the page.

The apache error log shows following error:
[Fri Oct 25 15:59:07 2002] [error] [client 127.0.0.1] (2)No such file or directory: script not found or unable to stat: c:/php/serverroot/php.exe

Any suggestions?

Many thanks.

pass
10-27-2002, 02:46 PM
well, it worked for me... 2 weeks ago. Then i had to reinstall and now.. it doesn't!!
if someone has a workaround or any clues... plz.. we're stuck here!
:confused:
tnx in advance!!!

Tekron-X
10-27-2002, 02:54 PM
hey in the areas that you specified the paths i.e. c:/php/serverroot/php.exe


change the /'s to \ windows uses \'s and unix uses/'s