Reset Permissions to WordPress Site for Files and Directories

If your permissions are incorrect for files and folders in a webroot domain of a WordPress site more than likely you’ll get a server 500 error. Here is how to fix them by resetting the permissions via the command line,…
In macOS, show the difference of 2 folders / files in the Command Line

In macOS, you can compare and show the differences of files in two folders in the Command Line by using the diff command. With folders you use rq as an argument and pass in the 2 folder names on the…
Restart Start Stop MySQL Server from Command Line, macOS, Linux

To restart, start or stop MySQL or mariadb database servers from the command line, type the following at the shell prompt… On Linux start/stop/restart from the command line: /etc/init.d/mysqld start /etc/init.d/mysqld stop /etc/init.d/mysqld restart Some Linux flavors offer the service…
Restarting Apache Web Server from the command line macOS or Linux

To restart, start or stop Apache web server from the command line interface using either Linux or macOS, use the commands below, these commands should be executed as the root user otherwise prefix them with ‘sudo’