Page 1 of 1

2 problems with new linux server

Posted: Tue Oct 07, 2014 8:57 pm
by dr_patso
Script URL:
Version of script: Hesk 2.5.1
Hosting company: CentOS 6.5 apache2 ispconfig,
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

I have recently moved from WAMP over to centos and ispconfig. I have apache 2, php 5. I'm having a couple small issues I hope someone has had experience with.

I increase my file limit in the php.ini for hte specific site. It's not accepting the file types I have allowed in Hesk. I can upload images no problem but if I try and upload a .msg file i get a 500 internal server error. It's not a size issue as I can upload larger images than the .msg file

The other problem is my WYSIWYG editor buttons are not showing. I'm assuming I need to switch to binary for the graphics for the WYSIWYG editor manually since the ftp program is not detecting it. Where are those?

Image

On the other hand, my e-mail piping now works great!

Re: 2 problems with new linux server

Posted: Wed Oct 08, 2014 9:48 am
by Klemen
It doesn't matter to HESK what type of files you are uploading, so something on your server is preventing upload of .msg files (mod_security? something else? check logs)

The image files are in:
inc\tiny_mce\3.5.11\themes\advanced\img
inc\tiny_mce\3.5.11\themes\advanced\skins\default\img

(but most FTP clients should detect images, just make sure you have everything on "auto", not "ascii")

Re: 2 problems with new linux server

Posted: Wed Oct 08, 2014 6:56 pm
by dr_patso
Hi Klemen,

Thanks so much! I had my FileZilla set to auto, for some reason it didn't work. I uploaded the img folder manually selecting binary and it fixed that issue.

In ISPConfig I had to do the following (I already had modified the max limit, the issue was with the .msg file)

Once I added this to Apache Directives on the site's options tab it worked

Code: Select all

AddHandler fcgid-script .fcgi
FcgidConnectTimeout 20
MaxRequestLen 15728640
I had this already in the custom php.ini settings on the same page in ISPConfig

Code: Select all

max_execution_time = 6000
upload_max_filesize = 500M
post_max_size = 500M
Let me know if there something in there that might cause me problems again in the future. It's an internal server with only a few users so I don't care much for a limit on file sizes.

Re: 2 problems with new linux server

Posted: Wed Oct 08, 2014 7:07 pm
by Klemen
There is no point in having upload_max_filesize the same size of post_max_size - the POST is always larger than the uploaded file.

A safe approach would be to have post_max_size = upload_max_filesize × number of files allowed + 1 Mb or more

So if you allow 2 files 100 Mb each, the post should be at least 201 Mb.