• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue PHP 7.1 settings issues. Need to keep resetting them.

Jllynch

Regular Pleskian
We recently installed Plesk's PHP 7.1 on Onyx 17.0.17 on Centos 7. We are suddenly getting the following issue with FPM for multiple clients;

NOTICE: PHP message: PHP Warning: Unknown: POST data can't be buffered; all data discarded in Unknown on line 0
NOTICE: PHP message: PHP Warning: Unknown: Unable to create temporary file, Check permissions in temporary files directory. in Unknown on line 0

So CMS sites can't post.

We got around it before with someone on here advising to go into PHP settings for each domain and simply click ok so it resets the config. (I can't seem to find the thread on here about it). This worked, but today we noticed this issue had returned and we had to go in and do this again for each domain.

Does anyone know why this is happening? What is a longterm fix?

UPDATE: This is also happening for PHP 7.0 clients too we notice.
 
Last edited:
We are still getting this issue randomly. It appears to also be happening older version of PHP too 5.6.40...

[proxy_fcgi:error] [pid 936] [client ***] AH01071: Got error 'PHP message: PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0\nPHP

Its like the settings in PHP lose where the tmp directory is randomly. Anyone know what is going on?
 
Make sure that directory like /var/www/vhosts/example.com/tmp/ has 755 permission.
Also, try to fix it with

# plesk repair fs
 
# plesk repair fs

didn't fix anything

We are getting this issue also showing like this now;

Error: Temp file creation to /tmp/dovecot.imap

We have been still fixing this by going into PHP settings for each domain and clicking ok so it resets the config as stated above. So this is still happening. Any more ideas?
 
Do you have SELinux enabled? Try to disable with

# setenforce 0
 
# stat /tmp
File: ‘/tmp’
Size: 8192 Blocks: 24 IO Block: 4096 directory
Device: ca01h/51713d Inode: 16818305 Links: 16
Access: (1777/drwxrwxrwt) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2019-03-12 15:04:47.286224596 +1000
Modify: 2019-03-12 15:06:10.490425335 +1000
Change: 2019-03-12 15:06:10.490425335 +1000
Birth: -
 
# df -i /tmp
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/xvda1 76422144 1191092 75231052 2% /

# df /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda1 183489516 164690628 18798888 90% /
 
Back
Top