Hostbill knowledgebase url too long

When using hostbill knowledgebase you may notice articles with long url’s are not working whereas articles with short urls do,

Add this to your php.ini

suhosin.get.max_array_index_length = 300
suhosin.request.max_array_index_length = 300
suhosin.get.max_name_length = 300
suhosin.request.max_varname_length = 300

Plesk API 404

Suddenly without warning our whmcs started returning a – (hyphen) when trying to create a package, looked in /usr/local/psa/admin/logs/httpsd_access_log and saw 404 errors for enterprise/control/agent.php

The default plesk filename for the agent file begins upper case –


Whereas whmcs calls lowercase agent.php

Weird, anyway create a symbolic link from agent.php -> Agent.php:

cd /usr/local/psa/admin/htdocs/enterprise/control/

ln -s Agent.php agent.php

CSF Firewall Parser

I’m currently working on a CSF firewall parser, csf generates lots of useful info about user processes and I wanted a way to investigate these messages and lessen abusive behaviour on our servers, there are a couple of screenshots below, the code is pretty alpha at the moment but if anyone wants a copy just contact me.

WHMCS Onapp Configurable Options

I couldn’t seem to figure out how the whmcs configurable options worked in onapp, by looking through the code its become apparent that the module uses the sort order of the configurable option and adds that on to the base package, so for e.g. you have a base vps package set to 5Gb and wanted to offer upgrades to 10 and 15, you would create configurable options named: 5, 10, 15 but would set the sort order on these as 0, 5, 10 respectively, if the user chooses the 10 configurable option the resulting disk space would be 5Gb + 5 (the sort order value).

Kayako Separate outgoing SMTP

I thought this was going to be impossible, we’re trying to setup several companies in one kayako, outgoing smtp settings are global and not per queue, to fix this I set the details for the outgoing smtp to 127.0.01 with no auth, this send out the messages with the from address properly configured as per the queue.

This probably wont work on every setup but it works on mine which is a standard cpanel setup.


I was testing a REST interface and always getting 403 – forbidden, turns out this is the apache default response for put requests, well at least thats how its setup by default on apache with cPanel, to fix create a conf file:


And add:

<Directory /wheverever>
Order allow,deny
Allow from all

Then test apache aint gonna break with:


If all ok, then restart apahce from WHM and you are good to go.