Re: unable to view .php files in browser

From: Date: Fri, 15 Mar 2002 14:13:52 +0000
Subject: Re: unable to view .php files in browser
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88652@lists.php.net to get a copy of this message
At 15.03.2002 17:28, you wrote:
I am using php,mysql,apache combination on a linux machine. I used the INSTALL file available in php-4.0.6.tar to install PHP in static mode. Compilations and Installation go on fine with no errors. But when a test.php script containing: <? phpinfo(); ?> is executed, only the HTML tags are interpreted. There is no output for phpinfo(). The php.ini file is located in /usr/local/lib The httpd.conf is present in /www/conf The apache version used is apache_1.3.23
Check out, what filename you have, here´s an exerpt from my httpd.conf. maybe yours has not the correct endings defined (As I work for several servers, nearly every ending will be parsed) <IfDefine PHP>
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    AddType application/x-httpd-php3 .phtml
    AddType application/x-httpd-php3 .htmls
    AddType application/x-httpd-php3 .html
    AddType application/x-httpd-php3 .php
    </IfDefine>
    #
    # And for PHP 4.x, use:
    #
    <IfDefine PHP4>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    </IfDefine>
HTH Oliver

« previous php.general (#88652) next »