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

asked 23 Oct '10, 03:18

eden's gravatar image

eden
78111
accept rate: 0%

edited 23 Oct '10, 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:

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.

link

answered 23 Oct '10, 03:39

ryans's gravatar image

ryans ♦♦
3.9k1934
accept rate: 44%

edited 23 Oct '10, 03:55

Nice trick. I will try it.

(23 Oct '10, 03:42) eden eden's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×170
×1

Asked: 23 Oct '10, 03:18

Seen: 1,322 times

Last updated: 23 Oct '10, 03:55

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