cPanel cpXstack

InstallationSoftware and Hardware Requirements:

Atleast 500 Mb free space on your drive containing /opt (usually /)
Cpanel version 11.31 or greater
Incron
bzip2
Devel packages to compile PHP from source

The installer will install nginX from the official nginX yum repo and incron from the EPEL repo . PHP and cpXstack files will be installed to /opt/pifpm directory . cpXstack will take some time to install depending on your hardware and other factors like number of accounts . It is strongly advised that you perform the install in a screen session

screen -S cpXstack
wget http://sysally.net/pifpm/cpxstack.sh
chmod a+x cpxstack.sh
./cpxstack.sh install

Troubleshooting

cpXstack works on filesystem events generated by cpanel software. The first thing to check if you notice a problem will be the status of incron .

root@cpanel2 [/opt/pifpm/scripts]# ps aux|grep incron|grep -v grep
root 6817 0.0 0.0 14080 724 ? Ss 08:52 0:00 incrond

At any time you can regenerate a users config files by running the following command from the commandline

cd /opt/pifpm/scripts
./looper.sh USERNAME

Where USERNAME is the cpanel username For any domain that has nginX+PHP-FPM enabled . Additional nginX configuration can be added by the root user at

/opt/pifpm/nginx.include.d/DOMAINNAME.autoinclude

where DOMAINNAME is the domain .Ensure that the configuration you are adding to .autoinclude files are error proof ;otherwise nginX will fail to start PHP-FPM custom pool file edits in /opt/pifpm/phpfpm.pool.d/ will be preserved . The cpXstack upgrade process preserves custom changes made to php.ini files as well

You may also like...

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir