NGINX + PHP7-FPM = Gives Blank Pages


So I have an NGINX + PHP7-FPM setup and the whole wordpress website works great… except… for when I do thiing such as letting the plugins do work.

What I mean by this is that when a plugin is importing photos or when it needs to change some settings etc using javascript, pages do not render properly or it gives me blank white pages.

Not too sure what is going on, but a guess would be that my setup is not allowing Javascript or any script without user input to be automatically executed within my server.

Anyone have had this problem or know any fixes?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You don’t have to do anything to allow JavaScript server-side. JavaScript is executed on client-side in browser unlike PHP which is executed on server. Some basic explanation would be that JavaScript is fetched via your browser as text (just like html) and it your browser parses it to show content. There are possibilities that uses JavaScript server-side but this is not your problem as all WP plugins is classic JS that executes in browser.

You must make sure that your browser have JavaScript enabled. Consider help for that, as it is different from browser to browser. Also does that JS code/plugin support your browser. Also try from some mainstream browser like Chrome and Firefox or even other machine. Note that Internet Explorer could not work at all with some of JS code so it’s recommended to use another browser.

Beside that check does plugins that make problems even support PHP7. If they don’t that could make problems. Also verify that you have required PHP dependencies. There are some that is recommended to be installed:

  1. sudo apt-get install php7.0-mysql php7.0-curl php7.0-gd php7.0-mbstring php7.0-mcrypt php7.0-xml php7.0-xmlrpc

Maybe even logs will help you. Try to find nginx logs and see is there something useful. Usually log is located in /var/log/nginx/error.log which you can open with any text editor. You can check whole directory (ls /var/log/nginx/) to see is there other logs.