How to Check if PHP Running on Machine?

I've been trying to successfully install Windows NT -Apache - MySQL - PHP setup on an intranet at my work. Right now an IIS server is running and it's been conflicting with my Apache server, but don't worry about that I know I have to disable the IIS to let Apache shine. Right now I just want to see if PHP is running at all.

What are the various ways I can check if PHP is actually currently running as a service?

I know I can post a PHP page to the intranet publishing folder and see if it runs, that's what I've done in the past, but it really seems so primitive. How do I do this in a more IT Networking Guy professional way?

    PHP doesnt need to be installed a service. Just create a PHPINFO page if you see information about your PHP Setup your its all good, if not something has gone wrong.

    <?php
    phpinfo();
    ?>
    

      Originally posted by XinXang
      I know I can post a PHP page to the intranet publishing folder and see if it runs, that's what I've done in the past, but it really seems so primitive. How do I do this in a more IT Networking Guy professional way?

      That's how an IT Networking Guy would do it. It's called the acid test (and you'll have noticed from your Apache install that it is how you check that Apache is working). You can have all the circumstantial evidence you want, but if it doesn't perform then it's not working.

        ok, I've done this, but now I realize that in between me installing all kinds of software and other guys doing the same after me, I don't realize anymore what webserver is actually driving this thing right now.

        We've got an InetPub folder, an htmdocs folder, a wwwroot, an ftproot, an additional www folder with an Intranet folder in it...and almost every folder's got a default.html in it, so I've been going through and systematically changing the default.html to tdefault.html and dropping my phpinfo file in as index.php

        But somehow it's still not publishing, so I'm missing the publising folder somehow.

        How can I just figure out what webserver and internet publishing folder is in charge without the guessing games?

          ok, found the publishing folder it is: www then inside there we've got /intranet and then a bunch of folders under there...

          it's peer web services (i think) that's running things.

          so I've gone ahead and re-installed php on the machine. But now the intranet site's down and I've got to assign some kind of permissions to the IUSR_MachineName to be able to access sessions, and uploadtmp and execute access for php.exe.

          How do I do this in NT?

            WWW (which is publishing everything) is the equivalent of the D drive on the machine.

            I went into the folders for PHP (which is not on the D drive, but on the C drive...does it need to be installed on the D drive? that shouldn't matter should it (cause then it would be published, that can't be right?)

            and I went into the permissions for uploadtmp, sessions, and php.exe and it's got FULL CONTROL for the SYSTEM. That's what they mean by IUSR_MachineName, right? So it should be able to run PHP on that Web Service now?

              Now if I enter the URL of my phpinfo.php file it asks me if I want to download the file or open it. I open it and it shows me my text file

              <?php
              phpinfo();
              ?>

              so I don't think it's running the php I installed.

                now i'm installing php in the d drive.

                I get this error, same error i got when installing on c drive:

                Error trying access the local web service. Get Object Failed. You will need to manually configure IIS via the management console.

                and then I click and the install says successful. What do I need to configure for PHP in the management console?

                  Write a Reply...