|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
WindowsXP and PHP
i have windowsXP and IIS 5.x i installed PHP 4.2.3 in my machine but when i open my browser and i type http://localhost/something.php i got an error message saying that i cannot view the page for security reasons.Does anyone tried to installed PHP in Xp and knows what i have to do.
Thanks |
|
#2
|
|||
|
|||
|
RE: WindowsXP and PHP
Can you view normal html pages? How did you install PHP? Did you use the installer or did you get the zip file and manually configure?
|
|
#3
|
|||
|
|||
|
RE: WindowsXP and PHP
i use the zip file.yes i can view html.if you mean that if i proprely install IIS i did because i can run asp pages.
this is the thing that i get when i run php pages. 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. |
|
#4
|
|||
|
|||
|
RE: WindowsXP and PHP
Tips for Installing php4 on Win2k Server with IIS5
It took a bit of time to get php setup and working this is how i set it up. 1 Download the php4.x windows version zip file, unzip all the files to a new directory called c:/php 2 setup access rights for the Isuer account on the c:/php directory (IIS needs this to run php.exe) 3 copy the .dll files from the php/dll folder to winnt/system32 4 rename the "php.ini-dist" file in c:/php to be "php.ini" note - this is a development config only - dont use on a public web site ! 5 open php/ini with notepad and goto the "paths & directory" section, change the line "; cgi.force_redirect = 1" to "cgi.force_redirect = 0" note- do not insert the " marks - these are for reference. 6 save the "php.ini" file to c:/winnt , this is the default path that php.exe is setup to look for it. 7 setup access rights for the Isuer account on the php.ini file (only that file not the entire winnt directory !) 8 goto Administrive tools - Internet Services Manger - select your site and right click - properties - Home Directory tab - and click configuration add a new extension called "php" then add the executable path i.e. c:/php/php.exe 9 goto Administrive tools - Internet Services Manger - select your site and right click - all tasks - permissions wizzard - and set wizzard to allow script running on your site. 10 add a test script to your site with a .php extension and run it to test. |
|
#5
|
|||
|
|||
|
RE: WindowsXP and PHP
1-2 questios my friend
i have to copy all dll files to windows directory? 2)i cannot find permissions wizard on Xp |
|
#6
|
|||
|
|||
|
RE: WindowsXP and PHP
ok it work
Thank you mate |
|
#7
|
|||
|
|||
|
RE: RE: WindowsXP and PHP
Hello,
Thanks for the help, but The instructions you gave were the same asthe help file. If it wasn't installed correctly we wouldn't get the security message. So it i just a simple config setting somewhere. I am getting the same problem too. Any ideas of other things to check? Thankxs |
|
#8
|
|||
|
|||
|
RE: WindowsXP and PHP
I also got same error. But my problem is that i don't have the access on php.ini in my website. Any other way to resolve the error without changing the php.ini?
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > WindowsXP and PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|