Montevideo Uruguay

I recently had the pleasure of visiting Montevideo Uruguay for work. To be honest before working at my current employer I had never really heard of the country other than knowing it was in Latin America. After my most recent trip in February to Montevideo I must say if you have never been you should make a point to visit - Read more

Mac OS Yosemite and ZFS raid not mounting

I recently updated my mac pro from Mavericks to Yosemite.  Afterwords my ZFS raid 5 stopped working (was not seen by the system). Please read this entire guide and the warnings before trying to fix your issue! Also please backup your data before trying to fix your zfs raid. To fix this I did the following: Next i upgraded my zpool Read more

Meet Parker

Just a quick post - but meet Parker, a new member of my family! He is a great little kitten who is playful and really enjoys hanging out with me. When I got this kitten he was .7 lbs, now he's almost 3 lbs he's growing fast! Hes a handful but a blast to have Read more

Installing WebKeePass

I wanted to install WebKeePass, an easy to use password manager which helps you to manage your passwords in a secure way via a web interface. Its also totally free and very robust which were major bonus in my oppinion. There are many quides out there but I did not find a single complete, end-to-end, guide that walks you though the Read more

php

Internal Server Error 500 when uploading files via WordPress

Well as the title says I had been getting an internal-server-error-500/ error when uploading files via WordPress. I also had these error in my other non-wordpress sites like my MediaWiki. I use ISPconfig to host everything so I went down a rabbit hole to fix this. I saw several guide / suggestions on the issue and no single guide worked for me so below is a list of the steps I took to fix the issue.

Its worth noting this was a combination of ISPconfig and PHP that was causing the error and thats why most of the single guides to fix it did not work for me.

As normal follow this at your own risk and it helps if you have linux experience to tailor these to fit your system.

1) First under ISPconfig I added the following settings in the custom PHP setting section of each website having issuesdisplay_errors = On

post_max_size = 50M
upload_max_filesize = 50M

2) ssh to your server and edit the php.ini file located in: /etc/php5/cgi

cd /etc/php5/cgi
nano php.ini

change the upload_max_filesize = 2M from 2M to 50M
also change post_max_size = 2M to 50M

exit and save file

3) Last edit fcgid config file

cd /etc/apache2/mods-available/
nano fcgid.conf

add the line MaxRequestLen 52428800

Save and exit

I added this line under FcgidConnectTimeout 20 this is what mine looks like

<IfModule mod_fcgid.c>
FcgidConnectTimeout 20
MaxRequestLen 52428800
<IfModule mod_mime.c>
AddHandler fcgid-script .fcgi
</IfModule>
</IfModule>

4) restart server and wallah you can now upload any image that is 50mb or less!

Posted on by admin in How To's, Technology Leave a comment