php/apache/mysql

Dustin Decker dustind at moon-lite.com
Thu Oct 31 09:58:11 CST 2002


On Wed, 30 Oct 2002, Eric Rossiter wrote:

> Hi LugNuts,
> 
> Been trying to set up php/apache/mysql for a while now.  Apache runs,
> php -v returns a version, I can test pages for syntax errors, etc, and
> mysql is running.  PHPNuke has been installed under /var/www/.  When I
> try to view http://localhost/index.php, http://localhost/admin.php, etc.
> I get a blank page or I see the php code.  Any idea what I've done
> wrong?

Most likely you're missing the "AddType" entries in httpd.conf

for version php3 it will look something like:
        AddType application/x-httpd-php3 .php3
        AddType application/x-httpd-php3-source .phps
        AddType application/x-httpd-php .php .php3 .m3u .pls

for version php4 it will look something like:
        AddType application/x-httpd-php .php .php4 .php3 .phtml
        AddType application/x-httpd-php-source .phps

Dustin
-- 
*-----------------------------------*
| Dustin Decker                     |
| dustind at moon-lite.com       *-----------------------------------------*
| http://www.dustindecker.com |  Windows 95: n.                         |
| Moon-Lite Computing         |  32-bit extensions and a graphical      |
| 913.579.7117                |  shell for a 16-bit patch to an 8-bit   |
*-----------------------------|  operating system originally coded for  |
                              |  a 4-bit microprocessor, written by a   |
                              |  2-bit company that can't stand for     |
                              |  1 bit of competition.                  |
                              *-----------------------------------------*




More information about the Kclug mailing list