On Sat, 2004-08-21 at 09:22, Bilal Shahid wrote:
> I am trying to run PHP5 with Apache Web Server 1.3 om WinXP. This is my
> first experience with these kinds of products as this is not my domain.
> 
> I have installed both of the products on my machine and modified the
> configuration files of both as following:
> 
> Apache - httpd.conf:
> 
> AddType application\x-httpd-php .php
> LoadModule php5_module "C:\php\php5apache.dll"
> SetEnv PHPRC C:\windows
> AddModule mod_php5.c
> 
> PHP - php.ini:
> 
> For this I followed all steps in the Installation guide like moving php.ini
> to C:\windows etc. Also the following:
> 
> doc_root = C:\apche\htdocs
> 
> Now when I give this URL in my Web Browser: http://localhost/test.php (or
> http://127.0.0.1/test.php) nothing shows up; just a plain white page with
> nothing on it (not even an error message). test.php is just a simple php
> file.
> 
> Please let me know if I am doing anything wrong or missing a step in the
> installation of either PHP or Apache. Its kinda urgent.

PHP on MS Windows is not my thing, but I've not seen a reply so I'll try
to give some pointers.

Firstly, does and ordinary .html file work correctly? This is just to
check the webserver is working. 

The fact that you have a LoadModule line tells us you have PHP
configured as a DSO rather than CGI, so you do not need the doc_root
setting in php.ini (according to the text in php.ini).

Presumably you have set DocumentRoot in httpd.conf (to c:\apache\htdocs
?). Also, just checking, the doc_root you give has "apche" rather than
"apache", is this just a typo on your email?

Getting a blank screen I seem to remember has come up before with PHP on
MS Windows, you could search the bugs at http://bugs.php.net for and
answer. It would also be a good idea to search the archives of  this
list (available at http://lists.php.net but do not seem to be
searchable, though a searchable one is at http://marc.theaimsgroup.com
).

You could also search the php-windows list (at the same urls), or if all
else fails, post there. Have you tried a google search?

Hope this helps

Chris

Reply via email to