Sometimes error.log gets really big and does not seem to rotate properly. Here’s how to quickly empty it’s contents without deleting it.
sudo truncate -s0 file
Slicksta had to use this command when cat and /dev/null > both failed because of permission denied.
Slicksta needed to do some standard deviation stuff. There is a math package for PHP but it is not installed by default.
sudo apt-get install
php-pear sudo pecl install stats
Next, edit /etc/php5/apache2/php.ini and add the following under the Dynamic Extensions section:
Restart apache and you should see a “Stats” section listing the version number when you view php_info.
ls | wc -l
We don’t quit, we don’t cower, we don’t run. We endure and we conquer.– Kobe Bryant, on “Mamba Mentality”
Run this SQL statement to get a count of users grouped by their email provider:
SELECT substr(user_email, locate("@", user_email)) as 'domain', COUNT(ID) as 'emails'
GROUP BY domain
ORDER BY emails DESC