How to make php work on "my" computer?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Krasnichuk

    How to make php work on "my" computer?

    hello,
    Does anyone know how I make php work on "my" computer?
    I made a mistake in my last post so I fixed it here.

    Chris


  • Ian.H [dS]

    #2
    Re: How to make php work on "my&quo t; computer?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Whilst lounging around on Fri, 04 Jul 2003 13:23:37 GMT, "Chris
    Krasnichuk" <Krasnicuk@shaw .ca> amazingly managed to produce the
    following with their Etch-A-Sketch:
    [color=blue]
    > hello,
    > Does anyone know how I make php work on "my" computer?
    > I made a mistake in my last post so I fixed it here.
    >
    > Chris
    >[/color]


    Stop multi posting!

    As already stated in another group.. twice:


    I N S T A L L I T



    Regards,

    Ian

    -----BEGIN PGP SIGNATURE-----
    Version: PGP 8.0

    iQA/AwUBPwWL1Wfqtj2 51CDhEQIc/ACgl2GXY8Xd9Fln LGdxs2rg4DVtkQU AoPbk
    4JZPp9YAgEaOvyo EeZYvInBm
    =S+sx
    -----END PGP SIGNATURE-----

    --
    Ian.H [Design & Development]
    digiServ Network - Web solutions
    www.digiserv.net | irc.digiserv.ne t | forum.digiserv. net
    Programming, Web design, development & hosting.

    Comment

    • RG

      #3
      Re: How to make php work on &quot;my&quo t; computer?


      "Chris Krasnichuk" <Krasnicuk@shaw .ca> wrote in message
      news:tdfNa.3824 84$Vi5.9788761@ news1.calgary.s haw.ca...[color=blue]
      > hello,
      > Does anyone know how I make php work on "my" computer?
      > I made a mistake in my last post so I fixed it here.
      >
      > Chris
      >
      >[/color]


      Chris, you need to learn how to install it.
      Read up, search for the answer.
      How far do you think you are going to get if you can't even install and
      configure it.
      As a starting point, I suggest you get a reference book. I would also
      suggest Beginning PHP from Wrox.
      RG


      Comment

      • Tomislav Pavlovic

        #4
        Re: How to make php work on &quot;my&quo t; computer?

        On Fri, 04 Jul 2003 13:23:37 GMT, Chris Krasnichuk wrote:
        [color=blue]
        >hello,
        >Does anyone know how I make php work on "my" computer?
        >I made a mistake in my last post so I fixed it here.
        >
        >Chris[/color]

        You should look at


        Comment

        • Bruno Desthuilliers

          #5
          Re: How to make php work on &quot;my&quo t; computer?

          Chris Krasnichuk wrote:[color=blue]
          > hello,
          > Does anyone know how I make php work on "my" computer?
          > I made a mistake in my last post so I fixed it here.
          >
          > Chris
          >[/color]

          What does "my" mean here ? You mean "your" computer ? Or what else ?

          Bruno



          Comment

          • Chris Krasnichuk

            #6
            Re: How to make php work on &quot;my&quo t; computer?

            Omg,
            Can't anybody answer my question with detail?
            I know people have told me to read the installation thingy but my php bible
            gave more information then people here.
            So if anyone can please give me detail instructions


            "Bruno Desthuilliers" <bdesth.nospam@ removeme.free.f r> wrote in message
            news:3F063759.6 050800@removeme .free.fr...[color=blue]
            > Chris Krasnichuk wrote:[color=green]
            > > hello,
            > > Does anyone know how I make php work on "my" computer?
            > > I made a mistake in my last post so I fixed it here.
            > >
            > > Chris
            > >[/color]
            >
            > What does "my" mean here ? You mean "your" computer ? Or what else ?
            >
            > Bruno
            >
            >
            >[/color]


            Comment

            • Gareth Church

              #7
              Re: How to make php work on &quot;my&quo t; computer?

              "Chris Krasnichuk" <Krasnicuk@shaw .ca> wrote in message
              news:CkWNa.3683 70$3C2.10073926 @news3.calgary. shaw.ca...[color=blue]
              > Omg,
              > Can't anybody answer my question with detail?
              > I know people have told me to read the installation thingy but my php[/color]
              bible[color=blue]
              > gave more information then people here.
              > So if anyone can please give me detail instructions[/color]

              I think you need to show people that you are trying. Have you actually tried
              downloading PHP and reading the readme file? People are suggesting that you
              do it because that is what the readme file is there for - it's written once
              in a readme file so a newsgroup message doesn't have to be written
              explaining it everytime someone wants to install. If you have tried
              installing it and have read the readme, which part exactly is it you are
              having trouble with? Did you install Apache? Can you see plain HTML websites
              properly? Did PHP seem to install properly? Did running phpinfo() work?
              Constantly asking the very general question "how do I get PHP to work?"
              makes it sound as though you are too lazy to use a search engine or read the
              readme yourself, and people don't tend to go out of their way to exaplain
              things if someone is simply too lazy to do it themselves.

              I will give you a general overview to get you started. If you have trouble,
              come back and state what it was you tried, and what exactly isn't working.

              The first step is to install a web server. This will let you see html pages
              as if they were on the Internet (that is they have a URL like
              http://something instead of C:\something). Apache is the obvious choice, it
              is good and most importantly free.

              Once that is working you can view web pages by typing "http://localhost/".

              Now you need to install PHP so your scripts will work. This plugs into
              Apache. I suggest instead of installing these separatly you use a package
              like PHPDev. This is Apache, PHP and a few other things bundled together
              into an easy to use file for Windows users. You just download it, extract
              it, and you're pretty much done. You can get it from www.firepages.com.au.


              None of what I have written here is new. I think you have been very unfair
              by suggesting no-one has tried to help you. The Apache readme provides all
              of this information, but you have shown no indication that you bothered to
              read it. The link
              http://www.wowwebdesigns.com/power_g...trio_intro.php provided by
              Tomislav goes right back to a basic level and explains everything really
              well, but again you don't seem to have bothered reading it. WAMP and
              PHPTriad also seem to do exaclty the same thing as PHPDev, but again you
              don't seem to have bothered trying them.

              It's incredibly rude to ignore what people have said and then blaming them
              for not trying to help them. If you don't change your attitude nobody is
              going to bother trying to help you (it's not like they get anything out of
              it - remember they are doing you a favour). If you do genuinely try some of
              the things above or in other posts, and have trouble we will be more than
              glad to help you. If you ignore it and complain that everything hasn't been
              nicely laid out on a platter for you then you can expect to be on everyone's
              killfile in very quick order.

              Gareth


              Comment

              • Matthias Esken

                #8
                Re: How to make php work on &quot;my&quo t; computer?

                "Chris Krasnichuk" <Krasnicuk@shaw .ca> schrieb:
                [color=blue]
                > Can't anybody answer my question with detail?
                > I know people have told me to read the installation thingy but my php bible
                > gave more information then people here.
                > So if anyone can please give me detail instructions[/color]

                Please be more specific. I assume that vou've read
                http://www.php.net/manual/en/installation.php and did the described
                tasks.

                We can't help you if you don't give us an idea about your problem. So
                which part of the installation does not work?

                Matthias

                Comment

                • Chris Krasnichuk

                  #9
                  Re: How to make php work on &quot;my&quo t; computer?

                  OK.
                  I'm sorry if I've been sounding like an idiot.
                  But I've installed apache, I've installed PHP, I've tryed
                  http://localhost/[file] but nothing works.
                  It just keeps coming up with some website thingy.

                  Please help me I'm starting to give up.

                  "Gareth Church" <gechurch@bigpo nd.com.au> wrote in message
                  news:VuWNa.3435 $oN.147036@news feeds.bigpond.c om...[color=blue]
                  > "Chris Krasnichuk" <Krasnicuk@shaw .ca> wrote in message
                  > news:CkWNa.3683 70$3C2.10073926 @news3.calgary. shaw.ca...[color=green]
                  > > Omg,
                  > > Can't anybody answer my question with detail?
                  > > I know people have told me to read the installation thingy but my php[/color]
                  > bible[color=green]
                  > > gave more information then people here.
                  > > So if anyone can please give me detail instructions[/color]
                  >
                  > I think you need to show people that you are trying. Have you actually[/color]
                  tried[color=blue]
                  > downloading PHP and reading the readme file? People are suggesting that[/color]
                  you[color=blue]
                  > do it because that is what the readme file is there for - it's written[/color]
                  once[color=blue]
                  > in a readme file so a newsgroup message doesn't have to be written
                  > explaining it everytime someone wants to install. If you have tried
                  > installing it and have read the readme, which part exactly is it you are
                  > having trouble with? Did you install Apache? Can you see plain HTML[/color]
                  websites[color=blue]
                  > properly? Did PHP seem to install properly? Did running phpinfo() work?
                  > Constantly asking the very general question "how do I get PHP to work?"
                  > makes it sound as though you are too lazy to use a search engine or read[/color]
                  the[color=blue]
                  > readme yourself, and people don't tend to go out of their way to exaplain
                  > things if someone is simply too lazy to do it themselves.
                  >
                  > I will give you a general overview to get you started. If you have[/color]
                  trouble,[color=blue]
                  > come back and state what it was you tried, and what exactly isn't working.
                  >
                  > The first step is to install a web server. This will let you see html[/color]
                  pages[color=blue]
                  > as if they were on the Internet (that is they have a URL like
                  > http://something instead of C:\something). Apache is the obvious choice,[/color]
                  it[color=blue]
                  > is good and most importantly free.
                  >
                  > Once that is working you can view web pages by typing "http://localhost/".
                  >
                  > Now you need to install PHP so your scripts will work. This plugs into
                  > Apache. I suggest instead of installing these separatly you use a package
                  > like PHPDev. This is Apache, PHP and a few other things bundled together
                  > into an easy to use file for Windows users. You just download it, extract
                  > it, and you're pretty much done. You can get it from www.firepages.com.au.
                  >
                  >
                  > None of what I have written here is new. I think you have been very unfair
                  > by suggesting no-one has tried to help you. The Apache readme provides all
                  > of this information, but you have shown no indication that you bothered to
                  > read it. The link
                  > http://www.wowwebdesigns.com/power_g...trio_intro.php provided[/color]
                  by[color=blue]
                  > Tomislav goes right back to a basic level and explains everything really
                  > well, but again you don't seem to have bothered reading it. WAMP and
                  > PHPTriad also seem to do exaclty the same thing as PHPDev, but again you
                  > don't seem to have bothered trying them.
                  >
                  > It's incredibly rude to ignore what people have said and then blaming them
                  > for not trying to help them. If you don't change your attitude nobody is
                  > going to bother trying to help you (it's not like they get anything out of
                  > it - remember they are doing you a favour). If you do genuinely try some[/color]
                  of[color=blue]
                  > the things above or in other posts, and have trouble we will be more than
                  > glad to help you. If you ignore it and complain that everything hasn't[/color]
                  been[color=blue]
                  > nicely laid out on a platter for you then you can expect to be on[/color]
                  everyone's[color=blue]
                  > killfile in very quick order.
                  >
                  > Gareth
                  >
                  >[/color]


                  Comment

                  • Gareth Church

                    #10
                    Re: How to make php work on &quot;my&quo t; computer?

                    "Chris Krasnichuk" <Krasnicuk@shaw .ca> wrote in message
                    news:gJXNa.3687 44$3C2.10079086 @news3.calgary. shaw.ca...[color=blue]
                    > OK.
                    > I'm sorry if I've been sounding like an idiot.[/color]

                    And I'm sorry if I was a bit harsh (which I probably was).
                    [color=blue]
                    > But I've installed apache, I've installed PHP, I've tryed
                    > http://localhost/[file] but nothing works.
                    > It just keeps coming up with some website thingy.[/color]

                    That sounds promising. The web site is probably the placeholder that is
                    created when you install Apache. Now if you go to the directory where you
                    installed Apache and into the www folder (this may be wrong, I use PHPDev
                    which does all the work for me. It may well be a different folder for a
                    regular Apache install) and place your own files in that directory, they
                    should be visible (either by typing http://localhost/myfile.html or by
                    replacing the index.html file and just loading http://localhost/) With a bit
                    of luck your web pages should show.

                    The next thing to do is test PHP. Generally you use a php file with the line
                    phpinfo() in it to test this, as it gives you all the information about PHP.
                    I can't say much more about PHP, because I took the easy way out and used
                    PHPDev, which sets everything up already. You may well need to configure
                    some configuration files. I would assume the documentation that comes with
                    PHP would detail this, or someone here can help. If you have trouble though,
                    I do recommend a tool like PHPDev (firepages.com. au). It was made for simple
                    fools like you and I that just want things to work without fiddling around
                    too much. ll you do is download it, extract it to a directory and run a
                    batch file to start things off. It will start all the necessary processes
                    and load up a web page that includes test code (like a file with phpinfo())
                    so you can test the server. It's designed for exactly what (I assume) you
                    are doing - just tesing your own scripts at home.

                    Good luck,
                    Gareth


                    Comment

                    • Chris Krasnichuk

                      #11
                      Re: How to make php work on &quot;my&quo t; computer?

                      What dir do I make it in?


                      "Geoff Berrow" <$bl$@ckdog.co. uk> wrote in message
                      news:vo5hgvspbk th37lvrjccgfuu3 oovs59te9@4ax.c om...[color=blue]
                      > Message-ID: <9i%Na.398628$V i5.10277025@new s1.calgary.shaw .ca> from Chris
                      > Krasnichuk contained the following:
                      >[color=green]
                      > >I've installed phpdev but when I goto http://localhost/phpinfo.php it[/color][/color]
                      just[color=blue][color=green]
                      > >comes up with this site[/color]
                      >
                      >http://www.commonname.com/en/PowerSe...KxsECUg=&app=1[/color]
                      00[color=blue][color=green]
                      > >It's reallt getting to me now I'm getting ready to smash my head in the
                      > >screen.
                      > >Please Help ME!!!!![/color]
                      >
                      > Now, I've never got round to installing a server on my machine yet because
                      > I find it just as easy to bang stuff up to my host but, just to confirm,
                      > have you created a file called phpinfo.php and does it contain something
                      > like the following?
                      >
                      > <html>
                      > <head>
                      > <title>PHP info</title>
                      > </head>
                      > <body>
                      > <?php
                      > phpinfo();
                      > ?>
                      > </body>
                      > </html>
                      >
                      >
                      >
                      > --
                      > Geoff Berrow
                      > It's only Usenet, no one dies.
                      > My opinions, not the committee's, mine.
                      > Simple RFDs http://www.ckdog.co.uk/rfdmaker/[/color]


                      Comment

                      • Geoff Berrow

                        #12
                        Re: How to make php work on &quot;my&quo t; computer?

                        Message-ID: <0h2Oa.371959$3 C2.10190524@new s3.calgary.shaw .ca> from Chris
                        Krasnichuk contained the following:
                        [color=blue]
                        >What dir do I make it in?[/color]

                        Gareth told you.
                        [color=blue][color=green]
                        >> But I've installed apache, I've installed PHP, I've tryed
                        >> http://localhost/[file] but nothing works.
                        >> It just keeps coming up with some website thingy.[/color]
                        >
                        >That sounds promising. The web site is probably the placeholder that is
                        >created when you install Apache. Now if you go to the directory where you
                        >installed Apache and into the www folder (this may be wrong, I use PHPDev
                        >which does all the work for me. It may well be a different folder for a
                        >regular Apache install) and place your own files in that directory, they
                        >should be visible (either by typing http://localhost/myfile.html or by
                        >replacing the index.html file and just loading http://localhost/) With a bit
                        >of luck your web pages should show.[/color]

                        --
                        Geoff Berrow
                        It's only Usenet, no one dies.
                        My opinions, not the committee's, mine.
                        Simple RFDs http://www.ckdog.co.uk/rfdmaker/

                        Comment

                        • Chris Krasnichuk

                          #13
                          Re: How to make php work on &quot;my&quo t; computer?

                          it still just comes up with this page:



                          "Geoff Berrow" <$bl$@ckdog.co. uk> wrote in message
                          news:58dhgv0gic dkn3nsquk05k05v dma27k3ti@4ax.c om...[color=blue]
                          > Message-ID: <0h2Oa.371959$3 C2.10190524@new s3.calgary.shaw .ca> from Chris
                          > Krasnichuk contained the following:
                          >[color=green]
                          > >What dir do I make it in?[/color]
                          >
                          > Gareth told you.
                          >[color=green][color=darkred]
                          > >> But I've installed apache, I've installed PHP, I've tryed
                          > >> http://localhost/[file] but nothing works.
                          > >> It just keeps coming up with some website thingy.[/color]
                          > >
                          > >That sounds promising. The web site is probably the placeholder that is
                          > >created when you install Apache. Now if you go to the directory where you
                          > >installed Apache and into the www folder (this may be wrong, I use PHPDev
                          > >which does all the work for me. It may well be a different folder for a
                          > >regular Apache install) and place your own files in that directory, they
                          > >should be visible (either by typing http://localhost/myfile.html or by
                          > >replacing the index.html file and just loading http://localhost/) With a[/color][/color]
                          bit[color=blue][color=green]
                          > >of luck your web pages should show.[/color]
                          >
                          > --
                          > Geoff Berrow
                          > It's only Usenet, no one dies.
                          > My opinions, not the committee's, mine.
                          > Simple RFDs http://www.ckdog.co.uk/rfdmaker/[/color]


                          Comment

                          • Geoff Berrow

                            #14
                            Re: How to make php work on &quot;my&quo t; computer?

                            Message-ID: <fF2Oa.372197$3 C2.10196868@new s3.calgary.shaw .ca> from Chris
                            Krasnichuk contained the following:
                            [color=blue]
                            >it still just comes up with this page:
                            >http://www.commonname.com/en/PowerSe...sECUg=&app=100[/color]

                            Get some PHP enabled webspace til you figure it out.

                            --
                            Geoff Berrow
                            It's only Usenet, no one dies.
                            My opinions, not the committee's, mine.
                            Simple RFDs http://www.ckdog.co.uk/rfdmaker/

                            Comment

                            • William Alexander Segraves

                              #15
                              Re: How to make php work on &quot;my&quo t; computer?

                              "Chris Krasnichuk" <Krasnicuk@shaw .ca> wrote in message
                              news:tdfNa.3824 84$Vi5.9788761@ news1.calgary.s haw.ca...[color=blue]
                              > hello,
                              > Does anyone know how I make php work on "my" computer?
                              > I made a mistake in my last post so I fixed it here.[/color]

                              Google is your friend.

                              Googling with "how to configure php apache cgi" gives me as the first link:

                              How to guide to installing and configuring PHP4 (PHP version 4) to run with the Apache web server on Windows


                              Here's what I did that works fine.

                              1. Download and install IndigoPerl, available free from www.indigostar.com.
                              2. Download and install PHP4.
                              3. Follow the installation instructions for PHP, especially in the section
                              "b. Running PHP as a CGI binary".

                              Another link, Googled out of the PHP documentation,



                              especially the section "Installing PHP on Windows with Apache 1.3.x" should
                              give you some hints on configuring Apache.

                              I suspect the results you've obtained so far ensue because you have not
                              configured Apache correctly. If you with to run PHP as a CGI scripting
                              language, you simply *must* give Apache the directives that are required to
                              implement said action.

                              Good luck.

                              Bill Segraves




                              Comment

                              Working...