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.