Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Unable to upload files [moved]

Discussion in 'General Discussion' started by orientum, Jul 12, 2005.

  1. orientum

    orientum Registered

    Jul 5, 2005
    Likes Received:
    Trophy Points:
    Unable to upload files

    Hi there guys. I don't know if this is the suitable place for posting my problem, so pls forgive me if it not.

    We are using Cpanel as a Web host of our Web Site. The site is built using php and mysql. We have also developed an a content management mechanism for this site. So for so good but with a slight problem When we try to upload a file using the above management mechanism we are getting the following error

    Warning: move_uploaded_file(..\..\Files\Announcements\ failed to open stream: Permission denied in /home/orientum/public_html/admin/news/newspost.php on line 17

    Warning: move_uploaded_file(): Unable to move '/tmp/phpdvRTYc' to '..\..\Files\Announcements\' in /home/orientum/public_html/admin/news/newspost.php on line 17

    Warning: Cannot modify header information - headers already sent by (output started at /home/orientum/public_html/admin/news/newspost.php:17) in /home/orientum/public_html/admin/news/newspost.php on line 27

    We have checked the file permissions of the server and they all seem to be right, since they are in 770 mode (both the tmp and the Files directory). The relative paths are set correctly since the uploading mechanism works fine on our local machine.

    Can you pls suggest me any hint?

    Thank you in advance
  2. nickb

    nickb Well-Known Member

    Feb 25, 2005
    Likes Received:
    Trophy Points:
    As the error says this is a permission issue...Check your php.ini for "safe_mode" and "safe_mode_exec_dir" and try some experiments.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice