Current time: 11-22-2024, 02:13 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 5 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ispCP & nginx
Author Message
GioMac Offline
Junior Member
*****
Dev Team

Posts: 43
Joined: Mar 2008
Reputation: 0
Post: #102
RE: ispCP & nginx
data-stream_ru
По default ставится оба, ну, в RHEL/CentOS/Fedora так...
Надо только тут приглядется: /etc/sysconfig/httpd
Code:
# Configuration file for the httpd service.

#
# The default processing model (MPM) is the process-based
# 'prefork' model.  A thread-based model, 'worker', is also
# available, but does not work with some modules (such as PHP).
# The service must be stopped before changing this variable.
#
HTTPD=/usr/sbin/httpd.worker

#
# To pass additional options (for instance, -D definitions) to the
# httpd binary at startup, set OPTIONS here.
#
#OPTIONS=

#
# By default, the httpd process is started in the C locale; to
# change the locale in which the server runs, the HTTPD_LANG
# variable can be set.
#
#HTTPD_LANG=C

Насчет подвисания - такого пока не слыхал, но при сбое убьет все вышестоящие процессы, такое бывало не раз, особенно при "чертзнаетоткудавзялэтотпакетпростопостабил" случаях.

В воркере php можно пустить через fastcgi или fcgid (более современный вариант):

fcgid.conf:
Code:
LoadModule fcgid_module modules/mod_fcgid.so

# Use FastCGI to process .fcg .fcgi & .fpl scripts
AddHandler fcgid-script fcg fcgi fpl

# Sane place to put sockets and shared memory file
FcgidIPCDir /var/run/mod_fcgid
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm

fcgid_ispcp.conf (в комплекте с isp-control):
Code:
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  IdleTimeout 600
  IdleScanInterval 120
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 3
  ZombieScanInterval 3
  ProcessLifeTime 900
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 200
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 1
  IPCConnectTimeout 900
  IPCCommTimeout 900
  MaxRequestsPerProcess 500
</IfModule>

Этого достаточно чтобы модуль загрузился в апаче, дальше идет виртуалхост, заметтье отстуствие модуля php вообще, ни одной строки про php, ispcp.conf (часть):
Code:
<IfModule mod_fcgid.c>
        <Directory /var/www/virtual/some.com/htdocs>
            FCGIWrapper /var/www/fcgi/some.com/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/some.com">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

обратите внимание на третъю строку в файле выше, он ведет сюда:

Code:
/var/www/fcgi/some.com:
total 8
drwxr-x--- 2 vu2015 vu2015 4096 2010-03-27 21:38 php5
-rwxr-x--- 1 vu2015 vu2015  197 2010-03-27 16:36 php5-fcgi-starter

/var/www/fcgi/some.com/php5:
total 96
-rw-r--r-- 1 root root 45833 2010-03-27 21:38 php.ini

Тут у нас в принципе врапер который ведет к php-cgi:
Code:
#!/bin/sh

umask 022

PHPRC="/var/www/fcgi/some.com/php5/"
export PHPRC

TMPDIR="/var/www/virtual/some.com/phptmp"
export TMPDIR

PHP_FCGI_CHILDREN=2
export PHP_FCGI_CHILDREN

exec /usr/bin/php-cgi

заметтье что к виртуалхосту присобачен свой личный php.ini - там можно оградитъ действия php в директорий во многом, это безопасность на шаг вперед, также это дает возможность индивидуального манипулирования...

