I am installing Kronolith web calendar from the Horde group - www.horde.org...

Anyways, when I attempt to load the rquested PHP page, it appears in HTML code.......I've tried a "killall -HUP httpd" for starters.....but I keep getting the same result....a page full of HTML coding......

I ran into the same problem on a separate box today, but I made it work by going in through WebAdmin - its Apache server configuration....and by hitting the "configure" button, then restarting Apache., refreshed the web browser screen, and it worked....

I have WebAdmin too.....but I want to know how to do it the hard way....text based...I feel WebAdmin skips the learning process...

Is there a way to do this.....a HUP of some kind to restart PHP...

Thanks

    Does your Server know, how to handle ".php"?

    Apache-Config (httpd.conf)

    find the following section and edit it to:

    #

    DirectoryIndex: Name of the file or files to use as a pre-written HTML

    directory index. Separate multiple entries with spaces.

    #
    <IfModule mod_dir.c>
    DirectoryIndex index.htm index.html index.php default.htm default.html default.php
    </IfModule>

    Check this section or add it, if it not exists:

    #
    # PHP 4.x:
    #
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php-source .phps
    </IfModule>

    After altering the conf, you have to restart the Webserver:

    killall -HUP httpd

    or killall -HUP apache

    or from /etc/init.d
    ./httpd restart
    or ./apache restart

    Create the tiny php-script testphp.php
    <?php
    phpinfo();
    ?>

    Call this script from your browser.

      I just loaded Apache 2 and I cannot get Apache to 'see' my PHP script. But Apache 1.3, the previous stable version, was working OK.
      Is there a problem with Apache 2?

      Thanks
      Raymond

        Daft question, I suppose; but when you installed Apache 2, did you remember to build PHP into it?

          Write a Reply...