Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
PHP und Omnihttpd !?! [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr

- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
PHP und Omnihttpd !?!


 
luc98
10-08-2002, 10:16 
 
Also, ich hab PHP installiert und Omnihttpd. Wenn ich eine PHP Datei öffnen will kommt folgende Meldung:

Security Alert! 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. This variable is set, for example, by Apache's Action directive redirect.

You may disable this restriction by recompiling the PHP binary with the --disable-force-cgi-redirect switch. If you do this and you have your PHP CGI binary accessible somewhere in your web tree, people will be able to circumvent .htaccess security by loading files through the PHP parser. A good way around this is to define doc_root in your php.ini file to something other than your top-level DOCUMENT_ROOT. This way you can separate the part of your web space which uses PHP from the normal part using .htaccess security. If you do not have any .htaccess restrictions anywhere on your site you can leave doc_root undefined. If you are running IIS, you may safely set cgi.force_redirect=0 in php.ini.


Leider finde ich keine Konfigurationsdatei von Omnihttpd und über das Config tool finde ich auch keine Redirects Status Variable...
Was muss ich tun. Ich verstehe nicht so gut Englisch!

vielen Dank

luc

 
joschua
10-08-2002, 11:54 
 
hallo luc,
ich hab PHP installiert und Omnihttpd
hast du den ommni und php seperat installiert?
wen ich mich nicht täusche, ist beim ommnihttpd php bereits dabei...

installier doch den ommni nochmal neu...


ebenfalls würde ich dir eher den apache empfehlen.
da hast du mer konfigurations möglichkeiten.

dieser ist bereits vorkonfiguriert und läuft bereits nach dem entpacken.
http://www.apachefriends.org/wampp.html

 
tsoP ehcstueD
22-09-2002, 00:20 
 
habe das gleiche prob...
aber erst nach update auf die neue omnihttpd version...

liegt also an dem webserver und net an php...

verzweifle auch daran..
mal schauen ob ich den fehler noch finde.. :/

 
Bernd
11-10-2002, 20:04 
 
Hallo
ich weiss nicht warum aber nach diesem Eintrag in die php.ini geht es:

cgi.force_redirect=0
;cgi.force für Jana HTTP und Omni HTTP

Bernd


Alle Zeitangaben in WEZ +2. Es ist jetzt 13:36 Uhr.