Softaculous


Topic : Question about VPS server and Wordpress (Cron)


Posted By: peopleinside on October 25, 2014, 9:58 am
Hi Team Webuzo,
i want try to ask a question to someone who understand better then me of VPS, Servers.

In this two day my provider i think is updating the software for make private virtual VPS so the server go down in the night.

After that, when in the morning they restart service Wp-Cron.php of wordpress stop to work in all wordpress installation i have.

I know in php configuration file i have set the time to Europe/Rome, in Wordpress general i have selected Rome.

Do you have idea of what can be to stop the cron of wordpress? What i have to do in server side for make Cron of wordpress of all installation and of two server i have, work again?

Thanks.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.

Posted By: peopleinside on October 25, 2014, 11:00 am | Post: 1
With a plug in for Cron i see this error:

There was a problem spawning a call to the WP-Cron system on your site.
This means WP-Cron jobs on your site may not work. The problem was:
Connection timed out after 3000 milliseconds

So can be a problem of Curl?


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.

Posted By: peopleinside on October 25, 2014, 1:17 pm | Post: 2
I cannot understand how it possibile... in the server there are a shoutdown and when they restart Cron of wordpress stop to work. What is changed in the server side? File host? I relly don't understand...

How i can understand in server side what is wrong >.< bah i have no word. Tried to ask many time on internet forum but no solution found.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.

Posted By: peopleinside on October 26, 2014, 11:07 am | Post: 3
I think something has changed after reboot of the server VPS (after the down time for Provider update).

From i see on the internet the error:

Quote
There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron jobs on your site may not work. The problem was:
Connection timed out after 3001 milliseconds


can be generated because the  loopbacks are disabled.
I have read something like the solution is to work in the hosts file.
Quote
etc/hosts


My hosts file is: (xx= number who i have removed for security/privacy is an IP address)
Quote
xx.xx.xx.xxx
linux-server-2.5
127.0.0.1 localhost


So i have this two line.
Have i to add third line with

127.0.0.1 mydomain.ext www.mydomain.ext

?

Or i read this:
Quote
The solution is to instruct the server to answer with the right content for the requests directed towards 127.0.0.1. In order to do this you need a VirtualHost directive linked to this loopback address :


Under this i see i have to create Virtual Host
PHP Code

 <VirtualHost 127.0.0.1>
DocumentRoot /var/www/yourdomain
ServerName www
.yourdomain.ro
ServerAlias yourdomain
.ro
ServerAdmin user
@domain.com                                                                           
ErrorLog  logs
/webserv/xgraphic_error_log
CustomLog logs
/access_log combined
</VirtualHost



But i relly have to do that?

So have i to edit the hosts file and also i have to edit apache for add this virtual host upstairs?
http://serverfault.com/questions/420897/how-to-enable-http-loopback-connections


Maybe patch for errorlog and custom log is different in webuzo or is good what are upstairs?
Thanks


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.

Posted By: peopleinside on October 26, 2014, 11:16 am | Post: 4
Maybe i read is not necessary create 127.0.0.1 Virtual Host,

JUST edit hosts file.

Now i have two line
PHP Code

 xx.xx.xx.xxx 
linux
-server-2.5

127.0.0.1 localhost 




I need edit this adding third line

PHP Code

 127.0.0.1 mydomain.ext mydomain 



?

I'M running an SSL website,
if i add this third line i will have problem whit SSL?
Like server can have the issue start to see SelfSigned Certificate and loose my correct certificate?

I ask this because i remeber in the past i have tried to edit the hosts file and the results was my Comodo Certificate stopped to work because when i loaded the website again after this edit not was animore my SSL but a selfsigned certificate.

I remeber to have edited back the file but no solution i had needed a webuzo support for resume the correct server work with my certificate.

Can i edit the hosts file in this way, will this enable loopbacks?
If the reply is yes maybe this can solve my Wordpress Cron issue.

Please i will wait a feedback here. Thanks.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.

Posted By: peopleinside on October 26, 2014, 11:21 am | Post: 5
But i think my hosts file has no changed, is the same after the down of the VPS so i have not added any customization in the past.. i read in Internet this can be the solution but I'M asking myself why before the VPS down the Cron of Wordpress work fine without editing hosts file.

So it can be really a hosts file problem?


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.

Posted By: peopleinside on October 26, 2014, 11:23 am | Post: 6
This is a guide i have found for enable loopback
https://www.digitalocean.com/community/questions/how-do-i-enable-loopback-connections-on-ubuntu-14-04



-----------------------
PeopleInside  :angel:

Web, security, open source passionate.

Posted By: valley on October 27, 2014, 6:29 am | Post: 7
Sir is the Wordpress (Cron) working now ? Or you still face the issue ?


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter


Posted By: peopleinside on October 27, 2014, 10:26 am | Post: 8
I have the issue.
I have not edited the hosts file because when i had tried in the past my SSL of Comodo has stopped to work and when i was loading my website a selfsigned certificate was loaded. I have solved in the past by waiting and asking to you support.

I have also not edited the hosts file because i was thinking before server go down the hosts file never be edited by me so i have not putted my domain name and was working (wordpress cron) now no.

I have tried opening by SSH Root > php (patch to wordpress cron)
And the message same to be:

Could not open input file.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.

Posted By: valley on October 27, 2014, 10:46 am | Post: 9
What is the path to your cron file ?

Note : PATH to the file on the server is not the same as the URL


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter


Posted By: peopleinside on October 27, 2014, 10:50 am | Post: 10
Ok was I put the wrong ssh command.
The cron of wordpress file opened with SSH give the same result from the https address.

Print some sentence.. "plug in are up dated"
if i try again to load no message are printed. Same if i load from web.

No error are showed.. but Cron of wordpress stopped to works, works only if i load many time manually


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.

Posted By: valley on October 27, 2014, 10:54 am | Post: 11
Okay. You can search the Wordpress Forum for once for related issue

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter


Powered By AEF 1.0.8 © 2007-2008 Electron Inc.