chkconfig – init.d
In UNIX systems, there are a few different ways to get stuff to automatically come back up after a restart. CHKCONFIG In RHEL5, you’re probably going to start and stop programs with the syntax. /sbin/service httpd restart In order to do that, you need to do a few things. First, make sure there’s a shell script in /etc/init.d called httpd. And in that script there need to be two special lines, one with a run level map, and another with... [Read More...]
RHEL5 Packagement Management
RPM To list all installed packages — and filter for oracle things.. rpm -qa |grep -i oracle To remove a package.. rpm -e oracle-instantclient11.2-basic-11.2.0.1.0-1 Yum : To search for both installed and available packages, do this. Note the column on the right — shows which repo it is available from, or if it’s installed already. [root@SGProdWs1v-O5208 ~]# yum list |grep php php52.x86_64 ... [Read More...]
WordPress Training
I’ve put up a store for wordpress training sessions. If you’re interested, sign yourself up for one! Thanks tony fraser Read More →
Lesson Learned : SVN and WordPress sucks
After trying for weeks to come up with a good system of passing data back and forth between a wordpress document root and the svn server, I finally scrapped it and just wrote something similar to what cpanel uses. The main problem with it is simple. WordPress is super cool, allows you update plugins and themes and such. Problem is when you do that update through the web gui, it also wipes that .svn directory in the wp-content/plugins/plugin_name directory.... [Read More...]
Writing your own wordpress plugin.
Ok, so I have this massive reel engine project called dakotaspots and a lot of people use it to feed their website. Problem is, I really do think that websites are a thing of the past, like literally I just told several clients they need to chuck their sites and replace it with wordpress. So, I thought I better get cracking on a dakotaspots wordpress plugin. As it turns out, it’s really a snap. Basically you just pull in this variable called... [Read More...]
Using WordPress in an SVN environment
So you have an SVN repo and you’re trying to push out wordpress to a web server. Congrats to you for not allowing cowboy users to go in and muck around with code w/o the ability to fully restore a website, but you’ve also just shot yourself in the foot because wordpress allows you to do all sorts of crazy cool stuff like uploading themes, plugins, images, etc. I had the same problem to deal with. The best bet I think is just to have a... [Read More...]
Installing Ruby Rails Mysql Gem on Ubuntu
Assuming you have a full working DB installed from source in /usr/local/mysql [install a bunch of stuff] apt-get install ruby rubygems ruby1.8-dev rake rdoc wget http://rubyforge.org/frs/download.php/51087/mysql-ruby-2.8.1.tar.gz [extract and cd into that directory] ruby ./extconf.rb --with-mysql-include=/usr/local/mysql/include/mysql --with-mysql-lib=/usr/local/mysql/lib/mysql make make install gem list --local *** LOCAL GEMS *** mysql (2.7) ~/mysql-ruby-2.8.1# You... [Read More...]
Setting up Ruby on OSX with MySQL
Starting with XCode and a full MySQL install from source. (not mamp) assuming a full install into /usr/local/mysql and a running database. [Become root] [prep/update Ruby] gem update –system gem install rails –include-dependencies export ARCHFLAGS=”-arch i386″ gem install mysql — –with-mysql-dir=/usr/local/mysql [Download mysql-ruby-2.8.1 and cd into it, run this, above doesn't seem get install the native driver.] ruby... [Read More...]
Setting up MySQL Replication [5.3.1] on Ubuntu Server
I got a little sick of a bunch of outsourced dbas ‘working’ for us on a project so I pushed them out and decided it’d be quicker if I just did it myself. (by working, they took over a month just to do what took me four hours — the company is bluewolf by the way.) What you need to do this: Reasonable UNIX system administrator skills. The ability to use the mysql command line. Root access everywhere, root db access db1 ->... [Read More...]
Casting Zend DB results as VO Objects for flex.
It’s really simple really, you just did a zendDB->fetchAll and you want to return the result array as an VO object back to flex. You’d think that this would work. $userObject = (UserVO) $zendDBResult; But it doesn’t. That kind of casting is not built into PHP. Ok open source guys, this is kind of important, but that’s another discussion… So you try this. $zendDBResult = $statement->fetchObject(); $userObject = (object)... [Read More...]
