Web Development


Shared Hosting Adventures

October 9, 2016 // 0 Comments

Did you know that 90% of the sites online are set up on a shared hosting account? Which means they share the same server resources sometimes with hundreds or even thousands of other sites. If you’re reading this and have your own small online business or think about having one, it is likely you had, still use or will choose a shared hosting plan for your first endeavors. The decisive reasons why we start from a shared server usually are the reduced cost and the minimum requirements of technical skills you need to operate a site (or more) under a shared hosting account. But running a site on a shared hosting account is not without its adventures. I’m far from being an expert in server administration, but as a one-man operation I had to learn and improve myself in areas where I lacked expertise. The administration of the server itself is in the hands of the webhosting staff. Which is good if you are not a technical person. But if you have a growing online business, here are some areas where you will most likely hit the roof of your hosting plan setup: no or limited live support resource limitations: CPU, memory, bandwidth, disk space, maximum concurrent connections to the database. The more sites are hosted on the shared server, the stricter these limitations get and are likely to cause performance issues. you are constrained to use the available software; you can’t install new software or upgrade an existing one on the shared server limited configuration ability: for instance, it’s unlikely you will have access to change the settings of the Apache server, if that’s what is installed on the shared server security concerns. Sharing server resources has its risks. A loophole in one of the sites hosted on the […]

Automatically Process New Subscribers That Join Your List? Here’s How.

September 29, 2015 // 2 Comments

Have you ever needed to automatically process new subscribers that join your list(s)? I have. If you don’t own an autoresponder service, but you are technically savvy, you can do that. Now let’s explain a bit how things work for Adrian’s Hub. As you might’ve noticed from the menu, we have a Private Hub for back-end purposes. But there isn’t a direct way to join the Private Hub (and that’s how I want it). Here’s how things work in our case: subscribe to Adrian’s Hub newsletter, then you can have access to your own Private Hub back-end by (re)setting your password. So, for this particular case (and others), we need to be able to automatically process each new subscriber to our list. There are two ways to do that: 1. If your autoresponder service has an application programming interface (API) and allows callback functions to be attached to various events (including new subscriber signing up), then that’s the way to do it. It works in real-time and should be secure. You might as well be interested in events like subscriber opening an email, subscriber updating his or her information (name, email etc.), subscriber opting out from a campaign. 2. But what if your autoresponder service doesn’t have that? Well, there are two options here: either switch to one that has or… process new subscriber email alerts you receive from your autoresponder. Now, let’s elaborate on the latter, because that’s what I did. The way to process incoming emails, when your site is hosted on a Linux server is this: 1. You need to write a script that will analyze every incoming email to the email address where you receive the notifications from your autoresponder service. The new subscriber email alerts have a standard structure, so you simply need to parse […]