PDA

View Full Version : php error..


c0lin
05-29-2003, 12:38 PM
Hi,

I installed php 4.3 on my window98 machine running PWS
but when i try to run any php scripts i get the following error 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.
---------
i have set the right permissions for the folders.
i have also searched google for an answer...from some of the search results i got there, i assume i have to edit somthing in the php.ini.
although i dont know what, can someone point me in the right direction?..

Thanks :D

CH :)

Saj
05-29-2003, 02:07 PM
How can you set permissions to folders in Win32? But anyway, can you post the lines you added to Apache's default.conf file? There could be a small error with that.

Another way to do it is to install it as a module. If you read PHP's install file, it will tell you what to add for Apache. Also, I'm not sure how well the installer works, but the zipped PHP files have worked well for me.

c0lin
05-29-2003, 02:16 PM
Hi,

Thanks for the reply

Im not running Apache server, im running microsoft personal webserver (PWS).

I havent editied any file called 'default.conf'
i have searched for this file but i couldnt find it.

um,.. Any other solutions?
Thanks

CH :)

Saj
05-29-2003, 06:37 PM
Ok, well I've never used PWS, but take a loot at this page on the PHP Manual: http://www.php.net/manual/en/install.iis.php . Hopefully you'll find something there :)

c0lin
05-29-2003, 07:21 PM
Thanks for the links Saj, i followed all the tips and links on that page.

But i still get the same error message :(

i think i,lll just give up lol
Well thanx for your help anyway :thumbsup:

CH :)

Spookster
05-29-2003, 07:26 PM
Honestly unless you actually wanted to learn how to set up things on a server I would just stick with one of the easy setup development environments like PHPDEV:

http://www.codingforums.com/showthread.php?s=&threadid=3992

It's better to run Apache with PHP anyways as most hosts will be running the same. People generally don't go for hosts running Windows unless they need to run ASP so most likely you want a host running Apache and PHP anyways.

c0lin
05-30-2003, 05:15 PM
Hi,

Thanks for that spookster.

Ive installed the phpdev package now and everything seems to be working ok :)
Just one question tho...
how to do enable access to my server from the 'outside world' ?

Thanks :D

CH :)

Spookster
05-30-2003, 05:31 PM
Put your sites that you want to be available to the outside world in the public folder.

c0lin
05-30-2003, 05:52 PM
Thanks for that spookster. :thumbsup:

I seem to have got everythig sorted now :D

CH :)