We have some problems with our new build of our website. It’s a 2.0 version from our previous website. Our previous website was hosted on a shared server. We found out that the speed was an big issue. Based on this awesome tutorial we decided to go for a VPS. (LEMP stack) I managed to setup our new site and now we are hosting it on a VPS (Obviously). But there are some issues and I don’t know how to fix them (On a shared server all the presets are there, and now I have to do it my self.)
First problem is and was that woocommerce or wordpress didn’t send emails. I fixed only one of them with installing Exim4 Now the mails from woocommerce are send (new order, on hold etc. but these are messed up. It sends the wrong mails at the wrong action.) But emails from wordpress don’t send at al (new customer, change password that stuff), which we think are !important.
Second, when a customer wants to register we get an white page. When we refresh it says; customer al ready exists. And in de backend the customer is created. After that they can login. So we don’t get whats wrong there.
I hope some can help me :) Greetings,
Jasper Dergent Printvlaggen.nl
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!
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.
On the first item, we don’t install an SMTP service by default mostly to prevent spam. I’ve had good luck with a basic install of postfix (instead of exim) to get mail working in WordPress. It provides a sendmail binary that the php mail() function can use.
The registration white page is something different. I am guessing that it’s related to one of the plugins in use rather than WP core. I’d recommend checking your php-fpm error log in /var/log to see if any information is being recorded there when the white page is shown. If you find something, share it here and I’ll help you get to the bottom of it.
Thanks for the quick reply. Yeah, I understand that those service’s are not pre-installed, it’s not a problem. I like a challenge. Would you recommend postfix over Exim? Or what are pro’s or con’s? Isn’t the php mail() function used by Exim and is that causing the problem for some emails?
The white pages i’m going to try get one now and post the results below. Thanks btw.
There nothing in /var/log. I mean, there are a lot files. But none php7.0-fpm file with a date of to day. This is the latest php7.0-fpm file;
These are the only files there with php. something