From XAMPP to Vagrant WordPress

Ernest Marcinko Blog, Hosting, Testing, Tutorials, Wordpress 3 Comments

I’m sure most if not every developer is using some kind of local server tool for development. The greatest advantage of using local development server is that you don’t depend on a hosting provider, and it works without internet as well (in most cases). I’ve been using XAMPP for a very long time, as it was very comfortable to use, …

Bulletproof queries in WordPress – preventing SQL injections

Ernest Marcinko Blog, Tutorials, Wordpress Leave a Comment

When developing WordPress plugins, securing potential SQL injections is extremely important. With a well written SQL injection the attacker might gain access to your database, your blog back-end and steal your data, or make modifications you won’t even notice. What is an SQL injection? SQL injection is a technique where malicious users can inject SQL commands into an SQL statement, …

Swap file – Beginners guide to Digital Ocean

Ernest Marcinko Hosting, Tutorials 3 Comments

If you reached this step, your server is up and running flawlessly. However after gaining some traffic it will run out of memory and some of the processes will fail. To avoid that, we need a swap file. If you need more information I recommend reading the original swap file tutorial on digital ocean. This article is basically a shorter …

Droplet Setup – Beginners guide to Digital Ocean

Ernest Marcinko Hosting, Tutorials Leave a Comment

At this point you have everything prepared, got your site completely backed up, it’s time to go. Log in to your digital ocean account, if you don’t have one, you can create quickly on their website: digitalocean.com Creating your droplet What’s a droplet? Droplet is a virtual private server, that’s what they call it at Digital Ocean. After successfully creating your account, …

Mailing – Beginners guide to Digital Ocean

Ernest Marcinko Hosting, Tutorials 3 Comments

Sending mails properly is probably the hardest task to achieve with Digital Ocean. I will present two ways of doing that, and I strongly recommend going with the second one – using a 3rd party SMTP service. 1. way: Sendmail This is the default way, the sendmail service is most likely already installed on your system. Still, run this command …

FTP & SFTP – Beginners guide to Digital Ocean

Ernest Marcinko Hosting, Tutorials 4 Comments

So far we have a running web server with a working database, but we don’t have FTP access. SFTP However we do have SFTP access. How so? The root and the demo user are valid SFTP accounts as well. So if you have an SFTP client like Filezilla or Notepad++, you can use the demo account to upload your files. I …

Stay connected box for WordPress without a plugin

Ernest Marcinko Tutorials, Wordpress 1 Comment

I’ve done a lot of research to look for a plugin, that can add a “stay connected with us” box below my posts. Unfortunately there is none. The main reason for this, is because there is no proper hook in wordpress to add a content block after the sinlge post. Fortunately, the workaround isn’t too hard. It’s attractive, visitors will …