Apache HTTP with PHP 5.2.14 ,on XP HOME

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sridh
    New Member
    • Sep 2010
    • 5

    Apache HTTP with PHP 5.2.14 ,on XP HOME

    Hi
    i am using Apache 2.2.16 with PHP 5.2.14 on xp home , to complete the php scripting ,

    1 ) i am not able to run the php code
    ge a 500 inter nal server error

    2) where as http://localhost/index.html works


    only when i run php code it get the 500 error
    can any one help me in this

    Reg
    Sri
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Did you check the Apache error logs? They should tell you what error is causing this. (See Log Files - Apache HTTP Server)

    Comment

    • sridh
      New Member
      • Sep 2010
      • 5

      #3
      Starting the Apache2.2 service
      The Apache2.2 service is running.
      rmine the server's fully qualified domain name, using 192.168.2.100 for ServerName
      [Sun Sep 19 16:40:39 2010] [notice] Apache/2.2.16 (Win32) configured -- resuming normal operations
      [Sun Sep 19 16:40:39 2010] [notice] Server built: Jul 30 2010 16:15:37
      [Sun Sep 19 16:40:40 2010] [notice] Parent: Created child process 1424
      httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.2.100 for ServerName
      httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.2.100 for ServerName
      [Sun Sep 19 16:40:40 2010] [notice] Child 1424: Child process is running
      [Sun Sep 19 16:40:40 2010] [notice] Child 1424: Acquired the start mutex.
      [Sun Sep 19 16:40:40 2010] [notice] Child 1424: Starting 64 worker threads.
      [Sun Sep 19 16:40:40 2010] [notice] Child 1424: Starting thread to listen on port 80.

      its a 45 kb file with similar lines

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        You would have to check the lines marked with the time when your error occurred. It tells you details about why the error happened.

        Comment

        • sridh
          New Member
          • Sep 2010
          • 5

          #5
          nstalling the Apache2.2 service
          The Apache2.2 service is successfully installed.
          Testing httpd.conf....
          Errors reported here must be corrected before the service can be started.
          httpd.exe: Could not reliably determine the server's fully qualified domain name
          , using 192.168.2.100 for ServerName
          (OS 10048)Only one usage of each socket address (protocol/network address/port)
          is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
          no listening sockets available, shutting down
          Unable to open logs
          Note the errors or messages above, and press the <ESC> key to exit. 12...

          Apache . is not coming up , i tried to Setup a Voip Software , but it is not working , it worked for some time , when i all the software vender , he said reinstall apache , now apache is not even coming up ,any help
          step by step would help me as i work as a qa person ,

          Comment

          • Atli
            Recognized Expert Expert
            • Nov 2006
            • 5062

            #6
            Seems there is something already listening on port 80. Do you by chance have multiple installs of Apache active, or another HTTP server? - You may also want to turn of Skype if you have that open. It falls back on port 80 if your firewall/router blocks it's usual port.

            I'm not sure if this is possible on XP Home, or if it is only XP Professional and higher, but you can do the following to identify the process that is using the port:
            1. Open a command line window. (Windows Key + R and type in cmd.exe)
            2. Run the command: netstat -ao
            3. Identify the line where "Local Address" ends in ":80", and copy the PID from that line. If that line isn't there, nothing is using the port.
            4. Execute: tasklist /FI "PID eq XYZ" (Replace XYZ with the PID number you copied before)
            5. Now you should see the executible that is using port 80. For example:
              Code:
              Image Name                     PID Session Name        Session#    Mem Usage
              ========================= ======== ================ =========== ============
              httpd.exe                     1736 Services                   0     42.620 K
              This is how that line looks when Apache is using it.


            Once you have identified the program, you need to shut it down or have it use another port.

            An alternative is to have your Apache listen on a different port. To do that you open the Apache config ("httpd.ini" or "httpd.conf " under the "conf" directory where you installed Apache) and change "Listen 80" to another port, and all instances of ":80" to match it. -- Just make sure you back up your config file first, in case something goes wrong ;)

            Comment

            • sridh
              New Member
              • Sep 2010
              • 5

              #7
              thanks Atli

              there was a reg entry which i deleted ,ths reg entry was from the Voip Software , which was forcing to :100 port , so i deleted this , now it is working , even PHP
              Thanks
              :D

              Comment

              • Atli
                Recognized Expert Expert
                • Nov 2006
                • 5062

                #8
                Ahh ok I see. I wouldn't have guessed that. (More of a Linux guy... no registry.)

                Glad you got it working :)

                Comment

                • sridh
                  New Member
                  • Sep 2010
                  • 5

                  #9
                  Hi
                  how can i capture the value of a check box .

                  regars
                  sri

                  Comment

                  Working...