Jump to content

nginX + PHP-FPM stack on a Cpanel powered server

Featured Replies

Posted

http://cpxstack.sysally.net/

came across this last night and decided to try it, still testing/learning but so far extremely simple to install and use.

I like that site owner can choose the method to use.

  • Author

going to try microcaching on this (I am bored) but so far pretty happy. instead of moving to another panel that used nginx I can keep cpanel (easier for the few I host for) use nginx OR apache wherever needed.

not sure how well this would work on large sites/servers but it seems good for me.

the stock ip htaccess rewrite rules I ran through a converter and they are working right too.

How do you install incron? lol. I am confused...

  • Author

it did it automatically for me, it failed first time then reran the installer and good to go

errr both times I tried failed... wtheck.

I dont have it installed and theres NOTHING out there? wow

  • Author

what is server setup?

really took me 10 minutes

  • Author

you do have a /opt directory and cpanel 11.31 or higher right?

Yes I have cpanel 11.31, and an /opt

the problem is I use centos and i dont have Incron and theres no direction anywhere!

  • Author

I use centos also, cent 6.4 x64.

it installed incron for me.

what error is given?

Meh its ok, I theres too many errors. Ill just install nginx to work with apache :)

  • Author

I used nginx proxied to apache for a bit, like this setup better as I can use apache where needed.

odd though, installed easily for me.

I did have to chmod one folder so installer worked, forget what one now.

Ya thats weird,

I had all sorts of errors, I followed the instructions to the T. :unsure:

  • Author

they will install it for 10$

IMO its worth trying.

isn't 11.31 end of life?

11.36.0.21 is stable and 11.36.1.5 is release now.

wonder if there is maybe whm issue.

Aye, its ok. Nginx and apache work pretty good. I dont have a busy site anyways :)

  • Author

I want to see if I can put varnish in front of it sometime :)

I mess around way too much LOL

  • 3 weeks later...

Just as a bump were not running CpxStack + APC instead of unixy varnish on mazda626.net and results are pretty awesome

Performance seems to be really fantastic. Varnish infront of Nginx for guests would be awesome, althought having layers of proxies certainly gets a little more complicated.

I think I'm going to try to play with nginx cache first.

  • Author

cpxstack worked very well for me on cpanel. wish they did a directadmin version.

Hey Dmacleo,

How do you get ioncube to work on nginx? I was able to get it installed,

But I get this error

Site error: the file applications_addon/ips/nexus/sources/ads.php requires the ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the website operator. If you are the website operator please use the ionCube Loader Wizard to assist with installation.

Actually I was able to follow the directions found here,

http://manage.piserve.com/projects/45/wiki/Documentation

Adding ioncube loaders

Download ioncube loaders matching your OS and arch

wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz

I needed it installed for the PHP 5.4.11 version ;so
mv ioncube/ioncube_loader_lin_5.4.so /opt/pifpm/php-5.4.11/lib/

and edit the php.ini file /opt/pifpm/php-5.4.11/lib/php.ini and add line below towards the end
zend_extension = /opt/pifpm/php-5.4.11/lib/ioncube_loader_lin_5.4.so

Restart the PHP-FPM daemon for the PHP version
/etc/init.d/php-fpm-5.4.11 restart

  • Author

yup its that easy :smile:

iirc (I am on directadmin right now so cannot verify) for the extensions I pointed to my existing php extension directory for the ioncube loaders.

I noticed pone thing though, even after installing it, apache was still running. I had to stop apache from running. :

  • Author

yeah thats so if you want other sites on apache it will work. I saw almost zero resource usage though with it running.

have to say I am almost ready to pay the fee to cpanel to go back to this, the ability to run sites on whatever I wanted was extremely useful to me.

I need to get off my butt and practice though with pure cmd line admin.

Yea I did pure cmd, but hosting multiple sites on cpanel and allowing the user to have access makes it sooooo much easier.

  • Author

yeah it does, tradeoffs I guess. have to balance out your needs. with the cpxpanel I could run clipbucket on one domain on apache (older script so apache was better) while nginx php-fpm for ip board.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.