US: +1 561 2500001/EU: +359 2 4925555 LiveChat
[email protected] Sign Up Login
ITLDC
  • SSD VDS
  • HD VDS
  • Серверы
  • Хостинг
  • Поддержка
  • Блог
  • Контакт
  • [EN]
  • [UA]
  • SSD VDS
  • HD VDS
  • Серверы
  • Хостинг
  • Поддержка
  • Блог
  • Контакт
  • [EN]
  • [UA]

Быстро готовим сервер с Centos 6, ISPManager и FastCGI

Быстро готовим сервер с Centos 6, ISPManager и FastCGI

Окт 25, 2012DmytroСистемному администратору

Мы используем данную последовательность действий буквально каждый день — Centos является очень популярным дистрибутивом, да и мы рекомендуем обычно именно его.

Итак, после инсталляции мы имеем чистую операционную систему с базовым набором приложений. Выключаем SELinux (редактируем /etc/selinux/config, ставим SELINUX=disabled), перезагружаемся.

Если нет желания перезагружаться, делаем отключение SELinux в командной строке:

Shell
1
setenforce 0
Включаем репозитрий Atomic, ставим панель и сопутствующий софт (php 5.3 и т.п., лишнее можно или не ставить, или затем выключить):
Shell
1
2
3
4
5
6
7
8
9
; выполнять лучше по одной команде
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
wget -q -O /tmp/install.sh http://download.ispsystem.com/install.sh
sh /tmp/install.sh
yum -y install php-eaccelerator
yum -y install php-ioncube-loader
yum -y install mod_fcgid
yum -y install php-xml
/usr/local/ispmgr/sbin/pkgctl cache
Если будет использоваться fast-cgi, стоит поправить php.ini, сделать симлинк /etc/php.ini в /etc/php.d/php.ini и несколько подкорректировать конфигурацию apache:
Shell
1
2
3
echo 'cgi.fix_pathinfo = 1' >> /etc/php.ini
ln -s /etc/php.ini /etc/php.d/php.ini
sed -i 's/^LoadModule/# LoadModule/g' /etc/httpd/conf.d/fcgid.conf
Добавляем в /etc/httpd/conf/httpd.conf где-то после загрузки mod_version.o:
Shell
1
2
3
4
5
6
7
8
9
10
11
12
13
LoadModule fcgid_module modules/mod_fcgid.so
AddHandler fcgid-script fcg fcgi fpl
FcgidIPCDir /var/run/mod_fcgid
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidIOTimeout 30
FcgidMaxProcesses 100
FcgidMaxProcessesPerClass 30
FcgidIdleTimeout 30
FcgidMinProcessesPerClass 2
FcgidMaxRequestsPerProcess 500
FcgidProcessLifeTime 600
FcgidMaxRequestLen 15728640
MaxRequestLen 15728640
В случае использования дискового кэширования в eAccelerator следует сделать
Shell
1
chmod 777 /var/cache/php-eaccelerator
Если будет использоваться nginx в качестве фронтэнда, следует изменить права на домашний каталог, чтобы статика отдавалась без ошибок 403:
Shell
1
chmod 755 /usr/local/ispmgr/etc/www.skel
Tags: centos,  fastcgi,  ispmanager
Related Posts
  • 🚀 Time to ELevate: Say Goodbye to CentOS 6/7 and Hello to AlmaLinux 9/10

  • Новый дизайн ISPManager!

  • Выпущен Centos 8

  • Как «растянуть» файловую систему VDS после смены тарифа без потери данных?

Восстановление доступа к mysql →

Recent Posts

  • 🚀 Time to ELevate: Say Goodbye to CentOS 6/7 and Hello to AlmaLinux 9/10
    🚀 Time to ELevate: Say Goodbye to CentOS 6/7 and Hello to AlmaLinux 9/10

    So, your server is still running CentOS...

  • 🐬 5 Modern MySQL-Compatible Databases Worth Knowing
    🐬 5 Modern MySQL-Compatible Databases Worth Knowing

    These days, saying “I’m using MySQL” is...

  • 🛠️ Mission Complete: NL Datacenter Maintenance Report!
    🛠️ Mission Complete: NL Datacenter Maintenance Report!

    Last week, while most people were enjoyi...

  • Disk Usage 🧮  in Linux: Tools, Tips, and That One Mysterious 20GB Log File
    Disk Usage 🧮 in Linux: Tools, Tips, and That One Mysterious 20GB Log File

    You’re running your awesome website, cru...

  • OpenSSH 10.0 Released – New Tricks for Your Trusted Terminal Buddy
    OpenSSH 10.0 Released – New Tricks for Your Trusted Terminal Buddy

    TL;DR: OpenSSH just hit version 10.0, an...

  • 🛠️ DUS Datacenter Maintenance Complete: New Servers In!
    🛠️ DUS Datacenter Maintenance Complete: New Servers In!

    Guten Tag, liebe Hosting-Freunde! 🇩🇪 Gue...

  • Bash Process Management: How to Tame Your Shell Like a Pro
    Bash Process Management: How to Tame Your Shell Like a Pro

    Running Linux commands is cool. Running...

  • 🚀 Beyond Nginx: Exploring the Best Lightweight Web Servers for PHP & HTTPS
    🚀 Beyond Nginx: Exploring the Best Lightweight Web Servers for PHP & HTTPS

    Nginx has long been the go-to web server...

US/APAC Support

ITLDC

PO Box #800054
Aventura
FL 33280
USA

+1 561 2500001

[email protected]

EU Support

Smart Industries LLC

187E Warm Springs Rd B218
Las Vegas
NV 89119
USA

+1 561 2500001

[email protected]

Services

  • SSD VDS
  • Dedicated Servers
  • Shared Hosting
  • Colocation
  • DDoS Protection
  • SSL Certificates
  • Backup Storage
  • Reselling

Support

  • Get Help
  • ITLDC Status
  • Looking Glass
  • Our SLA
  • Datacenters
  • FAQ & Knowledgebase
  • Data Security
  • Contact us

© Copyright 1995-2019 ITLDC Team. You can freely use or share information from this site with a hyperlink to the original page.