Ubuntu 14.04.5 LTS (Trusty Tahr) MySQL 5.6 PHP 5.6

Published on Author JFLeave a comment

Installing Ubuntu 14 with MySQL 5.5/5.6 and PHP 5.6 (with Apache 2.4) Things change quickly and you often find yourself on an older version of Ubuntu, but need non-standard installations. This build was completed on 4-27-2017 and should remain relatively stable in terms of instructions. This configuration also picks up after installing a clean copy of Ubuntu.… Continue reading Ubuntu 14.04.5 LTS (Trusty Tahr) MySQL 5.6 PHP 5.6

Linux cheat sheet for command line tools

Published on Author JFLeave a comment

Welcome to my personal copy/paste crib sheet for everything I use on Linux. I am far from a guru and it is not my full time job, so sometimes I can’t remember the command and its switches exactly. This is primarily CentOS 6.x. Your mileage may vary. See anything I should add? Comment below! Add… Continue reading Linux cheat sheet for command line tools

Raspberry Pi 3 Static IP WiFi Configuration

Published on Author JFLeave a comment

Here’s a quick how-to on assigning a static IP address to your Raspberry Pi 3.You’ve got your Raspberry Pi 3 (this is for Pi 3 only as far as I am concerned) connected to your local network via WiFi using IPv4. I did this by connecting a mouse, keyboard, and monitor, then using the Desktop to add… Continue reading Raspberry Pi 3 Static IP WiFi Configuration

Linux – use find to output directories recursively with permissions

Published on Author JFLeave a comment

Go to the directory (or just add the dir to the path) # sudo find ./ -type d -ls To output it to a file: # sudo find ./ -type d -ls > somefilename.txt Another good reference: http://www.tecmint.com/35-practical-examples-of-linux-find-command/ Of course, there are other ways: # sudo find / -type f -perm 0777 # sudo find /… Continue reading Linux – use find to output directories recursively with permissions

Simple PHP SPAM tracking and logging tip

Published on Author JFLeave a comment

This one’s easy. Place this in your php.ini (don’t forget to restart, if needed). mail.add_x_header = On mail.log = /var/log/phpmail.log You can change the log file location, of course. Note that mail.add_x_header  will add the script file to the email header allowing someone to see which file generated the email. This may be a security… Continue reading Simple PHP SPAM tracking and logging tip

Fatal error: Allowed memory size of +Drupal

Published on Author JFLeave a comment

This post is not about adding memory in php.ini or .htaccess or settings.php in Drupal. You might be getting the Fatal Error because of URL redirects causing infinite loops induced by running database update scripts! But, here’s the skinny on adding more memory accessible by Drupal. This will depend on your hosting provider and how much… Continue reading Fatal error: Allowed memory size of +Drupal

MySQL Performance Tuning Scripts

Published on Author JFLeave a comment

A couple handy scripts to help tune MySQL https://answers.launchpad.net/mysql-tuning-primer/+question/166577https://launchpad.net/mysqltuner https://answers.launchpad.net/mysql-tuning-primer/+question/166577 Update: not worth using these as the actually end being self-defeating. They use the very same resources that they suggest modifying and can skew the results. Apparently, tuning your db should be more about configuring your db for your purposes. http://dba.stackexchange.com/questions/45551/how-to-optimize-table-cache