Recently I had a task in which I had to create dkim keys for a massive amount of sites for a server. Since, I haven’t made a post in awhile, I figured I might share my helper script with the world. This script has been made with opendkim in mind, mostly because that is what was used on the server where I had to implement this. In some server setups, it would be highly probable that another mean is used to establish dkim keys, for those guys… I’m sorry, this is not the article for you. Continue reading

Previously, we submitted a tutorial series on how to setup Symfony2 on windows.  However, I understand a very important step might of been missing, how to setup the development server you will be working with.   Keep in mind, I personally am not a windows user, and if there are better ways to accomplish this let me know.  I choose EasyPHP instead of WAMP, because you have to get WAMP Pro I believe to easily administer your local virtual hosts, but EasyPHP handles this naturally and free. If you missed the first tutorial written by gurgen, you can reference it here and follow along in some parts of the video. First Video Describes the initial setup of everything from A-z and uses composer to create a… Continue reading

Ever notice how some major sites use custom website builders?  By this I mean, point click, you got a website!  And I’m not talking CMS.   This post is a tribute to that to help other hosting companies be able to offer their own variant of a website builder for their customers.  This post is going to be rather small and grow as I find more out there. Commercial RVSiteBuilder - Popular and works with cpanel & directadmin. Lifeyo - Not sure if this is the best option to go.   Seems to be more of a hosted platform.  Though listing it as the former makers of Drag’n’Drop recommend this now. Doodlekit - Another hosted site builder.  Again, I don’t see this really being a good option for… Continue reading

images-5

Here’s a follow up from the previous post I made couple months ago here. I’m not sure if there is a better way, but I’m thinking perhaps the best way to stay ontop of configuration file changes is using something like mmonit.  Using this we would monitor when files actually change to reload a mapped out configuration into the sql database for easy access & ease of manipulation in the database.  Otherwise, we could do something directly like how virtualmin/webmin works, in that we would reparse configuration files every time and save on demand.  The biggest problem I see with this, is well, I’m sure  not if PHP will really be the best choice for parsing configuration files every single time when pages related to… Continue reading

I started thinking about something today. Composer really makes the vendors big! Is it really just that much code? Well, yes and no, it has to do with just about everything its fetching has the entire repository from every project. Now, if your not actually contributing to every single one of these projects this can be a pain if you have to deploy these projects to a remote server, that tar ball sure will be large! There is actually two methods to do this. One, to simply search all subdirectories and remove, and secondly to combine this in your actually archiving method. I’ll show both for the sake of education. First, here’s how to do it with rm. Macapak:vendor nveid$ du -cms ../vendor 211 ../vendor… Continue reading

While the Symfony2 community supports windows, one would probably agree also, the community is very unix centric.  There is many tutorials on how to get going with various unix related operating systems such as Ubuntu, Fedora or OS X.  However, there really isn’t many tutorials or instructional aids for the developers that use windows.   For these reasons, this tutorial was thought to be a necessity, how to get going with git and Symfony2 on Windows.  If anyone would like any further clarifications for particular instances please comment below and I’ll try to help you with your difficulty as best as possible. 1. Installing Git Download git from here, and install. After installation, if you intend to access private repos, you may need to generate your… Continue reading

There are numerous video training websites, probably the best known is lynda.com.  But what are the other, possibly lower cost alternatives?  This post, I’m just going to simply explore all the various options out there.  Keep in mind also, I have not used all of these video training websites but I am going to do my best to explore the collective opinion of others on the net the pros and cons of each. Paid Alternatives TeamTreeHouse Treehouse isn’t necessarily competitive in price in comparison to Lynda, being their plans are either $25 and $50 a month.  However, they boast their selves on a better learning experience.  When it comes to code, they have a “code challenge engine”, which you can actually proven our skills once… Continue reading

Seems I haven’t made a post in awhile, and don’t expect too much of me today!  However, I figured I’d give a simple PHP lesson.  A very common task, sometimes you need to get the relative path from point a to point b, and many times it may be desirable from point a to point be to be a relative path.  Initially I figured I’d just google and get my answer and use a function.  At first glance a solution on stack overflow would of probably had me taken care of.  However, in actual practice it did not, which I’ve since updated the stack overflow question with the solution I’m going to discuss here. 123456789101112131415161718    function getRelativePath($from, $to) {         $patha… Continue reading

I work with a lot of junior programmers, and in this experience many of these programmers like to get Wet.  I prefer my programmers to stay Dry.  No, I’m not afraid of these programmers about walking out in the rain and touching computers accidentally getting electrocuted.  I’m talking about a very popular and sensible programming principle known as DRY, Don’t repeat yourself, along with its opposite side which should always be avoided, Write Everything Twice, or WET.  Many of these junior programmers it seems have not been taught the very sensible programming principle of WET, so here’s a brief introductory to DRY for those that are unfamiliar with it. Why is WET bad and DRY good?  Simple, maintainability!  When data is used in many different… Continue reading

Everyday I take a look at the tools I have for server configuration, and everyday I realize I have less & less of what I really want.  I’ve used many server configuration programs over the day, from Plesk, to Cpanel, to ispconfig, webmin, virtualmin, and many many more.  Well, when it comes down to it, probably the best option out there that I’ve encountered so far is a cross somewhere between cpanel & virtualmin.  I use cpanel for my production servers where I sell shared hosting, and then I use ISPConfig these days for my own personal servers. Now, before you read this and go pish posh, who needs graphical GUI’s for server administration.  Well, I understand where your coming from, which if I didn’t… Continue reading