Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.4K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 546 SQLcl
- 4K SQL Developer Data Modeler
- 187.1K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 443 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Getting black screen trying to test PHP/Apache
Environment:
Oracle 9.2.0.1
- using the bundled HTTP server (Apache 1.3.22 I believe)
PHP 4.3.1 for Windows
Windows 2000
Problem:
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 -
php_oci8.dll
php4ts.dll
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
</IfModule>
=================================================
I have bounced Apache. Running it via a command shell reveals errors which may or may not be something to worry about....
C:\oracle\ora92\Apache\Apache>apache
[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
Oracle 9.2.0.1
- using the bundled HTTP server (Apache 1.3.22 I believe)
PHP 4.3.1 for Windows
Windows 2000
Problem:
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 -
php_oci8.dll
php4ts.dll
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
</IfModule>
=================================================
I have bounced Apache. Running it via a command shell reveals errors which may or may not be something to worry about....
C:\oracle\ora92\Apache\Apache>apache
[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
Comments
-
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
testing.
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
<?php
phpinfo();
?>
in it and try to load the file in the browser. You should
get a long page with PHP information.
-- CJ
-
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.
<?php
phpinfo();
?>
-- CJ
This discussion has been closed.