Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP not working on Linux box 1

Status
Not open for further replies.

ksbrace

Programmer
May 13, 2000
501
US
Hello,
I am having some difficulty getting php to work on my box. I am running Redhat 3.0 AS, Apache 2.0.49, PHP 5.0.2. The build, make and install went successfully. I copied the php.ini-dist to /usr/local/lib/php.ini

I added the following lines to the httpd.conf file for apache:
Code:
LoadModule php5_module modules/libphp5.so

Code:
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
I then stopped and started apache. When I bring up this php page, I get a blank screen. my php files are 644 permissions:
Code:
<html>
<head>
<title>PHP Installation Test</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>

Any other ideas as to where to look for a problem spot? funny thing, when I installed it on my other linux box, it went perfect the first time. Thanks in advance!



 
it reports this a few times:

[Fri Feb 18 16:45:47 2005] [notice] Apache/2.0.49 (Unix) PHP/5.0.2 configured -- resuming normal operations


Do you happen to know of the command that I can log each individual module that gets loaded? Thanks,

 
No, I don't. "httpd -l" will give you a list of compiled-in modules, but not runtime configured modules. You might poke around in the Apache website.

One thing that you might do is remove the <IfModule...> and </IfModule> tags from around your AddType specs.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Ok, I did the httpd -l prior to your post and just made sure the mod_so.c was loaded.

Now, I removed the IfModule tags and it worked....WHY? I have always put those tags in the httpd.conf file and never had a problem until this box.

Thanks for your help!
Kelly

 
Have you been running Apache 2 before?

Modules are included differently in Apache 1 and Apache 2, in that the Apache 1 module required two lines to invoke, one to include a .c file and one to load the module library. Apache 2 only includes the module library, so there is no .c file involved.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top