Set up and run CppCMS on CentOS
Category: programming
What is CppCMS? CppCMS is a Free High Performance Web Development Framework (not a CMS) aimed at Rapid Web Application Development. It differs from most other web development frameworks like: Python Django, Java Servlets in the following ways:
- It is designed and tuned to handle extremely high loads.
- It uses modern C++ as the primary development language in order to achieve the first goal.
- It is designed for developing both Web Sites and Web Services.
It is available under open source LGPLv3 license and alternative Commercial License for users who needs an alternative license for proprietary software development.
As I have mentioned in the post about C++ web development, C++ is definitely not the first choice that is going to come to our minds when it comes to web development. However, if you do value efficiency much, C++ is definitely the great choice(but think again before you jump to the conclusion that you need great efficiency. All programs should be fast but optimizations can be done in many levels. Reason carefully and persuade yourself that Ruby on Rails or Django is not going to meet the requirements even though the development speed will be so much boosted).
Personally I am trying out CppCMS just for fun and after playing with it, I have decided that I will not use C++ for web development because of its un-friendliness with developers. But anyway, let’s get started:
First, all the dependencies:
Then let’s download the source and build it:
Now you have CppCMS installed already. There is just one more thing though: adding link to CppCMS library for g++ build. Check to see if libcppcms.so is indeed in the location: “/usr/local/lib”(the default installation folder for lib files on linux based OSs).
Now you are good to create your hello_world CppCMS application.
Reference: