Posts Tagged irc

FreeBSD 8.1, Zend Optimizer, php52-extensions and the dreaded Segmentation Fault (Core Dumped)

So I haven’t slept in 43 hours, it’s been at least 10 years since I’ve pulled this kind of stunt before but as you know from my last blog post here my server blew up and then my lappy blew up, so lots and lots to keep me busy with.. Part of that fun was doing a brand new fresh OS install on my server, and getting everything working just as it was before is never a cakewalk.  Well it was looking like it was until I started seeing this little Segmentation Fault at the end of my php -v statement.  I mean not to mention the 5-6 hours I spent wresting with ZendOptimizer but that was resolved and wasn’t nearly as epic, nor as disappointing at the 20+ hours that went into figuring this god awful problem.

For whatever reason when php52-mysql or php52-pdo_mysql were installed there would always be a segmentation error in shell.  It didn’t affect the websites mind you, that ran fine but running anything with php through shell wasn’t not happening(there goes 1/2 my cron).  So what do I do? I hop on freenode, undernet and efnet and start asking around as well as googling my face off.  And man oh man there are a ton of reasons why this could be happening and trust you me I went through them all.. But the key problem with my problem solving was that I was looking in completely the wrong place.  You see early on I was convinced that this was a php problem.  Probably set that way as an impatient chap named GoMYSQL on #mysql on freenode quite quickly told me it was and to take my question out of his sacred and holy channel.  So for the next 30 hours or so I proceeded to rip the very fabric of php apart in search of what cuold be causing this.  I commented out everything in extensions.ini, in php.ini narrowing it all down to mysql.so or alternatively pdo_mysql.so caused the same problem.   There was talk about the order of the extensions in extensions.ini causing issue so I tried mysql.so in every single spot on that list to no avail, the only thing that made the seg fault go away was to comment out mysql.so itself but then that kind of left me without a slightly important piece of functionality.

Well guess the fuck what?  It isn’t a php issue at all, it is a problem with mysql55.  For whatever reason I installed mysql55 instead of mysql50(bigger is better right?) and whether it’s a conflict with mysql55 and Zend, or Zend, php52-mysql and mysql55, or all of the above and eaccelerator or what but having that version of mysql installed caused this whole mess in the first place.

So her I am, 43 hours later and probably at least a dozen pots of green tea, completely out of option I figure why the hell not try mysql50?  On this old server it’s a hell of a wait to deinstall and recompile but nothing else is working.  Lo and fucking behold the minute it’s up and php52-extentions and php52-mysql are recompiled along side all my worries dissapear.  No more zend seg faults, no more mysql.so seg faults nada, zip zilch.

And for whatever reason this will be the very first post/article anywhere offering this advice because everyone else is dealing with a php issue.  So if this is you, if you have just installed php52 and php52-mysql or php anything-mysql and you are seeing everything loading fine except for mysql.so causing a segmentation fault do yourself a big favor and check what version of mysql you have installed.   If you are running mysql55 and Zend, or eAccelerator and Zend and mysql or any combination of the bunch get rid of mysql55 and install mysql50.  After you’ve done that you’re going to need to recompile php52-mysql and/or php52-pdo_mysql(or whatever version of phpxx-mysql you’re running) and then go in and recompile php52-extensions.  After all that restart apache and go to sleep!

I know that’s exactly what I’m about to do

Tags: , , , , , , , , , , , , , ,

Public Key not working with user@server but does work with root@server

Weirdest thing about my FreeBSD server that’s been bugging me for a long time.. I’m able to create rsa/dsa keys for passwordless logins but the catch was that it would only work if I was root on the client machine loggin in as root on the server.  After 6 hours of trouble shooting and mostly relying on the geniuses over at #freebsdhelp on efnet, running sshd in debug mode, running ssh in -vvv mode it came down to a stupid little error in the /etc/ssh/sshd_config file.

The line in question was:

AuthorizedKeysFile      ~/.ssh/authorized_keys2

