zEitEr
Super Moderator
Hello,
That was noticed on a server with CentOS 7 that all uploads fail with 8 error code:
http://php.net/manual/en/features.file-upload.errors.php
Going into details I've found out that /usr/local/php*/bin/php_uploadscan.sh fails to get executed on file upload.
I've added this code to the script:
I've tried several PHP versions and all of them had the same result.
Some debug info:
Am I the only one to face such an issue, or you can see it on your CentOS 7 servers as well?
That was noticed on a server with CentOS 7 that all uploads fail with 8 error code:
Value: 8; A PHP extension stopped the file upload.
http://php.net/manual/en/features.file-upload.errors.php
Going into details I've found out that /usr/local/php*/bin/php_uploadscan.sh fails to get executed on file upload.
I've added this code to the script:
Code:
echo -n 1 >> /tmp/upload.log
Code:
touch /tmp/upload.log
chmod 666 /tmp/upload.log
I've tried several PHP versions and all of them had the same result.
Some debug info:
Code:
[root@server ~]# sudo -u admin stat /usr/local/php56/bin/php_uploadscan.sh
File: ‘/usr/local/php56/bin/php_uploadscan.sh’
Size: 115 Blocks: 8 IO Block: 4096 regular file
Device: 902h/2306d Inode: 266524 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2014-10-13 21:05:17.930923246 +0200
Modify: 2014-10-23 09:09:16.133090568 +0200
Change: 2014-10-23 09:09:16.133090568 +0200
Birth: -
[root@server ~]#
[root@server ~]# sudo -u apache stat /usr/local/php56/bin/php_uploadscan.sh
File: ‘/usr/local/php56/bin/php_uploadscan.sh’
Size: 115 Blocks: 8 IO Block: 4096 regular file
Device: 902h/2306d Inode: 266524 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2014-10-13 21:05:17.930923246 +0200
Modify: 2014-10-23 09:09:16.133090568 +0200
Change: 2014-10-23 09:09:16.133090568 +0200
Birth: -
[root@server ~]#
Am I the only one to face such an issue, or you can see it on your CentOS 7 servers as well?