Forum

Wp-admin blank after installing WP Super Cache

Nick
20 September 2015, 17:20
Hi there,

I have a linode 1GB VPS, Debian 7, Hiawatha 9.14, MariaDB and PHP-FPM. It seems to be a very fast, simple and stable combination so I'm very grateful for all the hard work.

However, I have a couple of small problems with my 2 Wordpress installs. The one I'd like to get fixed first though is that both installs suffer from a "The connection was reset" error immediately after clicking the upload button in either plugins, or themes.

This does not seem to be a uplaod size issue as fpm is set to allow 20MB uploads and uploading a theme of 10M still causes the problem.

Also (might be related) when I try to install a plugin, theme or update, the browser does not update with the progress. there seems to be a definite time constraint on the process as my browser tab icon spins for around 5 seconds and then stops.

I hope the below is enough info.

My php5-fpm php.ini is here http://pastebin.com/hLXTa2LX

Here is my hiawatha.conf

# Hiawatha main configuration file
#

# VARIABLES
# With 'set', you can declare a variable. Make sure the name of the
# variable doesn't conflict with any of the configuration options. The
# variables are case-sensitive and cannot be redeclared.
#
#set LOCALHOST = 127.0.0.0/8


# GENERAL SETTINGS
#R
ServerId = www-data
ConnectionsTotal = 1000
ConnectionsPerIP = 25
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log


# BINDING SETTINGS
# A binding is where a client can connect to.
#
Binding {
Port = 80
# Interface = 127.0.0.1
MaxKeepAlive = 30
TimeForRequest = 3,20
}
#
#Binding {
# Port = 443
# Interface = ::1
# MaxKeepAlive = 30
# TimeForRequest = 3,20
# TLScertFile = hiawatha.pem
#}


# BANNING SETTINGS
# Deny service to clients who misbehave.
#
#BanOnGarbage = 300
#BanOnMaxPerIP = 60
#BanOnMaxReqSize = 300
#KickOnBan = yes
RebanDuringBan = yes


# COMMON GATEWAY INTERFACE (CGI) SETTINGS
# These settings can be used to run CGI applications.
#
#CGIhandler = /usr/bin/perl:pl
#CGIhandler = /usr/bin/php-cgi:php
#CGIhandler = /usr/bin/python:py
#CGIhandler = /usr/bin/ruby:rb
#CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi
#
FastCGIserver {
FastCGIid = PHP5
ConnectTo = /var/lib/hiawatha/php5-fpm.sock
Extension = php
}


# URL TOOLKIT
# This URL toolkit rule was made for the Banshee PHP framework, which
# can be downloaded from http://www.hiawatha-webserver.org/banshee
#
#UrlToolkit {
# ToolkitID = banshee
# RequestURI isfile Return
# Match ^/(css|files|images|js|slimstat)($|/) Return
# Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
# Match .*\?(.*) Rewrite /index.php?$1
# Match .* Rewrite /index.php
#}

UrlToolkit {
ToolkitID = cache-control
Match ^/.*\.(css|eot|gif|htm|html|ico|jpeg|jpg|js|otf|pdf|png|ps|psd|svg|swf|ttf|txt|woff|woff2)(\?v=.*|\?ver=.*)?(/|$) Expire 1 weeks
}
#
UrlToolkit {
ToolkitID = wordpress
RequestURI exists Return
Match [^?]*(\?.*)? Rewrite /index.php$1
}


# DEFAULT WEBSITE
# It is wise to use your IP address as the hostname of the default website
# and give it a blank webpage. By doing so, automated webscanners won't find
# your possible vulnerable website.
#
Hostname = 127.0.0.1
WebsiteRoot = /var/www/hiawatha
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
#ErrorHandler = 404:/error.cgi


# VIRTUAL HOSTS
# Use a VirtualHost section to declare the websites you want to host.
#
#VirtualHost {
# Hostname = www.my-domain.com
# WebsiteRoot = /var/www/my-domain/public
# StartFile = index.php
# AccessLogfile = /var/www/my-domain/log/access.log
# ErrorLogfile = /var/www/my-domain/log/error.log
# TimeForCGI = 5
# UseFastCGI = PHP5
# UseToolkit = banshee
#}

