I installed mysql and apche web server on red hat linux succesfully. I installed php4 also following instructions.
But when I typed http://localhost/phpinfo.php
It displays message box to save the file and doesn't works properly.

Help me.

    That means your server is not running...

      apache is working succesfully. when I type http://localhost/
      then it display apache web page saying apache is sucessfully installed.

      thanks..

        installed is not started check that the "apache.exe" is running.

          Okay, so create a file called test.php. In that, put this code:

          <?php echo "Hello"; ?>

          If you see

          Hello

          everything looks ok.
          Otherwise, if you see

          <?php echo "Hello"; ?>

          Then php is not working right, and you need to look at your installation.

            If a download box is opening, then that means that you've added

            AddType application/x-httpd-php .php

            tp your httpd.conf, which is good. but it's not loading the PHP module or it would be parsing. Are you using the CGI version or the Apache module?

              apache ask to save the file when I try to open any php file. But it display html files succesfully.

              The following two lines are in my httpd.conf file

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

              thanks.

                Here's the four lines I add to my httpd. For the LoadModule, need to know where yours is.

                AddModule mod_php4.c
                LoadModule php4_module libexec/libphp4.so
                AddType application/x-httpd-php .php .phtml
                AddType application/x-httpd-php-source .phps

                  Write a Reply...