[Solved] Error while adding a attachment to an invoice

When i add an attachment (jpg) to an invoice i get the following error:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>ERROR 500 - Internal Server Error!</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex" /> <style type="text/css"><!-- body { color: #444444; background-color: #EEEEEE; font-family: 'Trebuchet MS', sans-serif; font-size: 80%; } h1 {} h2 { font-size: 1.2em; } #page{ background-color: #FFFFFF; width: 60%; margin: 24px auto; padding: 12px; } #header { padding: 6px ; text-align: center; } .status3xx { background-color: #475076; color: #FFFFFF; } .status4xx { background-color: #C55042; color: #FFFFFF; } .status5xx { background-color: #F2E81A; color: #000000; } #content { padding: 4px 0 24px 0; } #footer { color: #666666; background: #f9f9f9; padding: 10px 20px; border-top: 5px #efefef solid; font-size: 0.8em; text-align: center; } #footer a { color: #999999; } --></style> </head> <body> <div id="page"> <div id="header" class="status5xx"> <h1>ERROR 500 - Internal Server Error!</h1> </div> <div id="content"> <h2>The following error occurred:</h2> <p>The requested URL caused an internal server error.</p> <P>If you get this message repeatedly please contact the <!--WEBMASTER//-->webmaster<!--WEBMASTER//-->.</p> </div> <div id="footer"> <p>Powered by <a href="http://www.ispconfig.org">ISPConfig</a></p> </div> </div> </body> </html>

Please save your web server error logs on paste.invoiceplane.com and share the link here.

While i was searching how to enable logs i came across this site:

http://www.evilbox.ro/linux/ispconfig-internal-server-error-500/

My etc/apache2/mods-available/fcgid.conf file look like this:

<IfModule mod_fcgid.c>
  FcgidConnectTimeout 20

  <IfModule mod_mime.c>
    AddHandler fcgid-script .fcgi
  </IfModule>
</IfModule>

I Added the line: MaxRequestLen 15728640

Now it looks like this:

<IfModule mod_fcgid.c>
  FcgidConnectTimeout 20
  MaxRequestLen 15728640

  <IfModule mod_mime.c>
    AddHandler fcgid-script .fcgi
  </IfModule>
</IfModule>

Now its working and i can upload file up to 15 MB

Thnx for the help anyway :smile:

1 Like