I have recently installed PHP 5.0 on my windows 2000 server on IIS with mysql.

I have also configured the system vairable and included the php in the path variable plus also added the phprc.

but when i created a small file test.php and saved it in the inetpub\wwwroot folder and tried to run the file from IE by using the http://localhost/test.php it says file not found 404 error.

And also when i save the file test.php still the file icon looks like text file.

my php files are locatde at path c:\PHP folder all dlls etc including the ini file plus php5ts.dll also.

Please friend is there any other thing i am missing.

Thank you,
Raj

    The file is likely being saved as test.php.txt (due to Windows hiding known file type extensions by default.)

    Go to My Computer->Tools->Folder Options and click on the View tab. Uncheck the Hide file extensions for known file types and click Apply then OK.

    Browse to your inetpub\wwwroot directory and then simply right-click the test.php.txt file and rename it to test.php.

    Then try running http://localhost/test.php again and see what happens.

      I save the file as "test.php" with double quotes at front and end to make it saved as .php
      and when i went to inetpub and wwwroot to see the file the file type says php file, but the icon of the file looks same like text file.

      please correct me if i am wrong.

      another thing is do i need to add the permissions to the file.

      because when i tried to create a "test.php" file at the oath igave me a message that there is already a file with same name with 0 bytes and it said that i cannot replace the existing file with this.

      and then i went and checked the properties and turned readonly off and then deleted the file and created the new file with same name, and do i need to add the full permisions.

      Thank you very much.

        Hi,

        check if it works if you give the IUSR_???? user read permissions (recursive) on the directory where PHP is installed.

        Is every file you create in wwwroot readonly ?

        Thomas

          Write a Reply...