Portal Home > Knowledgebase > Articles Database > Upload error after account moving


Upload error after account moving




Posted by BrightStar, 07-23-2008, 01:46 PM
Hi all, I have just moved hosting script account from one server to another server and now when I try uploading an image, I am getting the following error Warning: move_uploaded_file(./uploads/8e90ced776.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/imgrip/public_html/upload.php on line 29 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpDmsMkq' to './uploads/8e90ced776.jpg' in /home/imgrip/public_html/upload.php on line 29 Anyone would be kind enough to let us know how to fix the error? Thanks in advance

Posted by TheITAdvisory, 07-23-2008, 01:56 PM
Can you check the permissions of this file upload.php?

Posted by BrightStar, 07-23-2008, 02:01 PM
Yup it's 755

Posted by TheITAdvisory, 07-23-2008, 02:02 PM
what version of php are you using? Also, what Operating system, and control panel?

Posted by BrightStar, 07-23-2008, 02:32 PM
WHM 11.23.2 cPanel 11.23.4-C26138 CENTOS Enterprise 4.6 i686 on virtuozzo - WHM X v3.1.0 Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a

Posted by TheITAdvisory, 07-23-2008, 02:35 PM
Hello, Inside of whm, do you have open_basedir protectionenabled on the site? Can you upload a php info file to your domain, and provide us a link? The info.php should have the following inside of it;

Posted by BrightStar, 07-23-2008, 03:01 PM
http://www.imagegrip.com/php.php There you go

Posted by zacharooni, 07-23-2008, 07:46 PM
You said you moved it from another server, is the username the same?

Posted by BrightStar, 07-24-2008, 05:30 AM
Yup same user name and same details.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read