#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Berkeley, CA
    Posts
    6
    Rep Power
    0
    I still can't get my php files to work with apache. I've done the installation correctly (no error messages with the following scripts)

    PHP configuration file

    ./configure --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --with-apache=/usr/local/apache_1.3.9 --enable-ftp

    make
    make install


    Apache configuration file

    ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a

    make
    make install

    I un-comment the x-httpd lines in httpd.conf, and give it a valid server name (I can bring up the Apache test page), but when I create a .php file, it just wants to download the file, not process it!

    Any thoughts on how to fix?

    Thanks!
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Berkeley, CA
    Posts
    6
    Rep Power
    0
    FYI

    Running RedHat 7.0
    Apache 1.3.9
    PHP 4ORC2

    when I run httpd -l I get:

    Compiled-in modules:
    http_core.c
    mod_env.c
    mod_log_config.c
    mod_mime.c
    mod_negotiation.c
    mod_status.c
    mod_include.c
    mod_autoindex.c
    mod_dir.c
    mod_cgi.c
    mod_asis.c
    mod_imap.c
    mod_actions.c
    mod_userdir.c
    mod_alias.c
    mod_access.c
    mod_auth.c
    mod_setenvif.c
    mod_php4.c

  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    45
    Rep Power
    15
    Make sure this line is uncommented.

    AddType application/x-httpd-php .php .phtml .php3
    AddType application/x-httpd-php-source .phps

    Other than that I don't know what the problem could be since your php install seems to have gone correctly.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Berkeley, CA
    Posts
    6
    Rep Power
    0
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by polman:
    Make sure this line is uncommented.

    AddType application/x-httpd-php .php .phtml .php3
    AddType application/x-httpd-php-source .phps

    Other than that I don't know what the problem could be since your php install seems to have gone correctly.
    [/quote]

  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Berkeley, CA
    Posts
    6
    Rep Power
    0
    Thanks Polman, for the reply..I did uncomment those lines, and ran ./apachectl start (server started up without error)...so, it is very weird...
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Newark, DE, USA
    Posts
    39
    Rep Power
    15
    You'll notice that .phtml documents on your server won't get processed either. You have to divide the line into three AddType lines.
    You need one line for each type, even if they're different extensions for the same type.

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php phtml
    AddType application/x-httpd-php .php3

    ------------------
    ~Chris

Similar Threads

  1. UTF-8 problem in 4.1.1a
    By mehran20 in forum MySQL Help
    Replies: 1
    Last Post: February 8th, 2004, 03:21 PM
  2. Wierd problem inserting data with VB6
    By gregquinn in forum MySQL Help
    Replies: 5
    Last Post: February 2nd, 2004, 08:37 AM
  3. Fixing a partial install on FreeBSD
    By samuelelliot in forum BSD Help
    Replies: 2
    Last Post: January 31st, 2004, 10:11 PM
  4. problem to install oracle 8i on redhat8
    By jerry818 in forum Oracle Development
    Replies: 0
    Last Post: January 28th, 2004, 07:56 PM

IMN logo majestic logo threadwatch logo seochat tools logo