Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
/////////////////////////////////////////////////////////////////////// // // // MongBlog - Superfast simple blogging platform // // Readme // // (c) 2010 Michael Cullen http://cullen-online.com // // Released under the BSD licence as define in the // // accompanying LICENCE file. Please read it :-) // // // /////////////////////////////////////////////////////////////////////// To Build from git: run ./toolconfig.sh then continue as below: To build from tarball: You need libMongoClient installed, and relevant libboost versions. It's basically the standard install/configure step, except you set the bin dir to the location you want the cgi to be in. ./configure --bindir=/path/to/cgi make (then as root) make install if you get errors about the shared object not being found, try running ldconfig as root. Configuring: copy the folder mbTemplates to one level above the executable, then: cd /path/to/installed/cgi ./MongoDbConfig and answer the questions. Apache Fun =============== This program now has the ending .cgi which means that you can now use an AddType declaration instead of a scriptalias. This is important as otherwise any external images or js files would have been difficult to include. Security =============== I strongly recommend adding the included htaccess file next to the CGI because otherwise the config program will be runnable from the internet, which causes the webserver to lock up due to it not being a CGI program, and waiting for input. The htaccess file solves this, and makes nicer URLs as well (like /blog/post/post-id/ to access a post) Structure ============ The main work is done in the Blog class and the StorageEngine class.