dennis henry
ramblings of an IT professional
ramblings of an IT professional
Dec 8th
Ran into an issue today where a domain was showing in the cPanel “Show IP Address Usage” twice in the “FTP Usage” column. This was distressing the client so I looked into it and it appears this list is pulled from the /etc/pure-ftpd/ directory, which has the following directory structure:
root@server(/etc/pure-ftpd)$ ll total 16 drwxr-xr-x 2 root root 4096 Dec 8 13:42 ./ drwxr-xr-x 90 root root 12288 Dec 8 13:42 ../ lrwxrwxrwx 1 root wheel 25 Dec 8 13:40 1.2.3.4 -> /home/user1/public_ftp/ lrwxrwxrwx 1 root wheel 24 Dec 8 13:40 2.3.4.5 -> /home/user2/public_ftp/ lrwxrwxrwx 1 root wheel 25 Dec 8 13:40 3.4.5.6 -> /home/user3/public_ftp/ lrwxrwxrwx 1 root wheel 25 Dec 8 13:40 4.5.6.7 -> /home/user4/public_ftp/ lrwxrwxrwx 1 root wheel 25 Dec 8 13:40 5.6.7.8 -> /home/user5/public_ftp/ lrwxrwxrwx 1 root wheel 23 Dec 8 13:40 6.7.8.9 -> /home/user3/public_ftp/
In my case, user3 had two IPs pointing to his public_ftp directory which caused the issue. I removed the symlink and then the IP Usage showed properly.
Just a quick fix for anyone else who experiences this issue!
Nov 30th
So today I was having an issue where, for some reason, an incredibly long script in our script repository built using CakePHP would not display the GeSHI syntax-highlighted code. I tore apart the code looking for an answer and the only unique attribute to this script was its very long length (around 1k lines, over 50k characters). I eventually narrowed it down to the preg_replace that was being used in the CakePHP wrapper for GeSHI I was using and discovered that the pcre.backtrack_limit was too low at the default of 10000 (10 thousand). I upped the limit to 10000000 (10 million) and it’s now able to display the syntax highlighted code without issue.
Just thought I’d make a quick post because I could not find another blog with this solution. Hope this helps someone else in a similar predicament!