Uploading problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
sammex

Uploading problem

Post by sammex »

This is a generic php uploading problem, not specific to cmsms. I'm seeing it in the Singapore module within cmsms, and also within phpBB's avatar uploading tool. Probably other places as well, that I just haven't noticed.

I've recently moved hosting services, and the problem I'm having started on the new service. On the plus side, on my new service I can modify any and all config files. On the minus though, I've no idea what to modify to make this work ;)

When I try to upload an item, it fails to move to the destination directory. For example, trying to upload a pic through Singapore, I receive:
Warning: move_uploaded_file(galleries/./NewlyAdded/test.bmp): failed to open stream: Permission denied in /home/site/www/modules/galleryS/singapore/includes/admin.class.php on line 739

Warning: move_uploaded_file(): Unable to move '/tmp/php8F4yJs' to 'galleries/./NewlyAdded/test.bmp' in /home/site/www/modules/galleryS/singapore/includes/admin.class.php on line 739


At one point I inserted some test code to verify the file was placed in /tmp, and it was. I don't know if I'm seeing a permissions problem or a config issue. I believe I've got good permissions set though. I am wondering if php has a way to set where uploaded files can be copied.

Any php experts able to set me straight here?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Uploading problem

Post by calguy1000 »

I'd bet it's a permissions problem.  The "Permission denied" message tells me so.

take a look at the desintation directory and make sure that the user that the web server process is running as has write access to that direcotry
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Locked

Return to “CMSMS Core”