DanH42

  • Total activity 44
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 10

Posts

Recent activity by DanH42 Recent activity Votes
  • MySQL username prefix not being truncated

    I noticed recently one of our cPanel servers (v58) has stopped truncating usernames for database prefixes. This reduces the number of characters left for usernames to sometimes only a couple charac...

  • Permanently remove cPanel redirects

    We keep all our cPanel services on a dedicated IP, and don't allow connections on non-HTTP ports on any of our other IPs. With this redirection in place, bots will hit example.com/cpanel, get redir...

  • EasyApache Tomcat JDBC MySQL Connector

    I'm running WHM 11.50 (EA 3.32.3) with a combined PHP/Tomcat setup. Everything is currently working, but in order to get connections working to the MariaDB 10.0.21 server, I had to swap out the ins...

  • Create a subdomain on account creation

    I've like to be able to automatically create a subdomain of an account's primary domain when the account is created. The name of the subdomain will not change between accounts; it'll always be subd...

  • Publicly-accessible PHP script run as root

    I've got some pre-defined maintenance functions (shell scripts) I'd like to be able to be triggered from outside the server. They're non-critical, and there's no risk if someone else gets hold of t...

  • Remote backup trouble

    I've got remote backups to Amazon S3 enabled, and I've also disabled retaining backups locally. However, while user accounts seem to be backed up fine, system backups are left on the local drive, a...

  • Block a port on certain IPs using CSF

    I've got a server with multiple public-facing IPs, and I'd like certain services to only be bound on certain IPs. Services like SSH and FTP can simply be configured to only bind to a single interfa...

  • Change permanent ModSecuity block to temporary

    I'm using mod_security with a subset of the OWASP ruleset, and I'm still getting lots of false positives. Almost every time that happens, the IP responsible gets a permanent block in iptables, whic...

  • IP address troubles

    Every couple days, my cPanel server will stop being communicating on one of its IPs. If I look in WHM, the IP isn't listed, but if I try adding it, it says it's already been added. Running /etc/rc....

  • Automatically redirect requests for root domain to www subdomain on all new sites

    I'd like to have all new domains include a rule, either in a VirtualHost or a .htaccess, that redirects requests to the root domain (example.com) to a subdomain (www.example.com). Currently, I'm do...