APC or PHP error?

Discussion in 'ISPConfig 3 Priority Support' started by jpcyrenne, Jul 4, 2015.

  1. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Good Day,
    Running ISPConfig 3.0.5.4p3 on Centos6.6.
    My sites suddenly stopped working? I get a 500. ISPConfig still works? So doesn't seem to be an Apache issue?
    Not a ressource (Ram, CPU) space issue.
    # df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/ploop23659p1 40G 19G 19G 50% /
    none 4.0G 4.0K 4.0G 1% /dev
    none 4.0G 0 4.0G 0% /dev/shm

    I see this in the sites error logs?
    [Sun May 31 04:25:24 2015] [error] [client 192.95.36.229] PHP Fatal error: PHP Startup: apc_mmap: mkstemp on /tmp/apc.HbZx7v failed: in Unknown on line 0
    [Sun May 31 04:25:24 2015] [error] [client 192.95.36.229] Premature end of script headers: index.php
    [Sun May 31 04:27:24 2015] [error] [client 192.95.36.229] Could not write to logfile:

    # tail -f error.log
    [Sat Jul 04 16:39:43 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php
    [Sat Jul 04 16:39:43 2015] [error] [client 74.86.158.110] PHP Fatal error: PHP Startup: apc_mmap: mkstemp on /tmp/apc.YXHgj4 failed: in Unknown on line 0
    [Sat Jul 04 16:39:43 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php
    [Sat Jul 04 16:39:50 2015] [error] [client 74.86.158.110] PHP Fatal error: PHP Startup: apc_mmap: mkstemp on /tmp/apc.BuRm2j failed: in Unknown on line 0
    [Sat Jul 04 16:39:50 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php
    [Sat Jul 04 16:39:50 2015] [error] [client 74.86.158.110] PHP Fatal error: PHP Startup: apc_mmap: mkstemp on /tmp/apc.8WSQUl failed: in Unknown on line 0
    [Sat Jul 04 16:39:50 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php
    [Sat Jul 04 16:40:43 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php
    [Sat Jul 04 16:40:43 2015] [error] [client 74.86.158.110] PHP Fatal error: PHP Startup: apc_mmap: mkstemp on /tmp/apc.pSksFO failed: in Unknown on line 0
    [Sat Jul 04 16:40:43 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php
    [Sat Jul 04 16:40:50 2015] [error] [client 74.86.158.110] PHP Fatal error: PHP Startup: apc_mmap: mkstemp on /tmp/apc.IlGvrY failed: in Unknown on line 0
    [Sat Jul 04 16:40:50 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php
    [Sat Jul 04 16:40:50 2015] [error] [client 74.86.158.110] PHP Fatal error: PHP Startup: apc_mmap: mkstemp on /tmp/apc.F4mT9W failed: in Unknown on line 0
    [Sat Jul 04 16:40:50 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php


    These are synched sitse for failover purposes. Could it be that something changed with the site (customer not using APC cache and now yes?). I'll double check with the customer at the same time...

    Seems to be a write ussue???

    Thank you,

    JP
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if apc cant write to /tmp anymore. Maybe the permissions of /tmp has been changed or one node has mounted /tmp partition in read only mode. Check that the /tmp directory is world writable on bothe servers.
     
  3. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    I double checked the Node:
    drwxrwxrwt 3 root root 4096 Jul 5 03:21 tmp

    Rebooted the VPS and checked the VPS:
    drwxrwxrwt 6 root root 217088 Jul 5 11:05 tmp

    Still having errors...:
    [Sun Jul 05 11:12:36 2015] [error] [client 74.86.158.110] PHP Fatal error: PHP Startup: apc_mmap: mkstemp on /tmp/apc.clVhhg failed: in Unknown on line 0
    [Sun Jul 05 11:12:36 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php
    [Sun Jul 05 11:12:36 2015] [error] [client 74.86.158.110] PHP Fatal error: PHP Startup: apc_mmap: mkstemp on /tmp/apc.tamlWj failed: in Unknown on line 0
    [Sun Jul 05 11:12:36 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php
    [Sun Jul 05 11:13:11 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php
    [Sun Jul 05 11:13:11 2015] [error] [client 74.86.158.110] PHP Fatal error: PHP Startup: apc_mmap: mkstemp on /tmp/apc.QKhrWt failed: in Unknown on line 0
    [Sun Jul 05 11:13:11 2015] [error] [client 74.86.158.110] Premature end of script headers: index.php


    the /tmp in the website folder was at 750... I changed it to 777:
    drwxrwxrwx 2 web1 client1 4096 Oct 9 2014 tmp
    ----------------------

    I disabled APC (# vi /etc/php.d/apc.ini), restarted Apache and everything came back. I will double check with the developper team if it's needed or anythig was changed ? Don't think they did any update on a site on a saturday.

    Thanks,

    JP
     

Share This Page