Forum Stats

  • 3,827,843 Users
  • 2,260,829 Discussions


Getting black screen trying to test PHP/Apache

15278 Member Posts: 13
edited Sep 26, 2003 12:15AM in PHP

- using the bundled HTTP server (Apache 1.3.22 I believe)
PHP 4.3.1 for Windows
Windows 2000


I am trying to test out my initial install and I am getting nowhere. I believe that I have followed all of the install instructions correctly but this things just ain't workin' for me!

I am not trying to get the CGI version of PHP going. I have created a sample html file with "<?php phpinfo(); ?>" in it. I would expect to see the version of PHP printed in my browser window when I view this file/URL but I just get a blank screen. If I view the source then I can see all of the html.

I have copied the following files to C:\oracle\ora92\Apache\Apache -


I have copied php-dist.ini to c:\winnt\php.ini and modified it to include my document root, uncommented out the "extension=php_oci8.dll" and "safe_mode = off".

I have modified by httpd.conf to include:


"LoadModule php4_module C:\php-4.3.1-Win32\sapi\php4apache.dll"

AddModule mod_php4.c

<IfModule mod_php4.c>
AddType application/x-httpd-php .php


I have bounced Apache. Running it via a command shell reveals errors which may or may not be something to worry about....

[Sun Sep 21 22:59:42 2003] [warn] Loaded DSO C:\php-4.3.1-Win32\sapi\php4apache.
dll uses plain Apache 1.3 API, this module might crash under EAPI! (please recom
pile it with -DEAPI)
Oracle HTTP Server Powered by Apache/1.3.22 (Win32) PHP/4.3.1 mod_ssl/2.8.5 Open
SSL/0.9.6b mod_fastcgi/2.2.12 mod_oprocmgr/1.0 mod_perl/1.25 running...

Any help would be greatly appreciated!

Ty Haeber
San Diego, CA


  • 3047
    3047 Member Posts: 307
    The Apache startup messages say that Apache is running and
    PHP is available. The warning is something to look at if
    you plan to go production, but probably won't stop basic

    The http.conf line "AddType application/x-httpd-php .php"
    says that files with .php extensions will be processed by
    PHP. You are getting results I would expect if you are
    trying to load a ".html" file.

    Create a PHP file with extension ".php", put


    in it and try to load the file in the browser. You should
    get a long page with PHP information.

    -- CJ
  • 3047
    3047 Member Posts: 307
    OTN seems to have stripped out the starting token
    prior to the phpinfo(); call. I'll try once more using
    an entity for the less than sign.


    -- CJ

This discussion has been closed.