close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Internal Server Error on upload

Thread began 11/10/2011 9:31 pm by lightwalker | Last modified 11/11/2011 6:53 am by Jason Byrnes | 2164 views | 1 replies |

lightwalkerBeta Tester

Internal Server Error on upload

Dear Webassist,

I am getting an Internal Server Error on Upload. The permissions are set on the folder are set to 777 and the upload server behavious was working fine. I have been in contact with my host who tell me the error is cause because the upload server behaviour is occuring becuase the upload is righting to a temp directory at the root level which is causing problems.

Here is what I recieved:

[Thu Nov 10 22:58:41 2011] [error] [client 69.16.222.128] ModSecurity: Input
filter: Failed to create temporary file:
/root/tmp/20111110-225841-TrxXIUWnuuEAAFG-LxMAAAAG-request_body-d4Wri7
[hostname "thebodytransformed.com"] [uri "/InnerCircle/daily.php"] [unique_id
"TrxXIUWnuuEAAFG-LxMAAAAG"]

This is what I received as a reply from my host

The important bit there is that your application is trying to write to the
/root/tmp/ subdirectory, typically that would be /tmp or
/home/<user>/public_html/tmp That is probably changed in a configuration file
for the application, I looked and did not find it. Do you know how to change
the path to /tmp?

Is there a way to change the tmp file that the upload server behavior uses so that it is not creating a temp file in the root directly so that it does not throw a security issue.

Many thanks for your help

Sign in to reply to this post

Jason ByrnesWebAssist

in the servers php.ini file there is a setting called upload_tmp_dir, this is used to set the temporary directory used when a file is uploaded.

The File Upload behavior uses the upload_tmp_dir that is set in the php.ini file.



from:
ini.core.php

  upload_tmp_dir string

The temporary directory used for storing files when doing file upload. Must be writable by whatever user PHP is running as. If not specified PHP will use the system's default.

If the directory specified here is not writable, PHP falls back to the system default temporary directory. If open_basedir is on, then the system default directory must be allowed for an upload to succeed.  
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...