Hello guys I mentioned earlier that I have installed mod_security module
first everything was works fine until I've tried to upload large files
my chmod for upload dirctory was 777 and when uploading file its ends with Internal Server Error
I've changed the chmod of upload folder to 755 and now nothing can be uploaded.
what should I do in server to accept files ?
I've tried this link but still the same http://shapeshed.com/securing_upload_folders_in_php_on_unix_servers/
OsaMasw
13
Loving Helper
Recommended Answers
Jump to PostHello OsaMasw,
I haven't worked a lot with mod_security, but it seems it puts some limits on the uploaded files.
If i were you, i'd try and see what you can edit in mod_security: max file size, upload time, etc.
When the limit is reached, mod_security throws an error 500 …
Jump to Post757 will allow everyone to write, this is not good. The directories hosting the website needs to be owned by the same user running Apache, so set:
- 644 for directories
- 755 for files
If it doesn't work check your configuration.
All 5 Replies
OsaMasw
13
Loving Helper
phoenix_2000
30
Junior Poster in Training
cereal
1,524
Nearly a Senior Poster
Featured Poster
veedeoo
474
Junior Poster
Featured Poster
OsaMasw
13
Loving Helper
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.