Jump to content

PHP pages appearing blank [solved]


Recommended Posts

Trying to get my php pages loaded with Apache, and they don't seem to be working.

 

In /etc/httpd/conf/httpd.conf I have the following line:

 

Include /etc/httpd/conf.d/*.conf

 

and in this directory is a php.conf file, which I've posted the contents of below:

 

#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php4_module modules/libphp4.so

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

 

All seems to be correct in the configuration, but when it attempts to load the page, it's just blank, and doesn't appear how it should.

 

Version Information:

 

Apache - 2.0.52

PHP - 4.3.9

 

It's all running on Red Hat Enterprise Linux ES, and I've just been using the standard rpm's for installation to make things easier than trying to compile stuff and complicate things even further. Help appreciated, I must be missing something :unsure:

Link to comment
Share on other sites

I'm honestly not sure what happened with this, but it started to work. I did stop and start the services, and it kept appearing blank.

 

I then rebooted the system, and then all seemed to work. Bizarre as normally restarting the httpd service sorts it out.

Link to comment
Share on other sites

Weird synchronicity about this one. One of my friends was setting up a LAMP server the other day (just to play with) and had the same problem.

 

The solution? Remove spaces from his php tags. He was typing

<? php /* stuff */ ?>

instead of

<?php /* stuff */ ?>

This, after spending 3 days loading and unloading modules, upgrading PHP to latest version, and generally climbing a Dollis Hill.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...