WordPress – HTTP Error

KB ID 0001335 

Problem

Quite a few times after I rebuilt my server, (and WordPress site), I saw the following when uploading images etc.

HTTP Error

Solution

I was quite sure everything was setup OK, I had set the max file upload limits set, but it turns out I needed to add a ‘memory limit’ in my wp-config.php file before the error ceased. For completeness I’ll include the other usual suspects, in case yours is setup a little differently from mine.

Edit Your php.ini File

Note: If you are running an earlier version of php, your path may be different.

[box]

sudo nano /etc/php/7.0/fpm/php.ini

[/box]

Ensure the following has been set;

[box]

upload_max_filesize = 50M
max_file_uploads = 20
post_max_size = 50M

[/box]

Edit Your nginx.conf File

(Obviously don’t do this if you are running Apache!)

[box]

sudo nano /etc/nginx/nginx.conf

[/box]

In the very bottom of the http section, (before the end ‘curly’ bracket ‘}’), add in the following;

[box]

client_max_body_size 100m;

[/box]

Edit Your wp-config.php File

[box]

sudo nano /var/www/html/wp-config.php

[/box]

Add the following to the very bottom of the file;

[box]

define('WP_MEMORY_LIMIT', '120MB');

[/box]

Related Articles, References, Credits, or External Links

NA

WSUS Error – ‘An HTTP error has occurred’

KB ID 0000796 

Problem

Seen on SBS 2011 and Server 2008 R2. When running the WSUS configuration wizard, at the ‘Connect to Upstream Server’ page, connection fails;

An HTTP error occurred Details…

When viewing details you see;

WebExpeption: The request failed with the error message:
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href-“%2fmicrosoftupdate%2fv6ferrorinformation.aspx%3ferrror%3d15”>here</a>.</h2>
</body></html>

Well that’s great, thanks for that?

Solution

1. Nice easy one to fix, download and install this update.

2. In my case it asked for a reboot post install, however if yours does not, I would restart the server and try again. Post reboot it worked fine.

Related Articles, References, Credits, or External Links

NA

Server 2012 – Certificate Services – ‘HTTP Error 403.14 – Forbidden’

KB ID 0001067

Problem

I spun up a new Certificate Services server on my test network today, because I needed to issue some certificates for something I’m working on. It was a pretty vanilla build, just the Certificate Services role, and the Web Enrollment feature.

Solution

I spent a while searching this one down, as you can see (above) it was showing me the root cause of the problem. The page you normally see when you log into the web portal is default.asp, and that file is not in that folder.

1. Open IIS manager and then open the settings for the CertSrv virtual directory. Use the browse button to change the location.

2. Change the location to the sub folder en-US (or if you are in a different locale select your local one). > OK > OK.

3. Restart the web services and try again.</p?

Related Articles, References, Credits, or External Links

NA