Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED PHP Process limit stopping script from running

Discussion in 'Workarounds and Optimization' started by Chris Brown, Dec 9, 2016.

  1. Chris Brown

    Chris Brown Registered

    Joined:
    Dec 2, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Aberdeen
    cPanel Access Level:
    Root Administrator
    I'll start off with *i'm a n00b" i know next to nothing about PHP and i'm not even sure if i'm asking the right people in the right place. Really hope I'm not about to attract a heap of flak for bad forum etiquette but here we go:
    I've researched as much as i can and i'm sure it's a PHP setting and have tried changing the max number of processes in the global PHP.ini file on the virtual server but to no avail.

    I have a PHP script that was written by the folks at "simple invoices" I've set up cron daemon to run the script every day at a certain time.
    The script is supposed to check all recurring invoices and if one is due to run that day it should process it.

    There is around 40 invoices that should run on the first of every month, what actually happens is the script runs everyday (as it should), gets through the first 25 items and just cuts out. It then emails me telling me:
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?> <array>
    <cron_message>No invoices recurred for this cron run for domain: 1 for the date: 2016-12-02</cron_message>
    <cron_message_52>Cron ID: 52 NOT RUN: - Not cheduled for today - Cron for Invoice 2423 with start date of 2017-11-01, end date of where it runs each 1 year did not recur today :: Info diff=-334</cron_message_52>
    <cron_message_51>Cron ID: 51 NOT RUN: Cron for Invoice 2418 with start date of 2016-12-01, end date of where it runs each 1 month did not recur today :: Info diff=1</cron_message_51>
    <cron_message_50>Cron ID: 50 NOT RUN: - Not cheduled for today - Cron for Invoice 2410 with start date of 2017-10-01, end date of where it runs each 1 year did not recur today :: Info diff=-303</cron_message_50>
    <cron_message_49>Cron ID: 49 NOT RUN: - Not cheduled for today - Cron for Invoice 2057 with start date of 2017-02-26, end date of where it runs each 1 year did not recur today :: Info diff=-86</cron_message_49>
    <cron_message_48>Cron ID: 48 NOT RUN: Cron for Invoice 1930 with start date of 2016-11-25, end date of where it runs each 1 year did not recur today :: Info diff=7</cron_message_48>
    <cron_message_47>Cron ID: 47 NOT RUN: - Not cheduled for today - Cron for Invoice 2397 with start date of 2017-10-01, end date of where it runs each 1 year did not recur today :: Info diff=-303</cron_message_47>
    <cron_message_46>Cron ID: 46 NOT RUN: - Not cheduled for today - Cron for Invoice 2338 with start date of 2017-09-03, end date of where it runs each 1 year did not recur today :: Info diff=-275</cron_message_46>
    <cron_message_45>Cron ID: 45 NOT RUN: - Not cheduled for today - Cron for Invoice 2306 with start date of 2017-08-08, end date of where it runs each 1 year did not recur today :: Info diff=-249</cron_message_45>
    <cron_message_44>Cron ID: 44 NOT RUN: Cron for Invoice 2282 with start date of 2016-09-01, end date of where it runs each 1 month did not recur today :: Info diff=92</cron_message_44>
    <cron_message_43>Cron ID: 43 NOT RUN: Cron for Invoice 1920 with start date of 2016-11-01, end date of where it runs each 1 year did not recur today :: Info diff=31</cron_message_43>
    <cron_message_42>Cron ID: 42 NOT RUN: Cron for Invoice 2054 with start date of 2016-02-01, end date of where it runs each 1 year did not recur today :: Info diff=305</cron_message_42>
    <cron_message_41>Cron ID: 41 NOT RUN: Cron for Invoice 2060 with start date of 2016-03-01, end date of where it runs each 1 year did not recur today :: Info diff=276</cron_message_41>
    <cron_message_40>Cron ID: 40 NOT RUN: Cron for Invoice 2237 with start date of 2016-07-01, end date of where it runs each 1 year did not recur today :: Info diff=154</cron_message_40>
    <cron_message_39>Cron ID: 39 NOT RUN: Cron for Invoice 2170 with start date of 2016-05-01, end date of where it runs each 1 year did not recur today :: Info diff=215</cron_message_39>
    <cron_message_38>Cron ID: 38 NOT RUN: Cron for Invoice 1850 with start date of 2016-09-01, end date of where it runs each 1 year did not recur today :: Info diff=92</cron_message_38>
    <cron_message_37>Cron ID: 37 NOT RUN: Cron for Invoice 2059 with start date of 2016-03-01, end date of where it runs each 1 year did not recur today :: Info diff=276</cron_message_37>
    <cron_message_36>Cron ID: 36 NOT RUN: Cron for Invoice 1887 with start date of 2016-10-01, end date of where it runs each 1 year did not recur today :: Info diff=62</cron_message_36>
    <cron_message_35>Cron ID: 35 NOT RUN: Cron for Invoice 2061 with start date of 2016-03-01, end date of where it runs each 1 year did not recur today :: Info diff=276</cron_message_35>
    <cron_message_34>Cron ID: 34 NOT RUN: Cron for Invoice 1968 with start date of 2016-12-01, end date of where it runs each 1 year did not recur today :: Info diff=1</cron_message_34>
    <cron_message_33>Cron ID: 33 NOT RUN: Cron for Invoice 2176 with start date of 2016-05-01, end date of where it runs each 1 year did not recur today :: Info diff=215</cron_message_33>
    <cron_message_32>Cron ID: 32 NOT RUN: - Not cheduled for today - Cron for Invoice 2089 with start date of 2017-03-01, end date of where it runs each 1 year did not recur today :: Info diff=-89</cron_message_32>
    <cron_message_31>Cron ID: 31 NOT RUN: Cron for Invoice 1865 with start date of 2016-09-01, end date of where it runs each 1 year did not recur today :: Info diff=92</cron_message_31>
    <cron_message_30>Cron ID: 30 NOT RUN: Cron for Invoice 1860 with start date of 2016-09-01, end date of where it runs each 1 year did not recur today :: Info diff=92</cron_message_30>
    <cron_message_29>Cron ID: 29 NOT RUN: Cron for Invoice 2212 with start date of 2016-07-07, end date of where it runs each 2 week did not recur today :: Info diff=148</cron_message_29>
    <cron_message_28>Cron ID: 28 NOT RUN: Cron for Invoice 2213 with start date of 2016-07-07, end date of where it runs each 2 week did not recur today :: Info diff=148</cron_message_28>
    <id>0</id>
    </array>
    
    I logged in as the VPS root and sudo su to change the global php.ini but i'm not sure if i've edited the right PHP.ini file (i did run a info.php from the site to get the path to the one being used). It's also running PHP as a module (hope that makes sense).
    Any help would be greatly appreciated. Even if it's just telling me i'm in the wrong place and where to ask next.
     
    #1 Chris Brown, Dec 9, 2016
    Last edited by a moderator: Dec 9, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you notice any output to /usr/local/apache/logs/error_log when this happens?

    Thank you.
     
  3. Chris Brown

    Chris Brown Registered

    Joined:
    Dec 2, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Aberdeen
    cPanel Access Level:
    Root Administrator
    Hi Thanks for the reply. I've found the following which seems unrelated to me but you will know better. Theres alot of SSL references but i don;t use certs for any of the sites on the server.
    The script that cuts out runs at 11am.
    Code:
    [Wed Dec 14 09:50:04.760573 2016] [:error] [pid 16580] [client 91.198.xxx.xx:11632] File does not exist: /home/example/public_html/index.php, referer: http://www.examplelifti$
    [Wed Dec 14 09:50:20.299896 2016] [:error] [pid 16576] [client 91.198.xxx.xx:12427] File does not exist: /home/example/public_html/index.php, referer: http://www.examplelifti$
    [Wed Dec 14 09:50:20.300039 2016] [:error] [pid 16576] [client 91.198.xxx.xx:12427] File does not exist: /home/example/public_html/index.php, referer: http://www.examplelifti$
    [Wed Dec 14 09:50:20.714518 2016] [:error] [pid 17610] [client 91.198.xxx.xx:12454] File does not exist: /home/example/public_html/index.php, referer: http://www.examplelifti$
    [Wed Dec 14 09:50:20.714636 2016] [:error] [pid 17610] [client 91.198.xxx.xx:12454] File does not exist: /home/example/public_html/index.php, referer: http://www.examplelifti$
    [Wed Dec 14 10:32:38.680860 2016] [:error] [pid 17626] [client 112.124.xx.xxx:5777] File does not exist: /home/example/public_html/index.php
    [Wed Dec 14 10:32:38.680992 2016] [:error] [pid 17626] [client 112.124.xx.xxx:5777] File does not exist: /home/example/public_html/index.php
    [Wed Dec 14 10:32:38.889975 2016] [:error] [pid 23974] [client 112.124.xx.xxx:5803] File does not exist: /home/example/public_html/index.php
    [Wed Dec 14 10:32:38.890149 2016] [:error] [pid 23974] [client 112.124.xx.xxx:5803] File does not exist: /home/example/public_html/index.php
    [Wed Dec 14 11:07:31.031775 2016] [mpm_prefork:notice] [pid 1074] AH00171: Graceful restart requested, doing restart
    [Wed Dec 14 11:07:33.002259 2016] [ssl:warn] [pid 1074] AH01909: example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Dec 14 11:07:33.003230 2016] [ssl:warn] [pid 1074] AH01909: domain.com:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Dec 14 11:07:33.007763 2016] [ssl:warn] [pid 1074] AH01909: someusr@domain.co.uk:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Dec 14 11:07:33.010363 2016] [ssl:warn] [pid 1074] AH01909: example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Dec 14 11:07:33.011316 2016] [ssl:warn] [pid 1074] AH01909: example.co.uk:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Dec 14 11:07:33.014026 2016] [ssl:warn] [pid 1074] AH01909: example.co.uk:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Dec 14 11:07:33.014938 2016] [ssl:warn] [pid 1074] AH01909: example.co.uk:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Dec 14 11:07:33.026803 2016] [mpm_prefork:notice] [pid 1074] AH00163: Apache/2.4.18 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
    [Wed Dec 14 11:07:33.026822 2016] [core:notice] [pid 1074] AH00094: Command line: '/usr/local/apache/bin/httpd -D SSL'
    [Wed Dec 14 12:06:15.944157 2016] [mpm_prefork:notice] [pid 1074] AH00171: Graceful restart requested, doing restart
    [Wed Dec 14 12:06:17.001993 2016] [ssl:warn] [pid 1074] AH01909: example.com:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Dec 14 12:06:17.002923 2016] [ssl:warn] [pid 1074] AH01909: domain.com:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Dec 14 12:06:17.007699 2016] [ssl:warn] [pid 1074] AH01909: someusr@domain.co.uk:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Dec 14 12:06:17.010654 2016] [ssl:warn] [pid 1074] AH01909: example.com:443:0 server certificate does NOT include an ID which matches the server name
    
    Very appreciative for any help and advice you can offer
     
    #3 Chris Brown, Dec 14, 2016
    Last edited by a moderator: Dec 15, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm not sure those entries relate to the issue you have reported. Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here and we will update this thread with the outcome.

    Thank you.
     
  5. Chris Brown

    Chris Brown Registered

    Joined:
    Dec 2, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Aberdeen
    cPanel Access Level:
    Root Administrator
    Sorry Michael, I'm unable to find your signature :/
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,765
    Likes Received:
    313
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  7. Chris Brown

    Chris Brown Registered

    Joined:
    Dec 2, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Aberdeen
    cPanel Access Level:
    Root Administrator
    Just read the terms for opening a ticket. My server is hosted at GoDaddy and the license is through them. Will I need to contact them instead?
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,765
    Likes Received:
    313
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You should probably start there, yes. A user with a cPanel license can open a ticket to cPanel Technical Support as well.
     
Loading...

Share This Page