Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 10th, 2008, 12:02 PM
Registered User
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP no longer compiling (inetpub folder problem?)

This is a long shot, but...

I'm running PHP5.2.5 on Win2000 with IIS 5.0. PHP was working fine until yesterday -- when I might have accidentally moved some files around in the inetpub folder (b/c of a super-sensitive touchpad on my laptop :< I wasn't swift enough to hit "undo" after that happened.

Now, when I try to open PHP files in Internet Explorer, I just see the PHP code. I don't think I've messed up IIS -- it seems to be running fine -- and I don't think I messed up the PHP525 or WINNT folders.

I'm guessing this problem might be because of the folders I possibly moved --- although maybe there's another reason that I'm not seeing? Any ideas?

Does anyone know how the inetpub folder is *supposed* to be organized? Here's my current directory structure:

-Inetpub
 |-AdminScripts
 |-ftproot
 |-iissamples
   |-homepage
     |-themes
   |-sdk
     |-admin
     |-asp
       |-applications
       |-components
       |-database
       |-docs
       |-interaction
       |-simple
       |-transactional
 |-mailroot
 |-Scripts
 |-webpub
 |-wwwroot
   |-php_files

If this structure is messed up, can you tell me how I should move the folders to get PHP working again?

Alternatively, I'm thinking of just re-installing PHP, and if that doesn't work, and possibly reformatting my hard drive and reinstalling Win2000 (might be faster than trying to figure out what I did.)

Thanks in advance for any help!
 
Old January 10th, 2008, 12:35 PM
twr twr is offline
Registered User
 
Join Date: Jan 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It sounds like you are not using .php file extension ????????

 
Old January 10th, 2008, 02:01 PM
Registered User
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was using the PHP extension, but somehow my web server configuration had gotten messed up so that an ISAPI filter was missing. I restored that, and now I'm able to run PHP files again.

Thanks for your suggestion, twr!


 
Old January 10th, 2008, 02:04 PM
twr twr is offline
Registered User
 
Join Date: Jan 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Glade you have sorted it out. I have found that iis can be a pain with php, so use Apache now. http://www.apachefriends.org/en/xampp.html







Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete folder with php tinhbanghuu PHP How-To 4 March 26th, 2008 02:59 AM
problem with compiling application hertendreef ASP.NET 2.0 Basics 1 August 16th, 2007 12:17 PM
Problem with compiling - 2005 pghTech Visual C++ 2005 0 June 28th, 2006 11:13 AM
Compiling problem secko Visual C++ 1 March 15th, 2005 06:17 AM
problem with compiling centy Visual C++ 4 February 8th, 2005 02:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.