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

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску
 
(не показано 5 промежуточных версий этого же участника)
Строка 1: Строка 1:
  +
[[Категория:Solaris]]
  +
[[Категория:Nginx]]
  +
[[Категория:PHP]]
 
=Установка nginx+php на Solaris 10.=
 
=Установка nginx+php на Solaris 10.=
 
Задача: установить nginx+php на Solaris 10.
 
Задача: установить nginx+php на Solaris 10.
Строка 6: Строка 9:
 
{{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==
 
Сборка nginx никаких сложностей не доставила.
 
Сборка nginx никаких сложностей не доставила.
{{Command|<nowiki>
+
{{Root|<nowiki>./configure \
  +
--with-libatomic \
./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
 
  +
--with-md5-asm \
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
 
  +
--with-pcre \
<nowiki>}}
 
  +
--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
 
gmake install
 
gmake install

Текущая версия на 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