• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Still unable to increase upload limit!

IskanderM

New Pleskian
Hi There,

I have tried the links below and it still has not made a difference to the upload limit. I am still getting a 500 error.

http://kb.odin.com/en/114842
http://talk.plesk.com/threads/unable-to-increase-upload-limit-since-upgrade.261073/

In the error logs it is still saying
'mod_fcgid: HTTP request length 16777994 (so far) exceeds MaxRequestLen (16777216)'

I did not try editing last_httpd.include as it was recommended that this was not edited in the post above.

Is there something I am missing!

The Parallels version is 11.0.9 on Linux. It is a VPS package. Is it possible that the host is not allowing the increase or is it all down to my setup?

Cheers
Iskander
 
Hello Iskander,
What is your output
Code:
cat /etc/httpd/conf.d/fcgid.conf
 
Hi Abdi,

Thank you for your quick reply. Please find below the output - Maybe I haven't added it in correctly?

Cheers
Iskander

Code:
# This is the Apache server configuration file for providing FastCGI support
# via mod_fcgid
#
# Documentation is available at http://fastcgi.coremail.cn/doc.htm

LoadModule fcgid_module modules/mod_fcgid.so

<IfModule mod_fcgid.c>

<IfModule !mod_fastcgi.c>
    AddHandler fcgid-script fcg fcgi fpl
</IfModule>

  FcgidIPCDir /var/run/mod_fcgid/sock
  FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm

  FcgidIdleTimeout 3600
  FcgidProcessLifeTime 30
  FcgidMaxProcesses 20
  FcgidMaxProcessesPerClass 8
  FcgidMinProcessesPerClass 0
  FcgidConnectTimeout 30
  FcgidIOTimeout 45
  FcgidInitialEnv RAILS_ENV production
  FcgidIdleScanInterval 10
  FcgidMaxRequestLen 1073741824
  FcgidMaxRequestInMem 1073741824

</IfModule>
 
Last edited:
Hi Abdi,

Could it also be that the files are relatively big so would I need to increase the timeout etc?

Cheers
Iskander
 
Hi guys,
Doesn't FcgidMaxRequestLen get set in the psa templates in 11.0.9? Like it does in 11.5.30 and 12.
So whatever is in /etc/httpd/conf.d/fcgid.conf would be overridden by the psa template.

Therefore set the domains FcgidMaxRequestLen in the domains vhost.conf and vhost_ssl.conf.

eg:
/var/www/vhosts/system/domain.tld/conf/vhost.conf
and
/var/www/vhosts/system/domain.tld/conf/vhost_ssl.conf

In Plesk 11.5.30 you can edit these files in

Plesk -> Domains -> domain.tld -> Web Server Settings

Maybe 11.0.9 has the same.
Anyway, just a thought.
Kind regards

Lloyd
 
Last edited:
Hi Lloyd,

Thank you for your quick reply too!

I will check to see if I have those settings and get back to you.

Cheers
Iskander
 
Hi Lloyd, Abdi,

Thank you for your replies.

Lloyd, I don't have the files you mention, there is the folder I believe. When you have written 'system' below I am not looking for a folder called system am I? it could be called xyz depending on the system installed? Just so I am looking in the correct place!

e.g.
/var/www/xyz/domain.tld/conf/vhost.conf

Abdi, Ok, great, thank you, I will have a look at the link you have provided. I have tried most of the things in there, will see if there is something I have missed out and get back to you.

Cheers
Iskander
 
Ah yes, older versions of Plesk it would be...

/var/www/vhosts/domain.tld/conf

You can just create the files if they don't exist.
And if that doesn't help, I think you'll have to edit the templates as Abdi suggested in his last post.

Hopefully one will help :)
Kind regards

Lloyd
 
Hi Lloyd,

You mentioned the vhost_ssl.conf do I need to do that one too as I have only been doing it to the vhost.conf?

Hi Abdi, sorry, no luxk with your suggestion, I will try it again if the above still isn't working!

Cheers
Iskander
 
Hi Lloyd,

You mentioned the vhost_ssl.conf do I need to do that one too as I have only been doing it to the vhost.conf?

Hi Abdi, sorry, no luxk with your suggestion, I will try it again if the above still isn't working!

Cheers
Iskander

Yeah put the same directives in the vhost_ssl.conf

EDIT: And restart Apache
 
Hi Lloyd,

Thank you for your reply, Shame still doesn't work!

I did restart apache too using
Code:
apachectl -k graceful

Something is definitely happening as my server keeps creating new httpd.include files - it still says the 16mb inside all of them though!

So it is like it is picking up the information from somewhere else! I have also set the plesk php settings to the settings I need. The php.ini file and phpinfo() show my settings it is just this little thing that not working!!

Is there anywhere else you could recommend me checking?

Cheers
Iskander
 
Hi mate,
the maxrequestlength will still show the same in the main http.include, but will be overridden by the vhost.conf and vhost_ssl.conf files.

http://download1.parallels.com/Ples...nistration-guide/index.htm?fileName=68694.htm

