LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-18-2008, 02:40 AM   #1
codenjanod
Member
 
Registered: Oct 2006
Posts: 38

Rep: Reputation: 15
Centos 5.2 running Apache 2 and PHP 4 cannot display info.php


Hi all,

I have a Centos 5.2 server, running Apache 2 and PHP 4, but for the life of me I cannot display info.php or any other .php in my browser.

The server info:
Linux 2.6.18-92.1.6.el5 #1 SMP

CentOS release 5.2 (Final)

Installed software:
# rpm -qa |egrep '(php)|(httpd)'
php4-mysql-4.4.8-LAB4
httpd-2.2.3-11.el5_1.centos.3
php4-4.4.8-LAB4
php4-devel-4.4.8-LAB4
httpd-devel-2.2.3-11.el5_1.centos.3
php4-gd-4.4.8-LAB4
system-config-httpd-1.3.3.3-1.el5
httpd-manual-2.2.3-11.el5_1.centos.3
php4-pear-4.4.8-LAB4

The developers wish to use PHP4 as all their current code is done in PHP4.

The entries in my httpd.conf file:
LoadModule php4_module modules/libphp4.so
DocumentRoot "/var/www/html"
DirectoryIndex index.html index.phtml index.php index.phps
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

When browsing to the server, it displays the test index.html 100%

I get a blank page when trying to display the info.php file.

All permission settings are also correct.

Thanks a bunch.
 
Old 08-18-2008, 08:16 PM   #2
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
Have you looked at the apache error log?
 
Old 08-19-2008, 02:00 AM   #3
codenjanod
Member
 
Registered: Oct 2006
Posts: 38

Original Poster
Rep: Reputation: 15
Silly me.
Thanks a bunch.
The error showed the following:
==> /var/log/httpd/error_log <==
[Tue Aug 19 10:55:40 2008] [error] [client 10.2.37.62] PHP Fatal error: Call to undefined function: php_info() in /var/www/html/info.php on line 2

So I noticed the "php_info" where it should actually be "phpinfo"

Working 100% like a charm.

Thank you again.

PS. Will make sure I check the logs next time...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 5, Apache, php, mysql Anauj0101 Linux - Server 5 02-26-2008 10:39 PM
Can't get PHP 5 to work on CentOS 4.2, Apache 2.0.52 tibberous Linux - Server 3 10-27-2007 06:25 AM
apache won't start with php info in modules.conf synaptical Linux - Software 2 04-09-2005 09:39 AM
Cannot See info.php in Apache 1.3.33 Slack 10 grimlaur Slackware 3 02-05-2005 03:27 PM
LAMP(Linux,Apache,MySql,PHP) and other info hamtavs General 1 01-25-2005 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration