Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

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

    #1

    Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

    Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54

    Apache is running fine and ive made all the changes to the pnp.ini file
    and Apache config file, restarted Apache but all I get when trying to
    call my test.php file is a 404 error?

    http.config file:
    LoadModule php5_module "C:/php/php5apache2.dll "
    PHPIniDir "C:/php"
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    set my php.ini doc-root file to :
    doc_root = "C:\Program Files\Apache Group\Apache2\h tdocs"

    Ive followed all the FAQs on php.net , added c:/php to the Path etc

    any ideas?

    thanks

  • Rincewind

    #2
    Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

    On 19 Sep 2005 15:24:12 -0700, gregsands wrote:
    [color=blue]
    > Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54
    >
    > Apache is running fine and ive made all the changes to the pnp.ini file
    > and Apache config file, restarted Apache but all I get when trying to
    > call my test.php file is a 404 error?
    >
    > http.config file:
    > LoadModule php5_module "C:/php/php5apache2.dll "
    > PHPIniDir "C:/php"
    > AddType application/x-httpd-php .php
    > AddType application/x-httpd-php-source .phps
    >
    > set my php.ini doc-root file to :
    > doc_root = "C:\Program Files\Apache Group\Apache2\h tdocs"
    >
    > Ive followed all the FAQs on php.net , added c:/php to the Path etc
    >
    > any ideas?
    >
    > thanks[/color]

    If your getting a 404 error it means it's not there on the server, not that
    PHP isn't working!

    Comment

    • gregsands

      #3
      Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

      Thats what I thought, so I created a helloworld.html file and put it in
      the same folder as my test.php file (which contains <? phpinfo() ?> ).
      My helloworld.html file works fine but the php file gets the file not
      found eror message?

      localhost/helloworld.html
      localhost/test.php

      location : Apache/htdocs/

      Comment

      • ManChild

        #4
        Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

        gregsands wrote:[color=blue]
        > Thats what I thought, so I created a helloworld.html file and put it in
        > the same folder as my test.php file (which contains <? phpinfo() ?> ).
        > My helloworld.html file works fine but the php file gets the file not
        > found eror message?
        >
        > localhost/helloworld.html
        > localhost/test.php
        >
        > location : Apache/htdocs/
        >[/color]

        This may be entirely patronising but wheneverI setup Apache/PHP I create
        a php file using notepad to test and almost always manage to call it
        index.php.txt by accident ......... :D

        Comment

        • Joseph S.

          #5
          Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

          More or less looks proper, yet,
          A few things you may want to confirm/try out:
          see if there is a php.ini in c:\windows, if there is remove it
          dont forget to add c:\php to your system path, in winXP it is found by
          right clicking on my computer, advanced tab, environment variables,in
          the lower list (for the system)

          also,
          (there is no reason this should happen wrong, but .....) check if the
          line
          engine = On
          is present in php.ini - it should be there.

          This may sound silly, but one last thing that I can think of is making
          a directory named php in C:\Pro.....\\\A pache2\htdocs and saying that
          your doc_root is C:\Program Files\Apache Group\Apache2\h tdocs\php

          Also, check to see DocumentRoot in the httpd.conf file is set to the
          htdocs folder.

          Apart from these I cannot think of anything as yet. When you do get the
          solution, kindly post it, as it seems to be interesting.

          Regards,
          Joseph S.

          Comment

          • gregsands

            #6
            Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

            Im very embarrased, Manchild was correct, my test.php file was actually
            test.php.txt duh
            Ive been developing for 6 years and cant believe i fell for that one
            thanks for all your help - im sorry it wasnt a real problem!!

            cheers

            greg

            lol

            Comment

            • gregsands

              #7
              Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

              Im very embarrased, Manchild was correct, my test.php file was actually
              test.php.txt duh
              Ive been developing for 6 years and cant believe i fell for that one
              thanks for all your help - im sorry it wasnt a real problem!!

              cheers

              greg

              lol

              Comment

              • Rincewind

                #8
                Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

                On 20 Sep 2005 05:04:32 -0700, gregsands wrote:
                [color=blue]
                > Thats what I thought, so I created a helloworld.html file and put it in
                > the same folder as my test.php file (which contains <? phpinfo() ?> ).
                > My helloworld.html file works fine but the php file gets the file not
                > found eror message?
                >
                > localhost/helloworld.html
                > localhost/test.php
                >
                > location : Apache/htdocs/[/color]

                Please quote what your replying to.

                The problem with that is that it doesn't prove anything of value, you can
                open HTML files from any location and get the correct output, with php
                files they need to go through the server to be parsed in order for the
                output to be converted.

                Do you have short tags enabled in your php.ini around about line 80,
                because unless you have your script won't work, it should read <?php
                phpinfo()?>

                Comment

                • ManChild

                  #9
                  Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

                  gregsands wrote:[color=blue]
                  > Im very embarrased, Manchild was correct, my test.php file was actually
                  > test.php.txt duh
                  > Ive been developing for 6 years and cant believe i fell for that one
                  > thanks for all your help - im sorry it wasnt a real problem!!
                  >
                  > cheers
                  >
                  > greg
                  >
                  > lol
                  >[/color]

                  As soon as I read your post I thought "been there - done that ..."

                  HA HA :D

                  J

                  Comment

                  • shridharsamala

                    #10
                    Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help


                    Hii!
                    All
                    I am Shridhar a silent member of this group?
                    Actually i am trying to learn the php but i doesn't have the perticular

                    notes please any body have the notes in php which can explain in
                    details right from the code to the run the programm. please send me on
                    my mail
                    id is samala.shridhar @yahoo.co.in

                    I am a software engineer basically doing a job in scripting languages i

                    knew java,jsp etc etc.
                    i have some quries?


                    1.for a php we need the apache tomcat .i installed the apache
                    tomact4.3.1 in my PC for the java purpose. but when i start the tomcat
                    it will take the java files. what should i do to run php the way i
                    tried is it right method or i am wrong pls help me out.
                    2. when i wrote the program in note pad and save in the following
                    folder as
                    Tomcat--webapps--roots directory.
                    and when i run the programm.thru browser.that
                    https://localhost//8080//filename.php then the program doesn't works.
                    to write a php we need some software can any body tell me the excat
                    path where i can directly download the php software.


                    i have gone thru php.net,but i not able to download php installer
                    5.0.5. this
                    i tried in google also but i am getting some different things.


                    can any send me the software on my mail id shridharsamala@ yahoo.co.in
                    because in yahoo u can send the software by making the folder zip.


                    thanks in Advance,
                    Please send and clear my doubts as early as possible.
                    thanking you,
                    Regards,
                    Shridhar Samala.


                    --
                    shridharsamalaM essage posted via http://www.exforsys.com

                    Comment

                    • Fran García

                      #11
                      Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

                      You can install on your computar the xampp distribution
                      (http://www.apachefriends.org/en/xampp.html) and then you have already
                      an apache server on your windows. Then you must only run the apache
                      server with a bat file. xampp is so easy!!!

                      Then, if you want type code with some help you can download eclipse
                      (http://www.eclipse.org/) and an extensión for developping php script
                      called phpeclipse (http://phpeclipse.sourceforge.net/).

                      There is another open software called devphp
                      (http://devphp.sourceforge.net/) und that´s all OPEN SOURCE!!!

                      Good luck!!

                      shridharsamala wrote:[color=blue]
                      > Hii!
                      > All
                      > I am Shridhar a silent member of this group?
                      > Actually i am trying to learn the php but i doesn't have the perticular
                      >
                      > notes please any body have the notes in php which can explain in
                      > details right from the code to the run the programm. please send me on
                      > my mail
                      > id is samala.shridhar @yahoo.co.in
                      >
                      > I am a software engineer basically doing a job in scripting languages i
                      >
                      > knew java,jsp etc etc.
                      > i have some quries?
                      >
                      >
                      > 1.for a php we need the apache tomcat .i installed the apache
                      > tomact4.3.1 in my PC for the java purpose. but when i start the tomcat
                      > it will take the java files. what should i do to run php the way i
                      > tried is it right method or i am wrong pls help me out.
                      > 2. when i wrote the program in note pad and save in the following
                      > folder as
                      > Tomcat--webapps--roots directory.
                      > and when i run the programm.thru browser.that
                      > https://localhost//8080//filename.php then the program doesn't works.
                      > to write a php we need some software can any body tell me the excat
                      > path where i can directly download the php software.
                      >
                      >
                      > i have gone thru php.net,but i not able to download php installer
                      > 5.0.5. this
                      > i tried in google also but i am getting some different things.
                      >
                      >
                      > can any send me the software on my mail id shridharsamala@ yahoo.co.in
                      > because in yahoo u can send the software by making the folder zip.
                      >
                      >
                      > thanks in Advance,
                      > Please send and clear my doubts as early as possible.
                      > thanking you,
                      > Regards,
                      > Shridhar Samala.
                      >
                      >[/color]

                      Comment

                      • Joseph S.

                        #12
                        Re: Installing PHP 5.05 on WIndows XP, Apache 2.0.54 - please help

                        Hi,
                        Fran García wrote:[color=blue]
                        > You can install on your computar the xampp distribution
                        > (http://www.apachefriends.org/en/xampp.html) and then you have already
                        > an apache server on your windows. Then you must only run the apache
                        > server with a bat file. xampp is so easy!!![/color]

                        I second that.
                        [color=blue]
                        > Then, if you want type code with some help you can download eclipse
                        > (http://www.eclipse.org/) and an extensión for developping php script
                        > called phpeclipse (http://phpeclipse.sourceforge.net/).[/color]

                        I second third fourth that! PHPEclipse is excellent. I am learning php
                        as well and I just got xampp and PHPEclipse about 19 hours back - i am
                        up and running since 16 hours!!

                        If you meticulously follow the instructions at
                        http://www.plog4u.org/index.php/Using_PHPEclipse,
                        life will be very easy very quickly - Just give proper attention to
                        installing the debugger and setting up PHPEclipse for debugging:
                        Find information, resources and relevant links for plog4u.org. This domain may be for sale.


                        HTH,
                        Joseph S.

                        Comment

                        Working...