Malicious enjoyment derived from observing someone else’s misfortune
 

Tag Archives: apache

Making WordPress live in a subdirectory

I found an interesting article today about WordPress.  It was how to make it live in another directory. I needed that, so I followed the instructions, and it worked. WordPress is so much easier to install and configure than Mephisto.  It’s even easier to use than Mephisto.  I can see almost no reason anyone would want to use Mephisto anymore, other than nostalgia – WordPress has really cleaned up its act.  It seems the most recent public vulnerabilities to it [...]

How I converted Typo to Mephisto

I had some difficulty along the way, and I have some fixes for those of you who are having trouble converting. I found that Mephisto is actually very friendly to the ./script/console hacker. Also, though it took a while to actually get a response, I ended up getting direct help from technoweenie in #mephisto@irc.freenode.net, which was a big help. So, here’s the situation: My current host is Site5. I have gems set up in my home directory, and I have [...]

Fixed httpd hangings

So, Apache (httpd) was hanging for some reason, and it was really perplexing. I turned on the mod_status stuff and looked at the results, and found that the hung processes were caused when requests went to certain Subversion repositories. All I had to do was svnadmin recover them, and all was well. Otherwise, I found an interesting function for ruby today… #number_with_delimiter(number, delimiter) number_with_delimiter(2000000) Makes 2000000 look like 2,000,000. Amazing!

Successful Settings for Apache forwarding to Mongrel

So, after a day of working on it, I finally fixed the problems I was having. I wanted to have Apache forward all traffic hitting a path to a mongrel server running in a rails application. So, I did as bish0p suggested, and set up the rails app to accept this behavior. First, I put this at the bottom of my environment.rb: ActionController::AbstractRequest.relative_url_root = “/MyRailsApp” This make it so all the urls in the Rails app are prepended with /MyRailsApp. [...]

Collaboa Trunk Install

Well, I guess I might as well finish the job as much as I can before bed. I’m going to install Collaboa. Here’s the beginning: Get rails and mongrel, along with all the deps: sudo gem install rails mongrel redcloth syntax sqlite3-ruby xhtmldiff Now, get ruby-mysql, which requires some junk on FC5: sudo yum install mysql mysql-devel sudo gem install mysql — –with-mysql-config Now, get the trunk: svn co http://svn.collaboa.org/svn/collaboa/trunk/ collaboa –username=anon –password=anon I’m going to use SQLLite for this [...]

Mongrel/WEBrick Forwarding in Apache

This will let you redirect an apache request to a local mongrel or webrick server. Very handy, yet maybe some logging of the used ports would be good at some point. <VirtualHost collaboa.example.com:80> Servername collaboa.example.com CustomLog /www/collaboa/logs/access.log combined ErrorLog /www/collaboa/logs/error.log ProxyPass / http://127.0.0.1:3005/ ProxyPassReverse / http://127.0.0.1:3005/ </VirtualHost>

Building Subversion and Apache Trunks

I was trying to move the subversion server today, and found some good tips, but I had some problems today building subversion, so I decided I better write the process down. While I’m at it, I better detail the steps to install apache as well. Apache Get the trunk, and go to the source library directory: svn co http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x httpd-2.0 cd httpd-2.0/srclib Now, check APR out of svn: svn co http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x apr svn co http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x apr-util cd .. Build with [...]