Re: [Cppcms-users] Running cppcms on shared hosting (with shell access but no root access).
Brought to you by:
artyom-beilis
|
From: Artyom <art...@ya...> - 2011-01-06 14:15:51
|
> Good question.
> What about the cppcms / cppdb and other necessary libraries?
> Can we have a simple tutorial on how to install them and run them from our
> home directory?
>
Few points:
1. For fastcgi configuration - you need to refer to your hosting provider.
2. For deploy, you have two options:
- just compile all statically, cppdb has instructions how
to do it (because it has dynamic modules loading)
For cppcms it is simple as well - just link with libcppcms.a
and libboooster.a and provide additional dependencies like
-lpcre -lz etc, this strongly depends on your build configuration:
i.e. are you using icu, openssl or gcrypt, what do you have
on hosting (shared libraries) etc.
- compile dynamically, copy shared objects and provide LD_LIBRARY_PATH
or use -rpath option - but this depends on the hosting as well.
The problem with such tutorial it is **very dependent** on specific
shared hosting provider - which libraries you have installed and
which does not, what versions and what distribution. How can you
configure the hosting service at all.
This isn't a tutorial that is easy to write as-is.
I'd suggest following:
- If you are using a shared hosting service for running CppCMS
write a tutorial in Wiki how to do it with specific issues
that you have for your provider.
I would be glad to help solving issues you run into.
- I strongly recommend using virtual private servers, they are
cheap today and they give you full control on what you can
install and how.
Regards,
Artyom
|