Skip to main content

Server admin delete empty /tmp now all php script giving "File upload error - unable to create a temporary file in Unknown on line 0" error

Comments

11 comments

  • andrew.n
    erm...how did he empty out the /tmp folder? Did he really empty it out or rather removed /tmp then created it again with the wrong permissions? Sounds like a permission issue for me.
    0
  • TechBill
    erm...how did he empty out the /tmp folder? Did he really empty it out or rather removed /tmp then created it again with the wrong permissions? Sounds like a permission issue for me.

    I wish I knew what he did ... In the email, he said he cleaned out the old stuffs in /tmp yesterday but he didn't say how he cleaned it out if he used rm * or what did he do to clean it out.
    0
  • TechBill
    I just know all my customer php script was working fine before yesterday and today it's all not working .. and this what we get in error log when I google it pointed to something about /tmp folder. When I mentioned it to the admin, he was like oh yeah I cleaned out the /tmp yesterday because it was almost full etc. in his email
    0
  • TechBill
    I look in one of my other host where I am the server administrator of. We uses WHM and Cpanel on that server so. I checked to see if there anything in the /tmp file. I noticed a lot of folder with "php-fpm" in it. Would deleting those php-fpm folders in /tmp break all the php and javascript on website? Look like there is one /tmp*php-fpm*/ folder for each website on the server created so I am wondering on that server where all website php isn't working because the server admin cleaned out all those php-fpm folders? Should it be re-created automatically since it in a /tmp folder when called in php script?
    0
  • andrew.n
    Do you have root access to the server? What does "ls -l /" shows? What are the permissions of the /tmp folder?
    0
  • TechBill
    Not on the server where admin emptied the /tmp folder .. I wish I did... Still waiting to hear back from server admin
    0
  • TechBill
    Do you have root access to the server? What does "ls -l /" shows? What are the permissions of the /tmp folder?

    This what they emailed me. I don't do Windows so can anyone tell me if this permission is set right?
    0
  • TechBill
    This is from my WHM/Cpanel CentOS7 which I know is working :P drwxrwxrwt. 86 root root 8192 Aug 25 15:06 tmp
    0
  • PenguinInternet
    The issue is almost certainly that the various php-fpm.service directories have been deleted - restart the FPM service (/scripts/restartsrv_apache_php_fpm) and they will be recreated and resolve this. We found this out the hard way a while ago when tmpwatch was deleting them so added an exclusion for those.
    0
  • TechBill
    The issue is almost certainly that the various php-fpm.service directories have been deleted - restart the FPM service (/scripts/restartsrv_apache_php_fpm) and they will be recreated and resolve this. We found this out the hard way a while ago when tmpwatch was deleting them so added an exclusion for those.

    MANY THANK YOU !!!!!!!!! That fixes it .... Have a great day!!
    0
  • cPanelLauren
    Very glad to see you were able to get this resolved. Thanks for updating what worked for you.
    0

Please sign in to leave a comment.