If you need to add your own directives to a domain's Apache configuration file, create a separate file called vhost.conf or vhost_ssl.conf with these directives in the /var/www/vhosts/domain.tld/conf/ directory. If you include directives that already exist in the domain's current httpd.include file, the system will use values specified in the vhost.conf or vhost_ssl.conf files.

To apply the changes from your configuration files, run the following command:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain domain.tld

I hope that helps
Kind regards

Lloyd
 
Hi Lloyd,

Code:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain domain.tld
Great thank you, that is what I have been trying, however, I have just noticed that your code above and the documentation says 'sbin' and not 'bin' like in other threads!

I will try that and see if that makes a difference!

Cheers
Iskander
 
Hi Lloyd,

Still no luck! Will have to go back through all my settings etc and make sure I didn't miss a step! It could be I have a typo somewhere!

Cheers
Iskander
 
Oh yeah so it does, didn't spot that.

/usr/local/psa/admin/bin/httpdmng --reconfigure-domain domain.tld

is how it should be.

Or
/opt/psa/admin/bin/httpdmng --reconfigure-domain domain.tld

for Ubuntu

I do notice your FcgidProcessLifeTime is 30 seconds, that seems low for uploading large files. Though I'm not sure if you can override that in the vhost.conf and vhost_ssl.conf files.
Maybe worth looking at.
Regards

Lloyd

EDIT: I just tried setting FcgidProcessLifeTime and FcgidMaxRequestLength in the vhost.conf files and had no complaint from Plesk 12.0.18 on Ubuntu 14 so in theory you should be able to set them per domain too.
 
Last edited:
Hi Lloyd,

Great thank you - Will try that and let you know if that makes a difference - fingers crossed :)

Just documenting what I am doing just incase anyone else comes across the same issue!
I have edited: /etc/httpd/conf.d/fcgid.conf

Then run:
Code:
/usr/local/psa/admin/bin/httpdmng --reconfigure-domain domain.tld

then:
Code:
apachectl -k graceful

then:
Code:
cat /etc/httpd/conf.d/fcgid.conf

outputs:
Code:
# This is the Apache server configuration file for providing FastCGI support
# via mod_fcgid
#
# Documentation is available at http://fastcgi.coremail.cn/doc.htm

LoadModule fcgid_module modules/mod_fcgid.so

<IfModule mod_fcgid.c>

<IfModule !mod_fastcgi.c>
    AddHandler fcgid-script fcg fcgi fpl
</IfModule>

  FcgidIPCDir /var/run/mod_fcgid/sock
  FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm

  FcgidIdleTimeout 3600
  FcgidProcessLifeTime 3600
  FcgidMaxProcesses 20
  FcgidMaxProcessesPerClass 8
  FcgidMinProcessesPerClass 0
  FcgidConnectTimeout 30
  FcgidIOTimeout 45
  FcgidInitialEnv RAILS_ENV production
  FcgidIdleScanInterval 10
  FcgidMaxRequestLen 1073741824
  FcgidMaxRequestInMem 1073741824

</IfModule>

Will see if that works now!!!!

Cheers
Iskander
 
Hi Lloyd,

Nope, not done it! error logs still say:
Code:
mod_fcgid: HTTP request length 16777506 (so far) exceeds MaxRequestLen (16777216)

Must be picking it up from somewhere else!! I will write a list of where I have edited things soon so I know exactly what I have done!

Cheers
Iskander
 
Hi Lloyd, Abdi,

Here is what I have change - still no joy!!

Recommended by host:
edited -> /usr/local/psa/admin/conf/php.ini
Code:
max_execution_time = 3600
max_input_time = 3600
memory_limit = 1G
post_max_size = 2147483647
upload_max_filesize = 2147483647

then applied it by :
Code:
service sw-cp-server restart

The php.ini setting for the individual domain have also already been set.

----------------------------------------------------------------------------------------
Created a file and folder structure as below:
/usr/local/psa/admin/conf/templates/custom/[domain]/domain/domainVirtualHost.php

set FcgidMaxRequestLen to 2147483648

----------------------------------------------------------------------------------------

created files:
/
var/www/vhosts/[domain]/conf/vhost.conf
/var/www/vhosts/[domain]/conf/vhost_ssl.conf

Added to the file:
Code:
<Directory /var/www/vhosts/[domain]/>
php_admin_value upload_max_filesize 1000M
php_admin_value post_max_size 1000M
php_admin_value memory_limit 1024M
</Directory>

oh yes, forgot to add I have also edited:
/etc/httpd/conf.d/fcgid.conf
Code:
  FcgidIdleTimeout 3600
  FcgidProcessLifeTime 3600
  FcgidMaxProcesses 20
  FcgidMaxProcessesPerClass 8
  FcgidMinProcessesPerClass 0
  FcgidConnectTimeout 30
  FcgidIOTimeout 45
  FcgidInitialEnv RAILS_ENV production
  FcgidIdleScanInterval 10
  FcgidMaxRequestLen 1073741824
  FcgidMaxRequestInMem 1073741824

Is there any other things that people can recommend me doing?

Cheers
Iskander
 
Last edited:
Back
Top