using inotify-tools to trigger events
What are Inotify-tools? Inotify-tools is a C libary that interface with the inotify kernel function. Inotify-tools are available on kernels later than 2.6.13. These tools can monitor or act based on file system events, this is particularly useful for scripting out actions you would like to happen if an event takes place. Install on Fedora […]
Journalctl Introduction and Examples
journalctl was added into the systemd release of CentOS 7 and has been part of Fedora since 17. It is a logging system for querying and printing messages form the journal. It can be used in with or replacing older logging services like rsyslogd. Journalct also uses highlighting for high priority messages in red and […]
PHP 5.2 in cPanel easy apache 4
PHP 5.2 in removed from cPanel’s easy apache 4 for quite some time. However you can get it to run using a CGI handler. This isn’t really recommended as newer versions of PHP offer both better performance and security when PHP 5.2 went end of life. That said, certain old code wont work without and if […]
Disable WordPress Crontab and Run it Manually
By default WordPress runs wp-cron.php every time someone visits your site. This causes increased load on the server each time a page is requested. On low traffic sites this really isnt noticeable but on higher traffic sites this can become problematic and cause increased load and resource consumption on the server. Turn off the WordPress […]
How To Copy MySQL Grants
What Are MySQL Grants? MySQL grants are privileges issued to users in MySQL. They allow users different permissions to different databases, specific tables or even fields. In certain situations, such as migrating to a new server, you will need to duplicate those grants from one user to another or copy all of the grants to […]
Increasing MySQL Max Connections
You can see what the current setting is by running the following SQL command from the MySQL command line tool, phpMyAdmin, or a similar tool: show variables like "max_connections"; This will return a resultset like this, showing you what your current max connections setting is: MariaDB [(none)]> show variables like "max_connections"; +-----------------+-------+ | Variable_name | Value | […]
Reset a WordPress Password with MySQL
This is how to reset a WordPress password through ssh/command line on a Linux server using the MySQL client. This same practice could be executed via PHPMyAdmin or another web based MySQL tool. WordPress stores the passwords in a one-way encryption hash (md5). To start this process you need to login to the server via […]
Most Commented