Talk:Setting up a test server

From OpenStreetMap Wiki
Jump to: navigation, search

Help! How do you find and replace /foo/bar with /var/www using VIM?

I'm trying:

%s/"/foo/bar"/"/var/www"

with no luck


A few tricks for me on Debian:

  • If the images don't show up, just comment out the following line in /etc/apache/httpd.conf:
Alias /images/ /usr/share/images/
  • If the Ruby code generates meaningless HTML which is displayed on the screen instead of being interpreted by the browser, then Ruby doesn't set the Content-Type properly. Modify www.openstreetmap.org/eruby/include/top.rhtml and force it after the CGI creation:
% cgi = CGI.new
% cgi.header("text/html")
% dao = OSM::Dao.instance
  • I had to change the SQL in the Ruby code because users.active is an int(11) and the code was comparing that to false or true - that doesn't work on my version of MySQL.

Mac 23:13, 26 January 2007 (UTC)