apache and php horor part 2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Johan den Boer

    apache and php horor part 2

    Hi,

    Tried installation with apache 2.0.47. But nothing is working. Copied all
    the dll's
    and .ini file to the right locations. Changed the httpd.conf file as well.

    Here is what I added in httpd.conf

    LoadModule php4_module "c:/php/sapi/php4apache2.dll "
    ScriptAlias /php4/ "C:/php"
    AddType application/x-httpd-php4 .php"
    Action application/x-httpd-php4 "php4/php.exe"

    Start up apache is ok. But when I try to to this

    <?php
    phpinfo();
    ?>

    in my index.html nothing is showed up. I also cannot browse .php files in my
    browser

    regards

    Johan


  • sk

    #2
    Re: apache and php horor part 2

    Johan den Boer wrote:[color=blue]
    > Hi,
    >
    > Tried installation with apache 2.0.47. But nothing is working. Copied all
    > the dll's
    > and .ini file to the right locations. Changed the httpd.conf file as well.
    >
    > Here is what I added in httpd.conf
    >
    > LoadModule php4_module "c:/php/sapi/php4apache2.dll "
    > ScriptAlias /php4/ "C:/php"
    > AddType application/x-httpd-php4 .php"
    > Action application/x-httpd-php4 "php4/php.exe"[/color]

    If you have PHP installed as a module, why are you passing PHP pages to
    the CGI executor? And if you're going to do this, then the Action line
    should read "/php4/php.exe".

    Keep either the LoadModule and AddType lines (to use the module, which
    is much better), or the ScriptAlias, AddType and Action lines (to use
    CGI). Not both.
    [color=blue]
    > Start up apache is ok. But when I try to to this
    >
    > <?php
    > phpinfo();
    > ?>
    >
    > in my index.html nothing is showed up.[/color]

    You didn't mention any changes you made to httpd.conf that would make
    Apache treat index.html as a PHP program. You can either do that or add
    index.php to the DirectoryIndex line and use an index.php.
    [color=blue]
    > I also cannot browse .php files in my browser[/color]

    Where are you putting them? In C:\PHP where they don't belong, or
    someplace in your docroot?

    --
    Steve Koppelman
    Wij geloven in onafhankelijk denken en het aangaan van oprechte connecties. Wij laten jouw business betekenisvol groeien. Hoe? Dat lees je op onze site.


    Comment

    • GreenKey

      #3
      Re: apache and php horor part 2

      If u can understand french, there is a customable tutorial at

      Very easy to follow :) Good luck)


      "Johan den Boer" <me@knoware.n l> a écrit dans le message de
      news:vpi870m8v5 jmeb@corp.super news.com...[color=blue]
      > Hi,
      >
      > Tried installation with apache 2.0.47. But nothing is working. Copied all
      > the dll's
      > and .ini file to the right locations. Changed the httpd.conf file as well.
      >
      > Here is what I added in httpd.conf
      >
      > LoadModule php4_module "c:/php/sapi/php4apache2.dll "
      > ScriptAlias /php4/ "C:/php"
      > AddType application/x-httpd-php4 .php"
      > Action application/x-httpd-php4 "php4/php.exe"
      >
      > Start up apache is ok. But when I try to to this
      >
      > <?php
      > phpinfo();
      > ?>
      >
      > in my index.html nothing is showed up. I also cannot browse .php files in[/color]
      my[color=blue]
      > browser
      >
      > regards
      >
      > Johan
      >
      >[/color]


      Comment

      Working...