PHP - HOW TO MAKE IT WORK WITHIN APACHE

From: Date: Tue, 16 Jul 2002 10:44:48 +0000
Subject: PHP - HOW TO MAKE IT WORK WITHIN APACHE
Groups: php.install 
Request: Send a blank email to php-install+get-7768@lists.php.net to get a copy of this message
Hi, After many hours of searching FAQ's in vain, can some kind soul help me get PHP to work ? I installed RedHat 7.2 + KDE about a week ago (my first Linux intallation) without any significant problems and everything seemed to be working fiine until I tried PHP (with famous test "Hello World"). PHP refuses to send me that greeting. It looks like the PHP module needs to be activated. I found the following lines in the httpd.conf that was installed in my system: <IfDefine> HAVE_PHP4> LoadModule php4-module </IfDefine> ..... <IfDefine> HAVE_PHP4> AddModule php4-module.c </IfDefine> And the following lines in the Apache startup script : if [ -f /etc/sysconfig/apache ] ; then . /etc/sysconfig/apache fi .... start() { echo -n $"Starting $prog: " daemon $httpd moduleargs $OPTIONS RETVAL=$? echo [ $RETVAL = 0 ] && touch /var/lock/subsys/httpd return $RETVAL } Note: I also have a file /etc/php.ini The "Apache Aministrator's Handbook" I'm using says that to activate modules, Apache should be started" with /usr/sbin/httpd -D<name>." Is it correct to assume that some "options" should be passed to the function start() from the file ./etc/sysconfig/apache ? Were can I get this famous file ./etc/sysconfig/apache or instructions to make it. I cannot find this file in my system. This may be a bit academic because I guess I could try to make it work by just commenting the "If" and "/If" lines around "LoadModule" and "AddModule", but I would like to follow the thinking of whoever made these start and conf files. . Thanks, Joe Fazenda

« previous php.install (#7768) next »