PDA

Просмотр полной версии : PHP for IIS 5.0


Dr@gon
30.04.2002, 11:16
Как можно сделать чтобы IIS 5.0 научился работать с PHP/MySQL???:help:

vts
30.04.2002, 11:36
http://www.php.net/do_download.php?download_file=php-4.2.0-Win32.zip

http://www.php.net/do_download.php?download_file=php-4.2.0-installer.exe

Dr@gon
30.04.2002, 12:00
Install - это понятно! А вот что с архивом делать???

P.S.: Сори за ламерский вопрос!

vts
30.04.2002, 12:03
найдешь меня на irc.dal.net #nnm.ru

Dr@gon
30.04.2002, 12:24
Нет там такого канала!!! :((( А PHP не ставится!!!

RaZEr
01.05.2002, 05:59
Да там специально даже положили Install.txt . Куда смотрим-то ?

1. Copy the php.ini-dist to your systemroot (the directory where you installed windows), rename it to php.ini, and
edit it to fit your needs
2. Start the Microsoft Management Console or the Internet Services Manager, located in your Control Panel
3. Click on your webserver, and select properties
4. If you don't want to perform HTTP Authentication using PHP, you can (and should) skip this step. Under ISAPI Filters,
add a new ISAPI filter. Use PHP as the filter name, and supply a path to the php4isapi.dll
5. Under Home Directory, click on the Configuration button. Add a new entry to the Application Mappings. Use the path the
php4isapi.dll as the Executable, supply .php as the extension, leave Method exclusions, blank, and check the Script engine
checkbox
6. Stop IIS completely
7. Start IIS again

Dr@gon
01.05.2002, 15:37
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.

RaZEr
02.05.2002, 04:34
И что ты этим хотел сказать ?

Dr@gon
02.05.2002, 05:13
То, что зделал описаное выше.... А вот такая вот херня получилась!

RaZEr
02.05.2002, 06:10
1: Где такое выпало ?
2: Ты попробовал "may safely set cgi.force_redirect=0 in php.ini" ?

Dr@gon
02.05.2002, 06:16
Выпало когда попробовал запросить PHP страницу (www.sabxp.myftp.org/test/install.php)

...ДА пробовал!

RaZEr
02.05.2002, 06:37
Ну блин, хз . Получается что (как написано) надо прописать в htaccess строку, но толку никакого :(

На локальной машине пробовал ? Работает ?

Dr@gon
02.05.2002, 06:54
Пробовал! Не работает!!!

RaZEr
02.05.2002, 07:28
ОК, я завтра поставлю ПХП под IIS посмотрю .

vts
02.05.2002, 14:11
Пропиши вручную php_iis_reg.inf, допиши исполнение php в mime.types