Ok I have insotalled and uninstalled apache2.0.52 and PHP 5.0.2 I have added the load module and added the addtype application... copied and pasted php.ini and php5ts.dll in c:\windows and c:\windows\system respectively but the 2 programs dont want to get along. I try to find the http://localhost/phpinfp.php file and no file is found.

I am running windows xp. I also have norton antivirus and internet security (not sure if that is important but might be due to the security stuff) can anyone help?

    Hi,

    which error do you get exactly ?

    did you create that php file in the htdocs directory ?
    Copy the php5ts.dll file to system32. The standard location for php.ini is the windows directory.
    Check the apache error_log file for any error messages.

      First off, get PHP 5.0.3. It fixes some Bad Things.

      Second, did you use the .msi install of Apache? I would start by just getting Apache running/secured before adding PHP.

      I think it's easier if you don't copy PHP's files to the windows(\system32) directory and just modify your system %PATH%.

      I set mine up like this:
      C:\Common\Servers\Apache\2.x
      C:\Common\Servers\PHP\5.x

      And run 4 IP based virtual servers (3 LAN + 1 WAN) with no problems whatsoever.

      Makes it real easy to upgrade/backup or even run multiple versions.

        { you said Hi,

        which error do you get exactly ?

        did you create that php file in the htdocs directory ?
        Copy the php5ts.dll file to system32. The standard location for php.ini is the windows directory.
        Check the apache error_log file for any error messages.}

        I didnt really get any error except the browser states it cant find the php.info.php file[Mon Feb 07 18:42:47 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico
        [Mon Feb 07 18:44:16 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico
        [Mon Feb 07 18:44:19 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico
        [Mon Feb 07 18:44:20 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico
        [Mon Feb 07 19:12:50 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php/
        [Mon Feb 07 19:12:58 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php/
        [Mon Feb 07 19:13:04 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php/
        [Mon Feb 07 19:14:02 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php
        [Mon Feb 07 19:14:05 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php
        [Mon Feb 07 19:14:06 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php

        [Mon Feb 07 19:14:56 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php
        [Mon Feb 07 19:14:57 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php

        [Mon Feb 07 19:28:48 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php
        [Mon Feb 07 19:28:48 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico
        [Mon Feb 07 19:28:49 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php
        [Mon Feb 07 19:28:49 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico
        [Mon Feb 07 19:28:50 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php
        [Mon Feb 07 19:28:50 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico
        [Mon Feb 07 19:28:51 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php
        [Mon Feb 07 19:28:51 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico
        [Mon Feb 07 19:28:56 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php
        [Mon Feb 07 19:28:56 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico
        [Mon Feb 07 19:28:56 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/phpinfo.php
        [Mon Feb 07 19:28:56 2005] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico

        [Mon Feb 07 19:32:37 2005] [warn] pid file C:/Program Files/Apache Group/Apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

        anyway you get the picture. these are the errors i get. that last one im not sure about.

        apache starts fine
        yes i put the php.info.php file in the htdocs of appache and the dll file was in the system file and the system 32 file.

        i have since deleted PHP5 and changed the conf file back to the way it was, deleted the dll file, info file and ini file.

        Im starting over fresh. hopefully

          you said [First off, get PHP 5.0.3. It fixes some Bad Things.

          Second, did you use the .msi install of Apache? I would start by just getting Apache running/secured before adding PHP.

          I think it's easier if you don't copy PHP's files to the windows(\system32) directory and just modify your system %PATH%.

          I set mine up like this:
          C:\Common\Servers\Apache\2.x
          C:\Common\Servers\PHP\5.x

          And run 4 IP based virtual servers (3 LAN + 1 WAN) with no problems whatsoever.

          Makes it real easy to upgrade/backup or even run multiple versions.]

          I am using a CD rom provided by Sams Teach Yourself. it has mysql, apache, and PHP 5 all automatic- then they say to change a few things to link PHP with apache. PHP is put by default in the C: directory. Are you saying I should put the files into C:\Common\Servers\Apache\2.x
          C:\Common\Servers\PHP\5.x
          respectively?

            installed .msi apache in the c:\common..... havent installed PHP yet. If i do what youve suggested how do the 2 communicate without changing the dll locations? I am very knew to installing this stuff (cracked the book open yesterday). I can already see I am at a disadvantage using windows instead of unix. I am using my machine to test and learn PHP so dont think I want to delve into the binary compiling to make the server secure yet.

              Check out www.xampp.org

              That's a complete WAMP(S) package that comes with all you need to start. It has an installer and comes with both php4 and php5. You can switch between the two php versions with just one click.

              About the file not found problem:

              You wrote that you put th php.info.php file into htdocs. But the error log complains about phpinfo.php which is a different filename.

              Just a shot in the dark:

              Additionally, check if "Hide file extensions for known file types" is enabled in explorer folder options and disable that option.

              Then check if the filename looks like phpinfo.php.txt. If you used e.g. notepad to create the file then the file might have been saved as phpinfo.php.txt but you can't see that if the option above is enabled and the file looks like phpinfo.php.

              Thomas

                "Hide file extensions for known file types" thats somewhere in the internet tools folder ?

                I did use notepad and I got the text that I typed in the info doc that came up. I tried making a php document in dreamweaver but got a blank document when i browsed.

                  No,

                  start the windows explorer, then Open Tools->Folder Options->View and disable that option if it is enabled.

                  Thomas

                    disabled it and downloaded the xampp pacage and that worked fine so far. didnt want to go with a package deal because php.net recommends you dont but probably a disclaimer. hope it continues to work. Thanks for your help. Thomas

                      does dreamweaver work as an ide at all? ive had heard that it is lame for working with PHP.

                        Write a Reply...