Re: [Cppcms-users] [shared-hosting] Options for execute cppcms applications
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-05-11 04:36:48
|
Hello, First, make sure that your hosting provided supports execution of fastcgi programs written in C/C++. About shared libraries: This maybe tricky, you need libcppcms. library, fastcgi, boost libraries and even some more. Note when you use boost libraries you need to have exactly the same version on hosting provider... So I'd recommend linking all libraries statically: 1. Compile your own version of Boost.Regex (without ICU), Boost.Iostreams (with Zlib), Boost.Signals. 2. Build cppcms library with --disable-forkcache --disable-tcpcache --disable-sqlite and if you do not use AES encrypted cookies, compile with --disable-crypt 3. Link your application with all libraries statically: gcc [hello objects] -o hello /path/to/libcppcms.a /path/to/libcppcmstranstext.a /path/to/libfcgi++.a /path/to/libfcgi.a /path/to/libcgicc.a /path/to/libboost_regex.a /path/to/libboost_signals.a /path/to/libboost_iostreams.a -lz -lrt -ldl -lpthread You may also want to add -lgcrypt if you use AES encrypted cookies. Make sure your application links and runs. Make sure ldd ./hello points only to few system libraries like zlib, librt, libdl libpthread Now try to upload it to hosting. Notes: CppCMS is designed to be used on at least VPS where you can actually install software. Most shared hosting providers do not allow you to use C++ fastcgi executables. I'd recommend you to have at least command line access to have an ability to check all this. Regars, Artyom I recommend you linking your application statically with CppCMS. See --- On Mon, 5/10/10, Jesus Rivero <riv...@gm...> wrote: From: Jesus Rivero <riv...@gm...> Subject: [Cppcms-users] [shared-hosting] Options for execute cppcms applications To: cpp...@li... Date: Monday, May 10, 2010, 10:53 PM Greetings, How can i execute cppcms applications in shared hosting? i can't change the configuration of apache and i can't install lighttppd or nginx. I put the .fcgi file in the directory cgi-bin with permissions 755 (in Linux) and the error is > error while loading shared libraries: libcppcms.so.0: cannot open shared object file: No such file or directory. What I can do? Thanks, -- Jesús -----Inline Attachment Follows----- ------------------------------------------------------------------------------ -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |