Sample Header Ad - 728x90

RHEL7 & PHP: File is not uploading (even into /tmp/)

0 votes
2 answers
1810 views
After few days, since I asked this question: LINK I realized, that maybe it's another problem. I used package inotifywait to check, is a temporary file generating after sending html form. Unfortunately temp file is not creating, after clicking "upload" button in my form, but I don't know why, because even I had turned off firewall (I thought that it is a problem - I was wrong). Maybe someone has this same problem? --- OS is newly installed, so I didn't change so much in httpd.conf and php.ini. Below is a list '**What I checked?**': 1. enctype='multipart/form-data' is set, 2. /tmp/ is a upload_tmp_dir, 3. file_uploads is **on**, 4. File size is in limit, which is set into upload_max_filesize (limit is 2MB, but file have 18KB), 5. I tried to use aboslute path, 6. /tmp/ and /var/www/html/upload have chmod set on ***777*** and upload owner and owner group is ***apache***, 7. I tried change upload_tmp_dir in php.ini, but it bring this same result.
Asked by KalikDev (131 rep)
Jun 12, 2017, 01:27 PM
Last activity: Aug 29, 2021, 02:01 AM