Jump to content

Anyone running Nginx? PHP-FPM 7.0


Recommended Posts

I thought before moving over to Nginx that enough people were using it there would be a configuration available. Using an online converter for the config as offered by WHMCS Support led to the Knowledgebase not working.

If anyone has WHMCS 7.3 running on NGINX with PHP-FPM 7.0 and could share the config, that would be fantastic?

 

Thanks.

Link to comment
Share on other sites

After spending all morning troubleshooting this, I finally settled on the below in my nginx.conf which appears to be working flawlessly.

 

        # WHMCS CONFIG
         
        location ~ /account/announcements/?(.*)$ {
            rewrite ^/(.*)$ /account/index.php?rp=/announcements/$1;
        }
        
        location ~ /account/downloads/?(.*)$ {
            rewrite ^/(.*)$ /account/index.php?rp=/downloads/$1;
        }
        
        location ~ /account/knowledgebase/?(.*)$ {
            rewrite ^/(.*)$ /account/index.php?rp=/knowledgebase/$1;
        }    
    
        # END WHMCS CONFIG

Will update if I have any problems.

 

Working fine October 2017 with WHMCS 7.3

 

Link to comment
Share on other sites

  • 2 months later...
On 10/9/2017 at 1:40 PM, arctic-ice-cool said:

After spending all morning troubleshooting this, I finally settled on the below in my nginx.conf which appears to be working flawlessly.

 


        # WHMCS CONFIG
         
        location ~ /account/announcements/?(.*)$ {
            rewrite ^/(.*)$ /account/index.php?rp=/announcements/$1;
        }
        
        location ~ /account/downloads/?(.*)$ {
            rewrite ^/(.*)$ /account/index.php?rp=/downloads/$1;
        }
        
        location ~ /account/knowledgebase/?(.*)$ {
            rewrite ^/(.*)$ /account/index.php?rp=/knowledgebase/$1;
        }    
    
        # END WHMCS CONFIG

Will update if I have any problems.

WHERE EXACTLY YOU PUT THIS IN YOUR NGINX FILE?

Working fine October 2017 with WHMCS 7.3

THANK YOU!

COSMIC

 

Link to comment
Share on other sites

I've just checked as it's been a while since I did it, it's placed directly between the server directive within /etc/nginx/nginx.conf - a straight copy and paste.

The difference in performance is incredible. Our system has gone from appearing like a slow wordpress website on an overly busy server to appearing like it's static html pages! It's running on a server with under quarter of the resources we had to throw at apache too!

If anyone needs any direct help with this, I can arrange for one of our tech guys to either set it up for you on a server or offer assistance. Just send me a private message.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated