Welcome, Guest
Please Login or Register.
Lost Password?
Re:PHP uploads problem - VM GPL (1 viewing)
Post Reply

TOPIC: Re:PHP uploads problem - VM GPL

#16062
epimedia (User)
Posts: 1
graphgraph
PHP uploads problem - VM GPL 2008/09/03 02:33  
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 Attachment:
File name: phpini.zip
File size:15272 bytes


Post edited by: epimedia, at: 2008/09/03 02:35

Post edited by: epimedia, at: 2008/09/03 02:36
  The administrator has disabled public write access.
#16065
andreychek (Moderator)
Posts: 636
graphgraph
Re:PHP uploads problem - VM GPL 2008/09/03 07:17  
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
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.