2 problems with new linux server

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

2 problems with new linux server

Post 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!
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: 2 problems with new linux server

Post 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")
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

Re: 2 problems with new linux server

Post 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.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: 2 problems with new linux server

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply