Jump to content

Centmin Mod (Nginx, MariaDB, PHP-FPM, CSF, APC) SSL And SPDY


Recommended Posts

Posted

I just recently setup my IPB boards with that setup and if enough people are interested in a blazing fast no-panel install like this:

Centmin Mod (Nginx, MariaDB, PHP-FPM, CSF, APC) SSL And SPDY with POP Outlook Live Domains for e-mail and piping.

I will take what documentation I did and turn it into a full fledged guide. I am an advocate of no-panel installs and management so I hope there is enough interest for me to go ahead with the guide.

MilitaryLz

Posted

I've never personally used Centmin myself, but Centmin successfully destroyed my dreams of creating my own software to do this a long time ago.

Seems to do literally everything I thought of implementing. Nginx + PHP-FPM installation with Google SPDY and Pagespeed support, and MariaDB. It even uses NSD, which very few people I know of other than myself actually use. Though I don't use CentOS (I'm a Debian user), Centmin still looks really impressive to me, better than anything I could probably do.

I'll probably still write my own config file management application for the learning experience and personal use eventually, I think I might install Centmin on a VM for inspiration whenever I do :tongue:

If you think people will find a guide for using Centmin useful though, go for it.

I had a rather in-depth Nginx + PHP-FPM guide up here before, which I've still been meaning to post an updated version of. I often push people on here who don't need them to abandon web panels as well, but I also like to encourage people to learn how to set all of this up themselves instead of using automated installation scripts without understanding anything the script is actually doing for them.

Posted

I had a rather in-depth Nginx + PHP-FPM guide up here before, which I've still been meaning to post an updated version of. I often push people on here who don't need them to abandon web panels as well, but I also like to encourage people to learn how to set all of this up themselves instead of using automated installation scripts without understanding anything the script is actually doing for them.

Indeed one of the dangers of automated scripts is the proper understanding of what you install and how it all comes together or even worse, forgetting what you already learnt :lol: Doesn't hurt to do both though learn the manual way and then use automated scripts and dig into their inner workings to understand how and why the automated script was put together in such a configuration etc :smile:

Oh, Centmin Mod how to install videos have been posted at https://blog.centminmod.com/304. First video is how to install preview for next .07 release. Second video is upcoming Phusion Passenger, Ruby, Node.js support for Centmin Mod and example node.js based NodeBB forum install how to.

MilitaryLz, looking forward to your IPB specific guide for Centmin Mod :smile:

  • 3 months later...
Posted

Very nice tutorial. I am almost convinced that I should leave Cpanel and Apache to try this better performance software.

What about Varnish? Does Centmin support it?

  • 2 weeks later...
Posted

Very nice tutorial. I am almost convinced that I should leave Cpanel and Apache to try this better performance software.

What about Varnish? Does Centmin support it?

Centmin Mod added Varnish Cache official YUM repo support a few versions back http://centminmod.com/changelog.html#123eva200004. So you can install Varnish Cache if you want, but configuring it for IP.Board and other web applications would be left up to you.

yum -q list varnish --enablerepo=varnish-3.0

FYI, Centmin Mod 1.2.3-eva2000.07 stable was just released today http://centminmod.com/changelog.html#123eva200007

  • 8 months later...
Posted

I've switched from Windows Server + IIS with an intel i7 4770 with 32 GB RAM and an SSD to a more humble intel C2750 with 8 GB Ram and SSD running CentOS with the Centmin Mod.

Still learning the tricks, but so far, no performance decrease at all. To be honest, i think it has improved, and i am looking to further improve speed, but i am waiting for the 4.0 release.

Just want to add something to the configuration of the FPM.conf file of @Kirito 's guide: if you are having trouble in setting the socket listening and nginx cannot be started, it's due to the recent PHP versions having corrected a security issue.

2014/05/03 13:27:41 [crit] 4202#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client: xx.xxx.xx.xx, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "xx.xx.xx.xx


Just check more about the security issue here: http://stackoverflow.com/questions/23443398/nginx-error-connect-to-php5-fpm-sock-failed-13-permission-denied

The solution in my case, was to uncomment and set these lines as follows on the php-fpm.conf:

listen.owner = nginx
listen.group = nginx

Restart both nginx and php-fpm and you should be good to go.

Posted

Hi, can anyone help me?

 

1) I am missing a directive in what concerns to html files. If i try to execute any IP Content html page like http://forumusica.com/offtopic.html i allways get a 404 error. I suppose this has to do with the "location"  directives regarding the html files.

Regarding the location directives i have the following:

 location / {
  try_files             $uri $uri/ /index.php;
  }

  # JM added 3
  location ~^(/page/).*(.php)$ {
        try_files  $uri $uri/ /index.php;}

 

2) I would like to get rid of the /index.php that appears in the address bar next to my domain name. How can i do it?
 

Posted

1) I am missing a directive in what concerns to html files. If i try to execute any IP Content html page like http://forumusica.com/offtopic.html i allways get a 404 error. I suppose this has to do with the "location"  directives regarding the html files.

Regarding the location directives i have the following:

​Replace the quoted configuration directives with the following,

    # Passing friendly URL rewrites.
    location / {
        try_files  $uri $uri/ /index.php;
    }
    # IP.Content Pages
    location ~^(/page/).*\.(php|phtml|htm|html)$ {
        try_files  $uri $uri/ /index.php;
    }

2) I would like to get rid of the /index.php that appears in the address bar next to my domain name. How can i do it?

​Enable rewrite rules in your AdminCP.

System Settings  >  System  >  Search Engine Optimization  >  Use .htaccess mod_rewrite

(It doesn't matter that you're not using Apache .htaccess rewrite rules, you still need to enable this setting).

Posted

@Kirito thank you a lot for your help, but still not working.

Cannot get pages:

http://forumusica.com//offtopic.html working (for example). It is redirecting it to http://forumusica.com/index.php/offtopic.html and got 404 error.

Regarding the use .htaccess mod_rewrite i had it already set to yes. But i suspect it has to do with the URL Type: i have it set to "path info".. i'll try "Query String" to see what happens.

your .html rewritten extensions are getting caught by Centmin Mod's include file at /usr/local/nginx/conf/staticfiles.conf solution ​https://community.centminmod.com/threads/404-not-found-permalink-error-on-wordpress.1262/#post-5592

  • 1 month later...
  • 3 months later...
Posted

Wee, I'm happy to see my old guide was found useful enough to be referenced here. I like feeling useful.

Are there any changes to your guide necessary / recommended for use with IPS Community Suite 4?

I am in the process of moving to a Linode 2GB SSD VPS, am looking to get away from cPanel, and am investigating all of my options. I will admit upfront that I know very little about configuring a Linux server. At the same time, playing around in Terminal has me reminiscing about my old TRS-80 / Apple ][ / MS-DOS days. :rofl:

How does Centmin compare to VESTA or ServerPilot as far as optimization and security are concerned? I can live without their pretty interfaces if I know I'm making a better choice. I do like the fact that VESTA includes mail right out of the box. Is Roundcube or similar something that can be added to Centmin's LEMP stack?

Thanks!

Posted

Cenminmod is good but you must configure a lot by hand.....

Also it does not support any related mail client software so you have to install and configure it by yourself...

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...