PHP uploads problem - VM GPL

My VM GPL is a fresh, untampered install of the latest version (except I turned off SELinux).

I cannot upload files through PHP. No error is generated in the httpd error_log, or messages, or dmesg nor is a message generated through PHPs error_reporting. It just doesn’t work.

I noticed the problem in Joomla first, but then wrote a little script to isolate the prob. After uploading, PHP returns true to file_exists() in the system /tmp dir, but there is nothing in there when I check form the command line.

I can’t see any of the usual suspects in PHP.ini. I am attaching it even though it’s virgin

What should I do to try and diagnose this? Or better yet, fix it? [file name=phpini.zip size=15272]http://www.virtualmin.com/components/com_fireboard/uploaded/files/phpini.zip[/file]

Post edited by: epimedia, at: 2008/09/03 02:35<br><br>Post edited by: epimedia, at: 2008/09/03 02:36

Howdy,

Well, it looks like within your php.ini, that upload_max_filesize is set to 2M. Are your files definitely smaller than that?

Also, make sure you’re looking at the Apache logs for the user the domain belongs to (in /home/USERNAME/logs), rather than the system logs in /var/log.

Lastly, I don’t recall whether the GPL version of Virtualmin puts .ini files into /home/USERNAME/etc or not, but if there is a php.ini there, that’s the one you’d need to edit, rather than the one in /etc.
-Eric