Forum Moderators: coopster

Message Too Old, No Replies

php is not running

I am using CentOS..

         

flashfan

3:33 pm on Aug 23, 2005 (gmt 0)

10+ Year Member



I am using CentOS 4. When requesting /blah.php from a browser, I always get blank page "<html><body></body></html>". What's wrong?


#rpm -qa php
php-4.3.9-3.8

# /usr/sbin/httpd -V
Server version: Apache/2.0.52
Server built: Jul 25 2005 05:37:19
Server's Module Magic Number: 20020903:9
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

flashfan

3:41 pm on Aug 23, 2005 (gmt 0)

10+ Year Member



Here is the conf.d/php.conf


#
# 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

coopster

10:46 pm on Aug 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Hard to say. Can you create and open a simple phpinfo() script?
<?php 
phpinfo();
?>

Move that over to your document root and try opening it a browser. Does it parse?