PHP и IIS
Модератор: Модераторы
Сообщений: 7
• Страница 1 из 1
- Stratofortress
- хм...
- Сообщения: 611
- Зарегистрирован: 07 апр 2004, 17:10
- Откуда: ссср
Цитата |
PHP 4 and IIS 6.0 (Windows Server 2003) Had difficulty getting PHP 4.3.3 to work with Win2003 Ent Server for use with SquirrelMail. Problem found and believed solved. Appears to be something New with IIS 6.0 (More security by Micro$oft) Was getting 404 error and php was not being run as a cgi even though it was in extensions and IIS user had rights to execute it. (php from command line operated correctly) If you are installing on Windows Server 2003 (only have Enterprise Edition – Not sure if this applies to standard edition), and you have done the normal procedures for inclusion of PHP scripts (either ISAPI or CGI) in IIS, you will still get a 404 error when attempting to execute those scripts even though IIS has rights and the extension points to the correct file. To alleviate this problem, perform the following: 1. Open a command prompt window 2. Change to C:\windows\system32 3. Execute the command: cscript iisext.vbs /AddFile c:\php\php.exe 1 php 0 php 4. Execute the command: cscript iisext.vbs /EnFile c:\php\php.exe 5. To check for correct execution of the above, 6. Execute the command: cscript IisExt.vbs /ListFile – the php extension should be listed If you try just step 4 without step 3 you get an error that the file is not in the list (and won’t be there till you do step 3 above) After this, IIS seems to like the php extension and work normally. For additional reference, see the below 3 Micro$oft KB Articles: HOWTO: Enable and Disable ISAPI Extensions and CGI Applications in IIS 6.0 (MS KB Article 328360) HOWTO List Web Server Extensions and Extension Files in IIS 6.0 (MS KB Article 328505) HOWTO Add and Remove Web Service Extension Files in IIS 6.0 (MS KB Article 328419 [/quote] нет времени разбираться — наймите того, кто знает.
тогда всё ещё проще. )
свойства сайта - home directory-starting point: configuration в mappings добавляем что надо. нет времени разбираться — наймите того, кто знает.
чётко следуя инструкциям мануала по установке PHP на IIS 6.0 после
Execute the command: cscript iisext.vbs /AddFile d:\php\php.exe 1 php 0 php выдаётся окошком: Script Component - file://d:\Windows\system32\iisschlp.wsc - Cannot create object и в строку: Not Enough parameters. Type IIsExt /? for help. в чём проблема? ps: тоже самое, кстати, пишет и при вводе IisExt /? задумался отвечу себе:
а проблема в криворукости, ибо все известные фильтры ISAPI и CGI по-умолчанию Prohibit, тоесть запрещены. для их разрешения необходимо залесть во вкладку web server extentions оснастки internet information services и поставить allowed и тогда все ставится обычным способом через home directory\configuration (правда оно и так ставится, но не работает) спасибо ps: а так как было написано в мануале всё равно не работает почему-то
Сообщений: 7
• Страница 1 из 1
Вернуться в Сетевые операционные системы Кто сейчас на конференцииСейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 2 |