How to configure php on apache

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default How to configure php on apache

    I have redhat 7.2 with appache 1.3.20 and php 4.0.6 built in. Now I try to
    configure php on apache. It seemed that I followed all the procedures on how
    to configure php on apache but when I tested the php with the following
    script, it did not show up what it was supposed to be shown up:

    <HTML>
    <HEAD></HEAD>
    <BODY>
    <? phpinfo(); ?>
    </BODY>
    </HTML>

    I don't know what went wrong. Here is the detailed info regarding php in
    httpd.conf (httpd.conf is at /etc/httpd/conf/):


    <IFDEFINE HAVE_PHP4>
    LoadModule php3_module modules/libphp3.so
    </IFDEFINE>
    <IFDEFINE HAVE_PHP4>
    LoadModule php4_module modules/libphp4.so
    </IFDEFINE>


    <IFDEFINE HAVE_PHP4>
    AddModule mod_php3.c
    </IFDEFINE>
    <IFDEFINE HAVE_PHP4>
    LoadModule mod_php4.c
    </IFDEFINE>

    AddType text/html php

    AddHandler php-script php


    Thanks for help


    john_liu Guest

  2. Similar Questions and Discussions

    1. #40728 [NEW]: configure won't identify apache version
      From: sheezes at gmail dot com Operating system: AIX 5.3 PHP version: 5.2.1 PHP Bug Type: *Compile Issues Bug description: ...
    2. #39233 [NEW]: Windows MSI installer cannot configure Apache 2.2
      From: matt at genesi-usa dot com Operating system: Windows XP Home SP2 PHP version: 5.2.0RC5 PHP Bug Type: Unknown/Other...
    3. #38997 [NEW]: Cannot configure PHP for cross-compilation with Apache 2.2.3
      From: lstefani at fortresstech dot com Operating system: Linux 2.6.12 PHP version: 5.1.6 PHP Bug Type: *Configuration Issues...
    4. How to configure GD support in php on linux/apache?
      Could anybody show me how to configure it? Thanks!
    5. #25182 [Bgs->Csd]: linux+informix+php+apache configure error !!!
      ID: 25182 User updated by: jkshin at naver dot com Reported By: jkshin at naver dot com -Status: Bogus +Status: ...
  3. #2

    Default Re: How to configure php on apache

    I forgot mentioning that the following lines are in httpd.conf as well:

    <IfModule mod_php3.c>
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .php3
    </IfModule>

    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php .php4 .php3 .phtml
    AddType application/x-httpd-php-source .phps
    </IfModule>

    THanks

    "john_liu" <[email protected]> дÈëÓʼþ
    news:[email protected]..
    > I have redhat 7.2 with appache 1.3.20 and php 4.0.6 built in. Now I try to
    > configure php on apache. It seemed that I followed all the procedures on
    how
    > to configure php on apache but when I tested the php with the following
    > script, it did not show up what it was supposed to be shown up:
    >
    > <HTML>
    > <HEAD></HEAD>
    > <BODY>
    > <? phpinfo(); ?>
    > </BODY>
    > </HTML>
    >
    > I don't know what went wrong. Here is the detailed info regarding php in
    > httpd.conf (httpd.conf is at /etc/httpd/conf/):
    >
    >
    > <IFDEFINE HAVE_PHP4>
    > LoadModule php3_module modules/libphp3.so
    > </IFDEFINE>
    > <IFDEFINE HAVE_PHP4>
    > LoadModule php4_module modules/libphp4.so
    > </IFDEFINE>
    >
    >
    > <IFDEFINE HAVE_PHP4>
    > AddModule mod_php3.c
    > </IFDEFINE>
    > <IFDEFINE HAVE_PHP4>
    > LoadModule mod_php4.c
    > </IFDEFINE>
    >
    > AddType text/html php
    >
    > AddHandler php-script php
    >
    >
    > Thanks for help
    >
    >

    john_liu Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139