Вот и все...
(This post was last modified: 03-28-2010 10:58 AM by GioMac.)
03-28-2010 10:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
ispCP & nginx - data-stream_ru - 11-04-2009, 12:50 PM
RE: ispCP & nginx - server801 - 11-04-2009, 08:26 PM
RE: ispCP & nginx - data-stream_ru - 11-07-2009, 02:33 PM
RE: ispCP & nginx - server801 - 11-07-2009, 09:05 PM
RE: ispCP & nginx - koffu - 01-09-2010, 11:10 AM
RE: ispCP & nginx - data-stream_ru - 01-11-2010, 01:45 AM
RE: ispCP & nginx - server801 - 01-09-2010, 04:54 PM
RE: ispCP & nginx - koffu - 01-09-2010, 10:53 PM
RE: ispCP & nginx - koffu - 01-10-2010, 10:12 AM
RE: ispCP & nginx - server801 - 01-10-2010, 11:32 PM
RE: ispCP & nginx - koffu - 01-10-2010, 11:37 PM
RE: ispCP & nginx - server801 - 01-11-2010, 12:40 AM
RE: ispCP & nginx - koffu - 01-11-2010, 06:47 AM
RE: ispCP & nginx - server801 - 01-11-2010, 07:40 AM
RE: ispCP & nginx - koffu - 01-11-2010, 07:47 AM
RE: ispCP & nginx - koffu - 01-12-2010, 04:30 PM
RE: ispCP & nginx - data-stream_ru - 01-14-2010, 01:23 AM
RE: ispCP & nginx - data-stream_ru - 01-16-2010, 10:29 PM
RE: ispCP & nginx - koffu - 01-17-2010, 08:10 PM
RE: ispCP & nginx - Kursor - 01-26-2010, 12:30 AM
RE: ispCP & nginx - koffu - 01-26-2010, 01:55 AM
RE: ispCP & nginx - koffu - 01-26-2010, 04:44 AM
RE: ispCP & nginx - marchaos - 01-26-2010, 04:58 AM
RE: ispCP & nginx - koffu - 01-26-2010, 05:02 AM
RE: ispCP & nginx - marchaos - 01-26-2010, 05:41 AM
RE: ispCP & nginx - Kursor - 01-26-2010, 06:07 AM
RE: ispCP & nginx - Kursor - 01-26-2010, 06:20 AM
RE: ispCP & nginx - koffu - 01-26-2010, 06:45 AM
RE: ispCP & nginx - Kursor - 01-26-2010, 07:15 AM
RE: ispCP & nginx - koffu - 01-26-2010, 07:23 AM
RE: ispCP & nginx - Kursor - 01-26-2010, 07:33 AM
RE: ispCP & nginx - koffu - 01-26-2010, 07:38 AM
RE: ispCP & nginx - koffu - 01-27-2010, 07:11 PM
RE: ispCP & nginx - koffu - 01-28-2010, 08:44 AM
RE: ispCP & nginx - data-stream_ru - 01-30-2010, 07:42 PM
RE: ispCP & nginx - koffu - 01-31-2010, 08:30 AM
RE: ispCP & nginx - data-stream_ru - 02-01-2010, 02:53 PM
RE: ispCP & nginx - koffu - 02-01-2010, 06:57 PM
RE: ispCP & nginx - data-stream_ru - 02-01-2010, 08:44 PM
RE: ispCP & nginx - koffu - 02-03-2010, 08:59 AM
RE: ispCP & nginx - data-stream_ru - 02-03-2010, 09:30 PM
RE: ispCP & nginx - koffu - 02-05-2010, 07:56 AM
RE: ispCP & nginx - data-stream_ru - 02-05-2010, 06:30 PM
RE: ispCP & nginx - data-stream_ru - 02-12-2010, 04:53 PM
RE: ispCP & nginx - data-stream_ru - 02-12-2010, 06:09 PM
RE: ispCP & nginx - data-stream_ru - 02-12-2010, 10:18 PM
RE: ispCP & nginx - data-stream_ru - 02-12-2010, 11:34 PM
RE: ispCP & nginx - koffu - 02-13-2010, 12:44 AM
RE: ispCP & nginx - data-stream_ru - 02-13-2010, 01:53 AM
RE: ispCP & nginx - koffu - 02-13-2010, 01:59 AM
RE: ispCP & nginx - data-stream_ru - 02-13-2010, 02:56 AM
RE: ispCP & nginx - data-stream_ru - 02-13-2010, 05:29 AM
RE: ispCP & nginx - data-stream_ru - 02-13-2010, 07:12 AM
RE: ispCP & nginx - data-stream_ru - 02-13-2010, 12:53 PM
RE: ispCP & nginx - koffu - 02-13-2010, 06:52 PM
RE: ispCP & nginx - data-stream_ru - 02-14-2010, 01:40 AM
RE: ispCP & nginx - data-stream_ru - 02-15-2010, 07:07 AM
RE: ispCP & nginx - data-stream_ru - 02-17-2010, 08:06 PM
RE: ispCP & nginx - koffu - 02-18-2010, 08:21 AM
RE: ispCP & nginx - data-stream_ru - 02-18-2010, 09:23 PM
RE: ispCP & nginx - koffu - 02-18-2010, 09:25 PM
RE: ispCP & nginx - data-stream_ru - 02-19-2010, 07:43 AM
RE: ispCP & nginx - data-stream_ru - 02-22-2010, 06:36 AM
RE: ispCP & nginx - data-stream_ru - 02-23-2010, 11:27 AM
RE: ispCP & nginx - marchaos - 02-26-2010, 04:48 AM
RE: ispCP & nginx - data-stream_ru - 02-26-2010, 07:49 AM
RE: ispCP & nginx - marchaos - 02-26-2010, 06:03 PM
RE: ispCP & nginx - server801 - 02-27-2010, 05:27 AM
RE: ispCP & nginx - koffu - 02-27-2010, 07:11 AM
RE: ispCP & nginx - SolarW - 02-27-2010, 07:29 AM
RE: ispCP & nginx - data-stream_ru - 02-27-2010, 09:05 AM
RE: ispCP & nginx - SolarW - 02-28-2010, 09:33 AM
RE: ispCP & nginx - marchaos - 02-27-2010, 10:14 AM
RE: ispCP & nginx - data-stream_ru - 02-27-2010, 10:56 AM
RE: ispCP & nginx - marchaos - 02-27-2010, 11:03 AM
RE: ispCP & nginx - data-stream_ru - 02-27-2010, 11:57 PM
RE: ispCP & nginx - data-stream_ru - 02-28-2010, 01:30 AM
RE: ispCP & nginx - koffu - 03-01-2010, 06:28 AM
RE: ispCP & nginx - server801 - 03-01-2010, 06:38 AM
RE: ispCP & nginx - data-stream_ru - 03-02-2010, 11:45 AM
RE: ispCP & nginx - data-stream_ru - 03-02-2010, 12:45 PM
RE: ispCP & nginx - data-stream_ru - 03-02-2010, 01:47 PM
RE: ispCP & nginx - data-stream_ru - 03-02-2010, 03:01 PM
RE: ispCP & nginx - data-stream_ru - 03-02-2010, 09:49 PM
RE: ispCP & nginx - server801 - 03-03-2010, 02:32 AM
RE: ispCP & nginx - data-stream_ru - 03-03-2010, 04:44 PM
RE: ispCP & nginx - data-stream_ru - 03-04-2010, 03:18 AM
RE: ispCP & nginx - data-stream_ru - 03-04-2010, 04:59 PM
RE: ispCP & nginx - data-stream_ru - 03-04-2010, 06:27 PM
RE: ispCP & nginx - koffu - 03-11-2010, 11:01 PM
RE: ispCP & nginx - data-stream_ru - 03-12-2010, 02:11 AM
RE: ispCP & nginx - GioMac - 03-16-2010, 07:31 AM
RE: ispCP & nginx - marchaos - 03-16-2010, 07:40 AM
RE: ispCP & nginx - GioMac - 03-16-2010, 08:19 AM
RE: ispCP & nginx - koffu - 03-18-2010, 10:19 PM
RE: ispCP & nginx - GioMac - 03-19-2010, 11:55 PM
RE: ispCP & nginx - data-stream_ru - 03-19-2010, 12:26 AM
RE: ispCP & nginx - data-stream_ru - 03-20-2010, 09:38 AM
RE: ispCP & nginx - data-stream_ru - 03-20-2010, 10:45 PM
RE: ispCP & nginx - data-stream_ru - 03-26-2010, 06:06 PM
RE: ispCP & nginx - GioMac - 03-28-2010 10:57 AM
RE: ispCP & nginx - data-stream_ru - 03-28-2010, 06:44 PM
RE: ispCP & nginx - GioMac - 03-28-2010, 07:00 PM
RE: ispCP & nginx - server801 - 03-28-2010, 09:49 PM
RE: ispCP & nginx - data-stream_ru - 03-29-2010, 12:45 AM
RE: ispCP & nginx - GioMac - 03-29-2010, 05:21 AM
RE: ispCP & nginx - mad max - 03-29-2010, 05:15 AM
RE: ispCP & nginx - data-stream_ru - 03-29-2010, 09:31 AM
RE: ispCP & nginx - TTP - 05-04-2010, 10:02 PM
RE: ispCP & nginx - server801 - 03-29-2010, 07:26 AM
RE: ispCP & nginx - GioMac - 03-29-2010, 08:51 AM
RE: ispCP & nginx - data-stream_ru - 05-01-2010, 04:02 AM
RE: ispCP & nginx - server801 - 05-01-2010, 08:13 PM
RE: ispCP & nginx - data-stream_ru - 05-04-2010, 01:27 AM
RE: ispCP & nginx - data-stream_ru - 05-06-2010, 08:35 AM
RE: ispCP & nginx - TTP - 05-06-2010, 05:45 PM
RE: ispCP & nginx - koffu - 06-03-2010, 06:42 PM
RE: ispCP & nginx - koffu - 07-28-2010, 02:46 AM
RE: ispCP & nginx - data-stream_ru - 07-28-2010, 04:07 PM
RE: ispCP & nginx - DragonZX - 08-27-2010, 07:13 AM
RE: ispCP & nginx - data-stream_ru - 08-27-2010, 07:23 PM
RE: ispCP & nginx - koffu - 07-28-2010, 05:05 PM
RE: ispCP & nginx - koffu - 08-27-2010, 11:29 PM
RE: ispCP & nginx - koffu - 08-28-2010, 01:19 AM
RE: ispCP & nginx - DragonZX - 08-28-2010, 03:49 AM
RE: ispCP & nginx - koffu - 08-29-2010, 02:01 AM
RE: ispCP & nginx - koffu - 09-03-2010, 12:42 AM
RE: ispCP & nginx - server801 - 09-03-2010, 02:17 AM
RE: ispCP & nginx - koffu - 09-07-2010, 10:15 PM
RE: ispCP & nginx - DragonZX - 09-09-2010, 06:47 PM
RE: ispCP & nginx - koffu - 09-09-2010, 10:24 PM
RE: ispCP & nginx - koffu - 09-17-2010, 11:01 PM
RE: ispCP & nginx - Enkil - 09-21-2010, 06:08 AM
RE: ispCP & nginx - koffu - 09-21-2010, 06:48 AM
RE: ispCP & nginx - Enkil - 09-21-2010, 08:06 AM
RE: ispCP & nginx - Enkil - 09-21-2010, 09:47 AM
RE: ispCP & nginx - koffu - 09-21-2010, 04:19 PM
RE: ispCP & nginx - Enkil - 09-22-2010, 08:09 AM
RE: ispCP & nginx - koffu - 09-22-2010, 08:36 AM
RE: ispCP & nginx - server801 - 09-22-2010, 06:40 PM
RE: ispCP & nginx - DragonZX - 09-22-2010, 11:55 PM
RE: ispCP & nginx - koffu - 09-23-2010, 03:37 AM
RE: ispCP & nginx - Enkil - 09-26-2010, 06:34 AM
RE: ispCP & nginx - koffu - 09-30-2010, 04:33 AM
RE: ispCP & nginx - DragonZX - 09-30-2010, 05:50 AM
RE: ispCP & nginx - alt - 10-11-2010, 05:10 PM
RE: ispCP & nginx - data-stream_ru - 09-23-2010, 09:42 AM
RE: ispCP & nginx - Enkil - 09-30-2010, 05:53 AM
RE: ispCP & nginx - koffu - 09-30-2010, 06:48 AM
RE: ispCP & nginx - DragonZX - 09-30-2010, 07:37 AM
RE: ispCP & nginx - Enkil - 09-30-2010, 06:06 PM
RE: ispCP & nginx - DragonZX - 09-30-2010, 06:34 PM
RE: ispCP & nginx - Enkil - 09-30-2010, 07:21 PM
RE: ispCP & nginx - DragonZX - 09-30-2010, 09:40 PM
RE: ispCP & nginx - Enkil - 09-30-2010, 10:45 PM
RE: ispCP & nginx - koffu - 10-09-2010, 01:14 AM
RE: ispCP & nginx - DragonZX - 10-01-2010, 12:29 AM
RE: ispCP & nginx - Enkil - 10-01-2010, 02:22 AM
RE: ispCP & nginx - DragonZX - 10-01-2010, 02:38 AM
RE: ispCP & nginx - outbackdingo - 10-01-2010, 12:20 PM
RE: ispCP & nginx - DragonZX - 10-01-2010, 04:29 PM
RE: ispCP & nginx - alt - 10-08-2010, 09:06 PM
RE: ispCP & nginx - DragonZX - 10-12-2010, 10:25 PM
RE: ispCP & nginx - server801 - 10-12-2010, 11:42 PM
RE: ispCP & nginx - DragonZX - 10-13-2010, 12:32 AM
RE: ispCP & nginx - data-stream_ru - 10-25-2010, 02:49 PM
RE: ispCP & nginx - data-stream_ru - 02-21-2011, 11:37 PM
RE: ispCP & nginx - server801 - 02-23-2011, 07:41 AM
RE: ispCP & nginx - koffu - 03-01-2011, 10:18 PM
RE: ispCP & nginx - koffu - 09-21-2011, 10:13 PM
RE: ispCP & nginx - DragonZX - 09-22-2011, 12:39 AM

Forum Jump:


User(s) browsing this thread: 5 Guest(s)