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

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску
 
Строка 1: Строка 1:
 
[[Категория:Solaris]]
 
[[Категория:Solaris]]
 
[[Категория:Nginx]]
 
[[Категория:Nginx]]
[[Категория:php]]
+
[[Категория:PHP]]
 
=Установка nginx+php на Solaris 10.=
 
=Установка nginx+php на Solaris 10.=
 
Задача: установить nginx+php на Solaris 10.
 
Задача: установить nginx+php на Solaris 10.

Текущая версия на 11:46, 24 июня 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 никаких сложностей не доставила.

./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 \

gmake gmake install