Thread: [Cppcms-users] Is ngix server the easiest way with Debian for cppcms?
Brought to you by:
artyom-beilis
|
From: Szilágyi Z. <zol...@ya...> - 2013-12-08 11:50:45
|
Hi, Anybody could help me with Lighttpd FastCGI under Debian? I found out that I need to installl lighttpd-mod-fastcgi. I cannot found deb package for it (or repository). I found :redhat/fedora/centos - yum install lighttpd-fastcgi www.fastcgi.com site right now it is not working. For SCGI with synaptic package manager I find nginx-full.Should I go rather with ngix and SCGI, (no fastcgi support)? Or should install Apache? (On Windows I had painfull and time waist full experince with apache + fastcgi module, I blame fastcgi(but it can be lack of knowledge), without successs), but perhaps on linux it would be easyer, but I guess rather would try something now like ngix, rather (not) having so long ride with fastcgi.With synaptic package manger I find only libapache2-mod-scgi module anyway. I just want to try out hello world example, but without web server it is not working. Ok, I reformulate my question: witch webserver under Debian you think it would be the easiest for a newbies to install and configure for the hello world example. (Why neeed 3 layer arhitecture: for example lighttpd + fastcgi + cppcms? I would not be better if fastcgi and SCGI, protocol would be implemented in cppcms?) Best regards, Zoltan . |
|
From: 陈抒 <csf...@gm...> - 2013-12-08 12:11:27
|
Using Nginx with CppCMS together is simple, for me, I always use them and FastCGI protocol. Don't know my way is simplest or not because I did't try other web servers. I choose CppCMS because its high performance, and Nginx has high performance too. So from my angel, Nginx is the best web server for working with CppCMS. Dean Chen Best regards http://blog.csdn.net/csfreebird On Sun, Dec 8, 2013 at 7:47 PM, Szilágyi Zoltán <zol...@ya... > wrote: > Hi, > > Anybody could help me with Lighttpd FastCGI under Debian? I found out that > I need to installl lighttpd-mod-fastcgi. I cannot found deb package for > it (or repository). I found : > redhat/fedora/centos - yum install lighttpd-fastcgi > www.fastcgi.com site right now it is not working. > > For SCGI with synaptic package manager I find nginx-full. > Should I go rather with ngix and SCGI, (no fastcgi support)? > Or should install Apache? (On Windows I had painfull and time waist full > experince with apache + fastcgi module, I blame fastcgi(but it can be lack > of knowledge), without successs), but perhaps on linux it would be easyer, > but I guess rather would try something now like ngix, rather (not) having > so long ride with fastcgi.With synaptic package manger I find only > libapache2-mod-scgi module anyway. > > I just want to try out hello world example, but without web server it is > not working. Ok, I reformulate my question: witch webserver under Debian > you think it would be the easiest for a newbies to install and configure > for the hello world example. > > (Why neeed 3 layer arhitecture: for example lighttpd + fastcgi + cppcms? > I would not be better if fastcgi and SCGI, protocol would be implemented > in cppcms?) > > Best regards, > Zoltan > > > > > > . > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
|
From: Sergei S. <dan...@gm...> - 2013-12-08 13:17:35
|
https://help.ubuntu.com/community/lighttpd sudo apt-get install lighttpd sudo lighttpd-enable-mod fastcgi sudo service lighttpd reload or nginx https://help.ubuntu.com/community/Nginx sudo apt-get install nginx |
|
From: 陈抒 <csf...@gm...> - 2013-12-08 15:39:49
|
On Ubuntu, if you want to install newest Nginx version, try following steps: wget http://nginx.org/keys/nginx_signing.key apt-key add nginx_signing.key Create /etc/apt/sources.list.d/nginx.list file, add two lines in it deb http://nginx.org/packages/mainline/ubuntu/ raring nginx deb-src http://nginx.org/packages/mainline/ubuntu/ raring nginx Then update & install Nginx apt-get update apt-get install nginx Then you can configure your cppcms app, below is my way, my web app is called wind_tunnel put the wind_tunnel.conf file under /etc/nginx/conf.d/ folder server { listen 80; server_name localhost; access_log /opt/wind_tunnel.log main; location = /favicon.ico { log_not_found off; log_subrequest off; } location ~ ^/(img|images|script|style|plugin)/ { root /home/dean/work/windtunnel/code/site/resources; expires 1d; } include ./conf.d/fastcgi.wind_tunnel; } Then create /etc/nginx/conf.d/fastcgi.wind_tunnel file location ~ ^/wind_tunnel.*$ { fastcgi_pass localhost:8088; fastcgi_split_path_info ^(/wind_tunnel)(.*)$; fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_NAME /wind_tunnel; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; } You can change wind_tunnel to your own app name. I didn't hear about SCGI, will have a look at this when free, thank you. Dean Chen Best regards http://blog.csdn.net/csfreebird On Sun, Dec 8, 2013 at 9:17 PM, Sergei Shutov <dan...@gm...> wrote: > https://help.ubuntu.com/community/lighttpd > > sudo apt-get install lighttpd > sudo lighttpd-enable-mod fastcgi > sudo service lighttpd reload > > or nginx > > https://help.ubuntu.com/community/Nginx > > sudo apt-get install nginx > > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
|
From: Szilágyi Z. <zol...@ya...> - 2013-12-08 20:09:43
|
Hi, Thank you. I will try out next weekend. Regads, Zoltan On Sunday, December 8, 2013 5:40 PM, 陈抒 <csf...@gm...> wrote: On Ubuntu, if you want to install newest Nginx version, try following steps: wget http://nginx.org/keys/nginx_signing.key apt-key add nginx_signing.key Create /etc/apt/sources.list.d/nginx.list file, add two lines in it deb http://nginx.org/packages/mainline/ubuntu/ raring nginx deb-src http://nginx.org/packages/mainline/ubuntu/ raring nginx Then update & install Nginx apt-get update apt-get install nginx Then you can configure your cppcms app, below is my way, my web app is called wind_tunnel put the wind_tunnel.conf file under /etc/nginx/conf.d/ folder server { listen 80; server_name localhost; access_log /opt/wind_tunnel.log main; location = /favicon.ico { log_not_found off; log_subrequest off; } location ~ ^/(img|images|script|style|plugin)/ { root /home/dean/work/windtunnel/code/site/resources; expires 1d; } include ./conf.d/fastcgi.wind_tunnel; } Then create /etc/nginx/conf.d/fastcgi.wind_tunnel file location ~ ^/wind_tunnel.*$ { fastcgi_pass localhost:8088; fastcgi_split_path_info ^(/wind_tunnel)(.*)$; fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_NAME /wind_tunnel; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; } You can change wind_tunnel to your own app name. I didn't hear about SCGI, will have a look at this when free, thank you. Dean Chen Best regards http://blog.csdn.net/csfreebird On Sun, Dec 8, 2013 at 9:17 PM, Sergei Shutov <dan...@gm...> wrote: https://help.ubuntu.com/community/lighttpd > >sudo apt-get install lighttpd >sudo lighttpd-enable-mod fastcgi >sudo service lighttpd reload > >or nginx > >https://help.ubuntu.com/community/Nginx > >sudo apt-get install nginx > > > >------------------------------------------------------------------------------ >Sponsored by Intel(R) XDK >Develop, test and display web and hybrid apps with a single code base. >Download it for free now! >http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |