Solaris nginx php fcgi: различия между версиями

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску
Строка 6: Строка 6:
 
{{Root|<nowiki>for PKG in `pkg-get -a | grep php5 | awk '{ print $1 }'`; do pkg-get -f -i $PKG; done</nowiki>}}
 
{{Root|<nowiki>for PKG in `pkg-get -a | grep php5 | awk '{ print $1 }'`; do pkg-get -f -i $PKG; done</nowiki>}}
 
pkg-add сам разрешает все зависимости.
 
pkg-add сам разрешает все зависимости.
  +
  +
spawn-fcgi -f /opt/csw/php5/bin/php-cgi -a 127.0.0.1 -p 10080 -C 30 -P /var/run/spawn-fcgi.pid -u nginx -g nginx
   
 
==nginx==
 
==nginx==

Версия 12:31, 22 июня 2010

Установка nginx+php на Solaris 10.

Задача: установить nginx+php на Solaris 10.

php

PHP имеется в репозитории ibiblio.org.
По-тому с помошью простенького скрипта устанавливаю все, что связано с php

for PKG in `pkg-get -a | grep php5 | awk '{ print $1 }'`; do pkg-get -f -i $PKG; done

pkg-add сам разрешает все зависимости.

spawn-fcgi -f /opt/csw/php5/bin/php-cgi -a 127.0.0.1 -p 10080 -C 30 -P /var/run/spawn-fcgi.pid -u nginx -g nginx

nginx

Сборка nginx никаких сложностей не доставила.

<nowiki>

./configure --with-libatomic --with-md5-asm --with-pcre --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module

 253  ./configure  --with-md5-asm  --with-pcre  --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module  --with-http_image_filter_module --with-http_geoip_module  --with-http_sub_module --with-http_dav_module --with-http_flv_module  --with-http_gzip_static_module   --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module
<nowiki>

gmake gmake install