403 Error after adding a new website directory

On an ubuntu server it is common to host site files in a directory with a structure like ‘/var/www/example.com’. One might wish to separating a subdomain out from site files in another directory. Something like ‘/var/dev/example.com’. How to fix or prevent a 403 error after adding a new site directory To prevent a 403 error,… Read more 403 Error after adding a new website directory

SECURE COPY (SCP): EXAMPLES OF HOW TO USE SECURE COPY

Examples of how to use Secure Copy (scp) scp uses ssh for data file transfer between servers and provides the same level of security as ssh. Secure copy the file “somefile.txt” from a remote host to your local host

  Secure Copy your file “somefile.txt” from the local host to a remote host

Read more SECURE COPY (SCP): EXAMPLES OF HOW TO USE SECURE COPY

PHP What is Opcode Cache and When to Use it

Are you wondering: What is Opcode Cache and When to Use it? I just read an excellent article entitled PHP Performance I: Everything You Need To Know About OpCode Caches published by Engine Yard. The article is a transcript of a video on PHP opcode cache, actually. Engine Yard goes into just enough detail, allowing… Read more PHP What is Opcode Cache and When to Use it

[SOLVED] ERROR mysqli_real_connect(): (HY000/2002): No such file or directory

If you are getting a wordpress error that starts with “mysqli_real_connect(): (HY000/2002):” and includes “No such file or directory” and ends with “wp-includes/wp-db.php on line 1490”, then here is what resolved the issue for me. In the wp-config.php file, include (or change) this line from define(‘DB_HOST’, ‘localhost’); to define(‘DB_HOST’, ‘127.0.0.1’); I put it near the… Read more [SOLVED] ERROR mysqli_real_connect(): (HY000/2002): No such file or directory

[SOLVED] How to Fix $.ajax() Not Working ie 8, ie 9 and ie 10

  jQuery is an great tool to use for making ajax calls. As usual MS Internet Explorer has to make things that would otherwise be standard — difficult. Setting aside any rants about how much hair one can pull out in the days it takes to accomplish something that should have been easy, here is what… Read more [SOLVED] How to Fix $.ajax() Not Working ie 8, ie 9 and ie 10

SOLVED: /usr/bin/env: node: No such file or directory

While working with NodeJS on an AWS Ubuntu 14 box, I got the following error:

On some Linux distributions, AWS in my case, there is a namespace issue which causes errors at times. The error is a result of some distributions installing NodeJS with the name nodejs as opposed to node. The fix is easy Simply create a… Read more SOLVED: /usr/bin/env: node: No such file or directory