Menu

dumb question

Anonymous
2001-02-03
2012-10-11
  • Anonymous

    Anonymous - 2001-02-03

    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!

     
    • Steve Wainstead

      Steve Wainstead - 2001-02-03

      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

       
      • Anonymous

        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

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.