login community faq

Is it possible to install SCGI server as mod_scgi Apache module? mod_scgi needs assigned arbitrary TCP port.

asked Oct 23 '10 at 03:18

eden's gravatar image

eden
78111

edited Oct 23 '10 at 03:18


Yes, you should be able to install this into a "Custom Application (listening on port)" application. First, create a new "Custom Application (listening on port)" Application through the Control Panel. Then install Apache 2 from source into the new application directory created under ~/webapps/. You would compile this something like:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
APP_NAME='modscgi' #your application name here
mkdir -p $HOME/src
mkdir $HOME/webapps/$APP_NAME/apache
cd ~/src
wget http://ftp.cuhk.edu.hk/pub/packages/apache.org/httpd/httpd-2.2.17.tar.bz2
tar -xjf httpd-2.2.17.tar.bz2
cd httpd-2.2.17
./configure --prefix=$HOME/webapps/$APP_NAME/apache --enable-mods-shared=all
make
make install

You can then compile and install mod_scgi into this new local Apache instance. When creating a Custom Application (listening on port), the Control Panel will assign a local port for use with the application. You will then want to configure this new Apache instance (in httpd.conf) to use mod_scgi with this port.

Edit: This is also semi-possible using a "mod_wsgi" application via the control panel. However, this installer does not include apxs, which is used to build modules against an Apache instance. If you are able to compile the .so module separately (or acquire it from someone), this is another possibility.

answered Oct 23 '10 at 03:39

ryans's gravatar image

ryans ♦♦
29361420

edited Oct 23 '10 at 03:55

Nice trick. I will try it.

(Oct 23 '10 at 03:42) eden eden's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited