Показать полную графическую версию : apache php fastcgi
кто может подробно расказать что это такое,
будет ли, при оговоренной конфигурации, php работать, как модуль если нет, то какие плюсы и минусы,
и как это настроить?:)
php 4.4.4/5
apache 1.3
E-mail http://www.fastcgi.com/ welcome :)
Sham я был там, вопрос к людям;) а не к гуглу, в гугле я и так:)
есть что своими словами к ссылке добавить по теме?
спасибо
E-mail http://www.fastcgi.com/docs/faq.html
а там не люди чтоль? :) там есть все, что тебе надо... если перевести надо, так и скажи :)
p.s. это не из гугля, а из FAQа апачей...
будет ли, при оговоренной конфигурации, php работать, как модуль
ничего не понял. Какой конфигурации?
Apache/1.3.37 (Unix) PHP/5.1.6 with Suhosin-Patch с mod_php
php
'./configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--enable-spl' '--enable-pty' '--program-prefix=' '--enable-force-cgi-redirect' '--enable-fastcgi' '--with-apxs=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--disable-ipv6' '--prefix=/usr/local' 'i386-portbld-freebsd6.1'
загруженные модули apache
mod_php5, mod_setenvif, mod_so, mod_log_forensic, mod_usertrack, mod_headers, mod_expires, mod_cern_meta, mod_proxy, mod_digest, mod_auth_db, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_speling, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_mime_magic, mod_log_config, mod_env, mod_vhost_alias, mod_mmap_static, http_core
При этом еще стоит
lighttpd/1.4.11, вот он с Fast-CGI
vadimiron
13-11-2006, 00:35
будет ли, при оговоренной конфигурации, php работать, как модуль
А как они могут работать вместе? Апач передаёт контроль ПХП либо по интерфейсу модуля, либо по интерфейсу CGI
Выбор между ними - цитата:
There are many ways to run PHP. FastCGI and mod_php are two of the most commonly used approaches. Most people are using mod_php because that is the default on nearly all Linux distributions. With mod_php, PHP runs as an Apache module and as a result, all PHP applications are executed with the privileges of Apache.
When using FastCGI, the web applications can run under different privileges than that of Apache. Hence, FastCGI is often used on shared hosts to provide additional security. Using FastCGI you can prevent that other users on the system, can read or write your files. The downside, however, is that FastCGI has an additional performance cost.
So when choosing between mod_php or FastCGI, you are making a trade-off between security and performance. The figure below shows the relative performance of the two approaches, and can help you understand the trade-off. When switching from mod_php to FastCGI we observe a 63% slowdown for anonymous visitors, and a 18% slowdown for authenticated visitors.
http://buytaert.net/images/drupal/drupal-4.7-fastcgi-vs-mod_php.jpg
Тем более, это для апача есть ПХП-модуль, для других вебсерверов такого нет, поэтому используют CGI
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.
Available in ZeroNet 1osznRoVratMCN3bFoFpR2pSV5c9z6sTC