Apache does not recognize the file as a php file. Have you run php on your box before?
You need to edit your Apache configuration file, httpd.conf, and make sure these lines are there:
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP 3.x module (not part of the Apache distribution - see
# http://www.php.net\) will typically use:
#
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-02-05
cool, thanks for the help. that turned out to be only part of my problem..
i went adead and just compiled apache, php, and mysql from source and got it working
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i untarred the files but when i go to view the index.php file it just displays the code in my browser. any idea what's wrong?
i have apache 1.3.14, php 4.0.3, gdbm 1.8 and php-dbm installed all from mandrake 7.2 rpms
you can view it at http://65.26.243.217/phpwiki/
thanks for any help!
Apache does not recognize the file as a php file. Have you run php on your box before?
You need to edit your Apache configuration file, httpd.conf, and make sure these lines are there:
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP 3.x module (not part of the Apache distribution - see
# http://www.php.net\) will typically use:
#
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
cool, thanks for the help. that turned out to be only part of my problem..
i went adead and just compiled apache, php, and mysql from source and got it working