Jsprs
By:
Jsprs

Wordpress setup problems

December 1, 2016 116 views
CMS Email WordPress LEMP Ubuntu 16.04

Hi!

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

2 Answers
ryanpq MOD December 1, 2016
Accepted Answer

Jasper,

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.

Hi Ryanpg,

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.

UPDATE:

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;

[28-Nov-2016 06:25:01] NOTICE: error log file re-opened
[28-Nov-2016 20:30:23] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
[29-Nov-2016 03:48:52] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
[29-Nov-2016 09:31:14] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
[29-Nov-2016 09:35:32] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it

These are the only files there with php. something

  • php7.0-fpm.log.2.gz
  • php7.0-fpm.log.1
  • php7.0-fpm.log
Have another answer? Share your knowledge.