move_uploaded_file destination string missing delimiter
Posted: Wed Nov 26, 2008 5:30 pm
When I attempt to upload a file, PHP raises this error:
Note the destination string. I believe it missing the trailing slash after the word "uploads", e.g.
'/opt/mantis/uploads/36eed9c6b5deeaaf696fb9cbf1a7a636'
In the Apache <directory> directive I have the following php value assignments:
In php.ini, uploads are enabled, the max file size is 50M, and memory limit is 64MB. The "mantis" settings are agreeable with the php.ini. The "uploads" directory is set to 776 (drwxrw-rw)
What do I need to adjust and/or learn to resolve this?
TIA.
Code: Select all
SYSTEM WARNING: move_uploaded_file(/opt/mantis/uploads36eed9c6b5deeaaf696fb9cbf1a7a636): failed to open stream: Permission denied
SYSTEM WARNING: move_uploaded_file(): Unable to move '/tmp/phpiV06Ye' to '/opt/mantis/uploads36eed9c6b5deeaaf696fb9cbf1a7a636''/opt/mantis/uploads/36eed9c6b5deeaaf696fb9cbf1a7a636'
In the Apache <directory> directive I have the following php value assignments:
Code: Select all
php_admin_value open_basedir /opt/mantis/:/tmp/
php_admin_value upload_tmp_dir /opt/mantis/uploads/What do I need to adjust and/or learn to resolve this?
TIA.