Migrate to nginx

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
alextz
New Member
New Member
Posts: 2
Joined: Wed Oct 26, 2011 8:47 am

Migrate to nginx

Post by alextz »

Hello,
I want to migrate some sites from apache to nginx. I have installed a test server in VMware based on Ubuntu server.
After following the instructions the nginx, php-fbd and MySQL are set and working properly.
The CMSMS installation went without any problems but there are two major issues with the site:
1. The template is not shown - only text and hyperlinks. However the admin site is working with the new OneEleven theme. I have tried changing the default template to another but that didn't solve anything.
2. In the admin console the MicroTiny WSIWYG editor is not working.

The nginx default configuration is:

Code: Select all

server {
        listen   80; ## listen for ipv4; this line is default and implied

        root /var/www/;
        index index.php;

        server_name localhost;

        location / {
                try_files $uri $uri/ /index.php?page=$request_uri;
        }

        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_pass unix:/tmp/php5-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }

}
Any suggestions how to fix these?

Thanks!
flmm
Forum Members
Forum Members
Posts: 41
Joined: Wed Mar 24, 2010 1:12 pm

Re: Migrate to nginx

Post by flmm »

I had the same problems that you have with nginx. Also I did not get pretty url's to work. After a lot of evenings without succes I decided to use Varnish in front op Apache (on Ubuntu). Not the same, I know, but makes the sites much faster. Is that the reason you want to switch to nginx? And even with high traffic (stress tool) the sites stay very fast and responsive with very low load on Apache.

CMSMS works great and you don't have to change anything because the backend is still Apache. Only the images, java and other static files are cached in my setup.
Locked

Return to “[locked] Installation, Setup and Upgrade”