Log in
R. Kris Hardy Photo

R. Kris Hardy

December 29, 2009

Announcing the Columbus Enterprise Application Integration Alliance!

If you live in the Columbus, OH area, and are interested in Enterprise Application Integration (EAI), come join us at the Enterprise Application Integration Alliance.

We are currently looking for speakers and topics. If you have EAI experience, successes, failures, or lessons-learned, please let me know!

Thanks!

Technorati Tags: , , , ,

December 14, 2009

I’ve Been Featured by TechLife Columbus!

Filed under: News — Tags: , , — Kris @ 8:02 am

I want to give a quick thanks to Ben Blanquera and the guys at TechLife Columbus for featuring me in today’s update!

TechLife LinkedIn Profile – Kris Hardy – Software Evangelist

Technorati Tags: , ,

December 12, 2009

Subversion Fix: svn copy causes “Repository moved permanently to ‘…’; please relocate

Filed under: Articles, Debugging — Tags: , , , — Kris @ 12:54 pm

Background

Subversion is a version control system. It can run as either it’s own server (svnserve), or as an Apache module (mod_dav_svn.so).

When using the mod_dav_svn module for Apache, and doing an svn copy operation on the repository itself can fail if the VirtualHost configuration for subversion is not correct. Put simply, if Apache itself and mod_dav_svn are serving content from the same path, then conflicts can occur. Apache can get confused if it attempts to serve a physical file instead of routing the request through mod_dav_svn.

“svn copy …” operations will fail, while “svn update …”, “svn commit …”, and “svn checkout …” operations work fine.

Detail of the problem, diagnosing the problem, and the fix are below.

(more… >>)

Technorati Tags: , , ,

December 10, 2009

Permission Denied (13) When Opening Socket in PHP & Apache

I ran into this simple, but annoying, problem after I migrated my development workstation to Fedora 12.

Problem:

A large PHP application that I have developed at Submerged Solutions (SandPiper Accounting) began throwing Permission Denied (13) system exceptions when attempting to send mail through Zend Framework’s Zend_Mail library.

All the phpunit unit tests worked fine and could send e-mail, but would fail when the usability tests started and any HTTP requests that sent e-mail were handled through Apache.

The Apache instance was being run as user apache / group apache, and php (mod_php) is run as user apache / group apache.

The exception occurred in Zend_Mail_Protocol_Abstract->_connect(), immediately following the socket opening call “stream_socket_client(…)”.

File: Zend/Mail/Protocol/Abstract.php; Line 224

50: abstract class Zend_Mail_Protocol_Abstract
51: {
...
218: protected function _connect($remote)
219: {
220: $errorNum = 0;
221: $errorStr = '';
222:
223: // open connection
224: $this->_socket = @stream_socket_client($remote, $errorNum, $errorStr, self::TIMEOUT_CONNECTION);
225: ...

fopen() calls using http and ftp protocols also failed:

Warning: fopen(…) [function.fopen]: failed to open stream: Permission denied in …

    The fix:

    The problem turned out to be the “httpd_can_network_connect” SELinux setting that is on by default in Fedora 12.

    In a shell console, run as root:

    # /usr/sbin/setsebool httpd_can_network_connect=1

    Thanks to durwood, who pointed this out on PHP.net.

    “Bug” Report at RedHat.com.

    More info on SELinux.

    Technorati Tags: , , , , , , ,


    Powered by WordPress