and whoever set it up originally bunged it up because it needs to be

AuthorizedKeysFile      %h/.ssh/authorized_keys2

to work properly or else sshd will always refer to /root/.ssh/authorized_keys2 no matter who’s loggin in..

Hopefully this will help someone else save the nearly full work day of time to narrow this mother trucker down

Tags: , , , , , , , , , , ,

Me and Drupal: Chapter 2 & 3

So for the past few days I have been up to my ears in Drupal.  I am finding the overall setup and implementation easier than I remember although it certainly is time consuming to learn and get things just right.  The biggest thing I would say is finding a theme that looks somewhat decent to motivate you to start working on the site layout and suck.  I have a few in there that look decent, I was on Black Mamba for a while but have settled in on Acquia Marina for the time being made by the guys over at http://fusiondrupalthemes.com/ (it’s one of the free ones).

The other big task is going through the insane list of modules are available for Drupal.  My goal here is to have a CMS that manages our Company’s internal Wiki, our Forums, our Project Management System(PMS), the assets we create, video content, blogs and finally an SVN.  These are a lot of systems a few of them very complex but somehow Drupal can do it all under one roof(which is why I’ve signed up).

The message forums were the first to get setup, and the easiest mind you.  It was just as easy as enabling the module and then creating all of the containers and forums for the team to post in.  It looks a little vanilla right now but I am hoping there will be some cool custom theme out there somewhere that jazzes everything up.

Second was the PMS.  Currently we are using Dotproject for all of our PM needs and I cannot rave enough about it.  Firstly it’s open sourced and the guys over at http://www.dotproject.net as insanely helpful.  They have a phenomenal product and if you are looking for a stand alone PMS to run on a central server and be accessible by a distribute team then Dotproject is for you.  Unfortunately for us however there are no Dotproject integration modules for Drupal so I had to look elsewhere for one that is native to drupal.   Luckily enough there seems to be a fairly polished and recently updated module called Storm.  Again it was fairly simple to setup however I have not got my hands dirty with it yet so we’ll see how good it is.  Either way it looks like the best PMS offered for drupal so it’s going to be awesome as that is it is my only option :)

The other thing that was a cinch to install was the IRC module.  Just a quick download and enable away and you too can have an IRC chat channel within Drupal.  Of course now I need to go back and refamiliarize myself with eggdrop and get a bloody bot running on IRC somewhere..

Right now I am beginning work on integrating Wiki functionality with Drupal and have installed several mediawiki modules, one which is supposed to tie into an existing Wiki installation that I have however I have no idea how to go about that as the documentation is fairly spotty and there doesn’t seem to be any tools in the admin area to integrate my mediawiki install.  Most of the modules available seem to be about integrating the users from drupal to your wiki install so there is no need to relogin, however what I want is a wiki inside of my Drupal site so that it is all seamlessly together.  That order, unfortunately is much hard to fill :(   Just tonight however I did stumble upon this article: http://cwgordon.com/how-to-create-a-wiki-with-drupal detailing how I can go about creating a Wiki within my drupal.. So I’m pretty stoked about that and it is my next course of action.

It would appear there are too many outdated modules referenced in the above tutorial for it to really work properly.  I do have some wiki functionality but it is fairly limited and so the hunt continued.    I came across this great conversation thread: http://groups.drupal.org/node/12468 that discussed much of what I was thinking and some high level concepts of how to do what I am attempting  This led to the installation of a few extra modules.  However in the comments section of the original tutorial I found a link to this tutorial: http://cratel.wichita.edu/cratel/cratel_Drupal_6_wiki which deals more with Drupal 6 and some up to date modules that lend even more wiki functionality to what I am doing.

Incase you missed it in the above link there is a nice node with wiki filter examples here: http://drupal.org/node/217177

Inside of Flexifilter there were also several wiki components such as the wiki api and such that I am hoping will automatically add all of the wiki functionality to drupal

Tags: , , , , , , ,

Page optimized by WP Minify WordPress Plugin