[NEWBEE] PHP5 RC1 install problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gene Kahn

    [NEWBEE] PHP5 RC1 install problem

    Windows XP, Apache 2, PHP5 RC1
    Hello,
    A total newbie here. I can't seem to get Apache2 to load the php5
    module. When I loaded up this html file in a browser, only the Today's
    date: line prints on the page.

    <html>
    <head>
    <title>Listin g 1-7</title>
    </head>
    <body>
    Today's date:
    <?php
    /*
    ** print today's date
    */
    print(Date("l F d, Y"));
    ?>
    </body>
    </html>

    It looks like the PHP preprocessor is not loading. I have added these
    lines to Apache's httpd.conf, then re-started Apache.

    LoadModule php5_module c:/php/php5apache2.dll
    AddType application/x-httpd-php .php

    How do I get this corrected? Any help will be appreciated!

    gk
  • kingofkolt

    #2
    Re: [NEWBEE] PHP5 RC1 install problem

    isn't that the only thing thats supposed to print on the page? or am i
    missing something...

    "Gene Kahn" <jenjhiz@yahoo. com> wrote in message
    news:4d3f9c15.0 403270912.2540f 7d6@posting.goo gle.com...[color=blue]
    > Windows XP, Apache 2, PHP5 RC1
    > Hello,
    > A total newbie here. I can't seem to get Apache2 to load the php5
    > module. When I loaded up this html file in a browser, only the Today's
    > date: line prints on the page.
    >
    > <html>
    > <head>
    > <title>Listin g 1-7</title>
    > </head>
    > <body>
    > Today's date:
    > <?php
    > /*
    > ** print today's date
    > */
    > print(Date("l F d, Y"));
    > ?>
    > </body>
    > </html>
    >
    > It looks like the PHP preprocessor is not loading. I have added these
    > lines to Apache's httpd.conf, then re-started Apache.
    >
    > LoadModule php5_module c:/php/php5apache2.dll
    > AddType application/x-httpd-php .php
    >
    > How do I get this corrected? Any help will be appreciated!
    >
    > gk[/color]


    Comment

    • Andy Hassall

      #3
      Re: [NEWBEE] PHP5 RC1 install problem

      On 27 Mar 2004 09:12:52 -0800, jenjhiz@yahoo.c om (Gene Kahn) wrote:
      [color=blue]
      >Windows XP, Apache 2, PHP5 RC1
      >Hello,
      >A total newbie here. I can't seem to get Apache2 to load the php5
      >module. When I loaded up this html file in a browser, only the Today's
      >date: line prints on the page.
      >
      ><html>
      ><head>
      ><title>Listi ng 1-7</title>
      ></head>
      ><body>
      >Today's date:
      ><?php
      > /*
      > ** print today's date
      > */
      > print(Date("l F d, Y"));
      >?>
      ></body>
      ></html>
      >
      >It looks like the PHP preprocessor is not loading. I have added these
      >lines to Apache's httpd.conf, then re-started Apache.
      >
      >LoadModule php5_module c:/php/php5apache2.dll
      >AddType application/x-httpd-php .php[/color]

      Just to be clear - you say you "re-started" Apache - how exactly did you do
      this? Did you Stop and then Start it, or did you use Restart?

      You have to completely stop then start to get it to load new modules.

      If not that, then check both the Apache error_log and the Windows event log
      (the Application section of it).

      Does PHP show in the server signature? Or in server-info? (Look in httpd.conf
      for how to enable this if you haven't got it set up).

      --
      Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
      http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

      Comment

      • Gene Kahn

        #4
        Re: [NEWBEE] PHP5 RC1 install problem

        Sorry. My message was not too clear. It only prints;

        Today's date:

        It should print:

        Today's date: "DATE"

        where DATE is today's date in the format specified. So it looks like
        the PHP script was not run at all.

        gk


        "kingofkolt " <jessep@comcast .net> wrote in message news:<3Ji9c.179 08$w54.130994@a ttbi_s01>...[color=blue]
        > isn't that the only thing thats supposed to print on the page? or am i
        > missing something...
        >
        > "Gene Kahn" <jenjhiz@yahoo. com> wrote in message
        > news:4d3f9c15.0 403270912.2540f 7d6@posting.goo gle.com...[color=green]
        > > Windows XP, Apache 2, PHP5 RC1
        > > Hello,
        > > A total newbie here. I can't seem to get Apache2 to load the php5
        > > module. When I loaded up this html file in a browser, only the Today's
        > > date: line prints on the page.
        > >
        > > <html>
        > > <head>
        > > <title>Listin g 1-7</title>
        > > </head>
        > > <body>
        > > Today's date:
        > > <?php
        > > /*
        > > ** print today's date
        > > */
        > > print(Date("l F d, Y"));
        > > ?>
        > > </body>
        > > </html>
        > >
        > > It looks like the PHP preprocessor is not loading. I have added these
        > > lines to Apache's httpd.conf, then re-started Apache.
        > >
        > > LoadModule php5_module c:/php/php5apache2.dll
        > > AddType application/x-httpd-php .php
        > >
        > > How do I get this corrected? Any help will be appreciated!
        > >
        > > gk[/color][/color]

        Comment

        • Gene Kahn

          #5
          Re: [NEWBEE] PHP5 RC1 install problem

          Hi,
          Yes, I stopped the Apache service and then re-started it, using the
          Apache Monitor.

          With respect to enabling the server signature (which i know nothing
          about), there is this line in httpd.conf. Is that all there is to
          enabling it?

          ServerSignature On

          I checked the Windows applications event log, and, yeah, it reports an
          error on Apache Service as source and event number 3299.

          The Apache error log file says (I had to shut it down to be able to
          read it).

          [Sat Mar 27 17:43:02 2004] [notice] Parent: Created child process 3740
          [Sat Mar 27 17:43:02 2004] [notice] Child 3740: Child process is
          running
          [Sat Mar 27 17:43:02 2004] [notice] Child 3740: Acquired the start
          mutex.
          [Sat Mar 27 17:43:02 2004] [notice] Child 3740: Starting 250 worker
          threads.
          [Sat Mar 27 17:49:14 2004] [notice] Parent: Received shutdown signal
          -- Shutting down the server.
          [Sat Mar 27 17:49:14 2004] [notice] Child 3740: Exit event signaled.
          Child process is ending.
          [Sat Mar 27 17:49:15 2004] [notice] Child 3740: Released the start
          mutex
          [Sat Mar 27 17:49:16 2004] [notice] Child 3740: Waiting for 250 worker
          threads to exit.
          [Sat Mar 27 17:49:16 2004] [notice] Child 3740: All worker threads
          have exited.
          [Sat Mar 27 17:49:16 2004] [notice] Child 3740: Child process is
          exiting
          [Sat Mar 27 17:49:16 2004] [notice] Parent: Child process exited
          successfully.

          Thanks for your help.
          gk


          Andy Hassall <andy@andyh.co. uk> wrote in message news:<qsdb60t6f ngrjav2ofigngq7 gh5fgsj3bl@4ax. com>...[color=blue]
          > On 27 Mar 2004 09:12:52 -0800, jenjhiz@yahoo.c om (Gene Kahn) wrote:
          >[color=green]
          > >Windows XP, Apache 2, PHP5 RC1
          > >Hello,
          > >A total newbie here. I can't seem to get Apache2 to load the php5
          > >module. When I loaded up this html file in a browser, only the Today's
          > >date: line prints on the page.
          > >
          > ><html>
          > ><head>
          > ><title>Listi ng 1-7</title>
          > ></head>
          > ><body>
          > >Today's date:
          > ><?php
          > > /*
          > > ** print today's date
          > > */
          > > print(Date("l F d, Y"));
          > >?>
          > ></body>
          > ></html>
          > >
          > >It looks like the PHP preprocessor is not loading. I have added these
          > >lines to Apache's httpd.conf, then re-started Apache.
          > >
          > >LoadModule php5_module c:/php/php5apache2.dll
          > >AddType application/x-httpd-php .php[/color]
          >
          > Just to be clear - you say you "re-started" Apache - how exactly did you do
          > this? Did you Stop and then Start it, or did you use Restart?
          >
          > You have to completely stop then start to get it to load new modules.
          >
          > If not that, then check both the Apache error_log and the Windows event log
          > (the Application section of it).
          >
          > Does PHP show in the server signature? Or in server-info? (Look in httpd.conf
          > for how to enable this if you haven't got it set up).[/color]

          Comment

          • Gene Kahn

            #6
            Re: [NEWBEE] PHP5 RC1 install problem

            Hi,

            in my previous email, i said that the Windows Event log shows the 3299
            error on Apache Service. Please disregard that statement. That was an
            earlier error triggered by the AddModule command:

            LoadModule php5_module c:/php/php5apache2.dll
            #AddModule mod_php5.c
            AddType application/x-httpd-php .php

            There is no mod_php5.c in the distribution, and when I commented this
            line, as shown, the error disappeared.

            gk



            Andy Hassall <andy@andyh.co. uk> wrote in message news:<qsdb60t6f ngrjav2ofigngq7 gh5fgsj3bl@4ax. com>...[color=blue]
            > On 27 Mar 2004 09:12:52 -0800, jenjhiz@yahoo.c om (Gene Kahn) wrote:
            >[color=green]
            > >Windows XP, Apache 2, PHP5 RC1
            > >Hello,
            > >A total newbie here. I can't seem to get Apache2 to load the php5
            > >module. When I loaded up this html file in a browser, only the Today's
            > >date: line prints on the page.
            > >
            > ><html>
            > ><head>
            > ><title>Listi ng 1-7</title>
            > ></head>
            > ><body>
            > >Today's date:
            > ><?php
            > > /*
            > > ** print today's date
            > > */
            > > print(Date("l F d, Y"));
            > >?>
            > ></body>
            > ></html>
            > >
            > >It looks like the PHP preprocessor is not loading. I have added these
            > >lines to Apache's httpd.conf, then re-started Apache.
            > >
            > >LoadModule php5_module c:/php/php5apache2.dll
            > >AddType application/x-httpd-php .php[/color]
            >
            > Just to be clear - you say you "re-started" Apache - how exactly did you do
            > this? Did you Stop and then Start it, or did you use Restart?
            >
            > You have to completely stop then start to get it to load new modules.
            >
            > If not that, then check both the Apache error_log and the Windows event log
            > (the Application section of it).
            >
            > Does PHP show in the server signature? Or in server-info? (Look in httpd.conf
            > for how to enable this if you haven't got it set up).[/color]

            Comment

            • Andy Hassall

              #7
              Re: [NEWBEE] PHP5 RC1 install problem

              On 27 Mar 2004 17:14:59 -0800, jenjhiz@yahoo.c om (Gene Kahn) wrote:
              [color=blue]
              >Andy Hassall <andy@andyh.co. uk> wrote in message news:<qsdb60t6f ngrjav2ofigngq7 gh5fgsj3bl@4ax. com>...[color=green]
              >> On 27 Mar 2004 09:12:52 -0800, jenjhiz@yahoo.c om (Gene Kahn) wrote:
              >>[color=darkred]
              >>>It looks like the PHP preprocessor is not loading. I have added these
              >>>lines to Apache's httpd.conf, then re-started Apache.
              >>>
              >>>LoadModule php5_module c:/php/php5apache2.dll
              >>>AddType application/x-httpd-php .php[/color]
              >>
              >> Just to be clear - you say you "re-started" Apache - how exactly did you do
              >> this? Did you Stop and then Start it, or did you use Restart?
              >>
              >> You have to completely stop then start to get it to load new modules.
              >>
              >> If not that, then check both the Apache error_log and the Windows event log
              >> (the Application section of it).
              >>
              >> Does PHP show in the server signature? Or in server-info? (Look in httpd.conf
              >> for how to enable this if you haven't got it set up).[/color]
              >
              >Yes, I stopped the Apache service and then re-started it, using the
              >Apache Monitor.
              >
              >With respect to enabling the server signature (which i know nothing
              >about), there is this line in httpd.conf. Is that all there is to
              >enabling it?
              >
              >ServerSignatur e On[/color]

              Yes, and also make sure you've got:

              expose_php = On

              ... in your php.ini (this is the default anyway, though).

              As you're using the Apache Monitor, check what it says in the status bar at
              the bottom when you select your Apache2 service.

              It should say something like:

              Apache/2.0.49 (Win32) PHP/5.0.0RC1

              Or go to any directory that allows a directory listing, at the bottom it
              should say something similar, e.g.:

              Apache/2.0.49 (Win32) PHP/5.0.0RC1 Server at localhost Port 80

              If it doesn't have PHP loaded, it won't have the PHP tag on the end.

              --
              Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
              http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

              Comment

              • Agelmar

                #8
                Re: [NEWBEE] PHP5 RC1 install problem

                Gene Kahn wrote:[color=blue]
                > Windows XP, Apache 2, PHP5 RC1
                > Hello,
                > A total newbie here. I can't seem to get Apache2 to load the php5
                > module. When I loaded up this html file in a browser, only the Today's
                > date: line prints on the page.
                >
                > <html>
                > <head>
                > <title>Listin g 1-7</title>
                > </head>
                > <body>
                > Today's date:
                > <?php
                > /*
                > ** print today's date
                > */
                > print(Date("l F d, Y"));[color=green]
                >>[/color]
                > </body>
                > </html>
                >[/color]
                Perhaps it's erroring out and you have it set not to display errors. (You're
                missing a ?> tag, so the </body> will likely be regarded as a syntax error.)


                Comment

                • Gene Kahn

                  #9
                  Re: [NEWBEE] PHP5 RC1 install problem

                  Thanks to all who responded. No, I couldn't get PHP to run. So I wiped
                  Apache and PHP out, and then re-instanlled this time using WAMP5. PHP,
                  Apache, and SQLite work, so I'm happy. MySQL doesn't yet, but I
                  haven't spent time on it as I'm really interested in SQLite in the
                  first place.



                  jenjhiz@yahoo.c om (Gene Kahn) wrote in message news:<4d3f9c15. 0403270912.2540 f7d6@posting.go ogle.com>...[color=blue]
                  > Windows XP, Apache 2, PHP5 RC1
                  > Hello,
                  > A total newbie here. I can't seem to get Apache2 to load the php5
                  > module. When I loaded up this html file in a browser, only the Today's
                  > date: line prints on the page.
                  >
                  > <html>
                  > <head>
                  > <title>Listin g 1-7</title>
                  > </head>
                  > <body>
                  > Today's date:
                  > <?php
                  > /*
                  > ** print today's date
                  > */
                  > print(Date("l F d, Y"));
                  > ?>
                  > </body>
                  > </html>
                  >
                  > It looks like the PHP preprocessor is not loading. I have added these
                  > lines to Apache's httpd.conf, then re-started Apache.
                  >
                  > LoadModule php5_module c:/php/php5apache2.dll
                  > AddType application/x-httpd-php .php
                  >
                  > How do I get this corrected? Any help will be appreciated!
                  >
                  > gk[/color]

                  Comment

                  Working...