On my dev machine I have WinXP Pro, IIS, PHP4, mysql. I am using it to test development before I upload it to the linux box (production server).
Everything seemed to be working great, all my pages serve just fine, etc. Then I decide to add a new directory called "directory-dev" and copy all the contents of "directory" over into that one, so that I can make some serious changes on a "test" site.
So before I even make any changes I browse over to http://localhost/directory-dev/login.php to log in and test to make sure that it's working .. I get flummoxed immediately by a string of errors.
A popup window opens and says:
Unknown(): Unable to load dynamic library '/usr/lib/php4\imap.so' - the specified module could not be found.
I read this and go "Of course it would not be found, because this is WinXP and not linux. There's no /usr/lib/ anything!"
A succession of similar errors/popups ensue for the files ldap.so and pgsql.so (may I reiterate that I'm using MySQL, not postgres?)
After the popup windows, it settles on this message:
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.
For more information as to why this behaviour exists, see the manual page for CGI security.
For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4\imap.so' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4\ldap.so' - The specified module could not be found. in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4\pgsql.so' - The specified module could not be found. in Unknown on line 0
So I look into the links... check out C:\Windows\php.ini and look for the CGI-force_redirect and it is indeed set to zero, as it should.
Look.. no directory pointers to weird directories...
So.. I figure.. what the heck.. try renaming the directory from "directory-dev" to "directory_dev", "directorydev"... to no avail... did I mention that these same scripts work fine at "directory"????
Anybody willing to assist me in debugging this...??
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php