Apache PHP under Linux

From: Date: Mon, 06 Jan 2003 14:26:36 +0000
Subject: Apache PHP under Linux
Groups: php.install 
Request: Send a blank email to php-install+get-9576@lists.php.net to get a copy of this message
Hi. I've installed Apache 1.3.27 and PHP 4.3.0 on RedHat Linux 8.0. These are the steps I've done. Apache: # ./configure –enable-module=so # make # make install # httpd -l to verify the presence of http_core.c e mod_so.c in /usr/local/apache/conf/httpd.conf: 1.modify DocumentRoot 2.modiffy User e Group 3.modify ServerName PHP: #./configure –with-apxs #make #make install I verify in /usr/local/apache/conf/httpd.conf the presence of: LoadModule php4_module libexec/libphp4.so I add AddType application/x-httpd-php .php in httpd.conf I copy the original php.ini-dist in /usr/local/lib/php.ini I restart httpd. After that, when I open a HTML page containing a minimal PHP script, I can see any output at all. I've tried: <? echo 'Hello world'; ?> <script language="PHP"> echo 'Hello world'; </script>. <? print 'Hello world'; ?> <script language="PHP"> print('Hello world'); </script>. Command line PHP interpreter works fine. #lsof tells me that httpd is using libphp4.so. I can't undestand where is my mistake. Thanks for any help or idea. Marco.

« previous php.install (#9576) next »