#2
VirtualHost {
Hostname = mydomain2.tld, *.mydomain2.tld
WebsiteRoot = /var/www/hiawatha/mydomain2.tld
StartFile = index.php
AccessLogfile = /var/www/hiawatha/mydomain2.tld/access.log
ErrorLogfile = /var/www/hiawatha/mydomain2.tld/error.log
TimeForCGI = 5
UseFastCGI = PHP5
UseToolKit = wordpress
}


#3
VirtualHost {
Hostname = mydomain.tld, www.mydomain.tld, *.mydomain.tld
WebsiteRoot = /var/www/hiawatha/website-dir
StartFile = index.php
AccessLogfile = /var/www/hiawatha/website-dir/access.log
ErrorLogfile = /var/www/hiawatha/website-dir/error.log
TimeForCGI = 5
UseFastCGI = PHP5
UseToolKit = wordpress
}


# DIRECTORY SETTINGS
# You can specify some settings per directory.
#
#Directory {
# Path = /home/baduser
# ExecuteCGI = no
# UploadSpeed = 10,2
#}



/var/log/hiawatha/error.log.

****My IP****|Sun 20 Sep 2015 13:16:40 +0100|/var/www/hiawatha/mydomain2.tld/wp-admin/plugin-install.php|CGI returned 500 Internal Error
****My IP****|Sun 20 Sep 2015 13:16:48 +0100|/var/www/hiawatha/mydomain2.tld/wp-admin/plugins.php|CGI returned 500 Internal Error
****My IP****|Sun 20 Sep 2015 13:16:51 +0100|/var/www/hiawatha/mydomain2.tld/index.php|CGI returned 500 Internal Error
****My IP****|Sun 20 Sep 2015 13:16:56 +0100|/var/www/hiawatha/mydomain2.tld/index.php|CGI returned 500 Internal Error
****My IP****|Sun 20 Sep 2015 13:16:58 +0100|/var/www/hiawatha/mydomain2.tld/index.php|CGI returned 500 Internal Error
****My IP****|Sun 20 Sep 2015 13:17:00 +0100|/var/www/hiawatha/mydomain2.tld/index.php|CGI returned 500 Internal Error
****My IP****|Sun 20 Sep 2015 13:22:33 +0100|/var/www/hiawatha/mydomain2.tld/wp-admin/admin-ajax.php|CGI returned 500 Internal Error
****My IP****|Sun 20 Sep 2015 13:43:47 +0100|/var/www/hiawatha/mydomain2.tld/wp-admin/themes.php|CGI returned 500 Internal Error
****My IP****|Sun 20 Sep 2015 13:43:51 +0100|/var/www/hiawatha/mydomain2.tld/wp-admin/themes.php|CGI returned 500 Internal Error
****My IP****|Sun 20 Sep 2015 13:43:54 +0100|/var/www/hiawatha/mydomain2.tld/index.php|CGI returned 500 Internal Error



If you need anything further then please let me know


Thanks for looking!
Nick
20 September 2015, 17:43
Sorry, the title is wrong. I was going to post about wp super cache but decided to solve the above problem first.
Hugo Leisink
21 September 2015, 20:52
When dealing with large uploads, there are two things to consider: does my webserver accept such a large request and does my CGI application accept such a large request? It seems you took care of the CGI application (PHP in this case) to make it accept, but not the webserver. You can make Hiawatha accept larger requests via the MaxRequestSize setting.
Nick
22 September 2015, 21:26
Thanks for the help Hugo. I'm now able to upload sizable files through wordpress. I've also solved another related issue.

Do you have a donation address?
Hugo Leisink
23 September 2015, 12:38
Good to hear that it works. No, I don't have a donation address. That's not needed. Instead, you can help me make Hiawatha more known.
Nick
23 September 2015, 23:49
No Problem! I'll be plugging a blog which praises Hiawatha soon.

As a side note, I've done some tests with caching in Wordpress enabled and a 1.2 meg homepage on tools.pingdom.com loads in under 500ms with a perf of 99%. That can't be bad!!! (google fonts is the other 1%)

I'm very happy you are doing what you do!

Thank you
Nick

Thanks Hugo
Nick
This topic has been closed.