[rhn-users] cannot display webpage after installing php5

Chen, Jason jun.chen at okstate.edu
Thu Apr 19 20:54:00 UTC 2007


Thanks for your reply. I have the following in my httpd.conf.
------------------------------------------------------------------------
LoadModule php5_module       /usr/lib64/httpd/modules/libphp5.so
 
AddType application/x-httpd-php .php .phtml
------------------------------------------------------------------------
 
Does that look ok? There is "AddModule" stuff in some old php installation guide. I don't have it here. Am I missing any file or steps after installing PHP5? 
 
Jun

________________________________

From: rhn-users-bounces at redhat.com on behalf of Florez, Nestor
Sent: Thu 4/19/2007 12:13 PM
To: Discussions about Red Hat Network (rhn.redhat.com)
Subject: RE: [rhn-users] cannot display webpage after installing php5


If the browser ask to save or display, generally it means that it doe not know what to do with the php files.
if you choose to open or display you will see the entire php file just as if you have created then as filename.phps
as long as phps is define inside apache.
 
Just take a look at you heetp.conf and make sure that the php modules are defined.
 
Nestor :-)
:-)

	-----Original Message-----
	From: rhn-users-bounces at redhat.com [mailto:rhn-users-bounces at redhat.com]On Behalf Of Chen, Jason
	Sent: Thursday, April 19, 2007 9:55 AM
	To: Discussions about Red Hat Network (rhn.redhat.com)
	Subject: RE: [rhn-users] cannot display webpage after installing php5
	
	
	Apache is untouched except the restart. PHP5 should have changed httpd.conf. Not sure what other files may get affected. Any idea? Thanks.
	 
	Jun 

________________________________

	From: rhn-users-bounces at redhat.com on behalf of Florez, Nestor
	Sent: Thu 4/19/2007 11:54 AM
	To: Discussions about Red Hat Network (rhn.redhat.com)
	Subject: RE: [rhn-users] cannot display webpage after installing php5
	
	
	Did you make the changes to apache?
	:-)

		-----Original Message-----
		From: rhn-users-bounces at redhat.com [mailto:rhn-users-bounces at redhat.com]On Behalf Of Chen, Jason
		Sent: Thursday, April 19, 2007 9:52 AM
		To: rhn-users at redhat.com
		Subject: [rhn-users] cannot display webpage after installing php5
		
		
		Hi,
		 
		Recently I upgraded PHP from 4 to 5. However, after installing new PHP, the webpages related to php cannot display (blank page). Other html pages are just ok. And I run php at the command line, it can parse a simple test.php, which does phpinfo(). 
		 
		I tried IE6 & IE7, both of them cannot display the webpages, including test.php. When Mozilla Firefox is used, it pops up a window asking me to open or save that .php file. It looks to me that there is a missing link between the browser and php. Can anyone help? My OS is RHL AS 4 and I have PHP5, MySQL 5 and apache (not sure about the version). Is this related to some initial files, like php.ini? Thanks.
		 
		Jun

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 7053 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20070419/52b6259e/attachment.bin>


More information about the rhn-users mailing list