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

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
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 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.

permanent link

answered 23 Oct '10, 03:39

ryans's gravatar image

ryans ♦♦
accept rate: 42%

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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

Question tags:


question asked: 23 Oct '10, 03:18

question was seen: 2,224 times

last updated: 23 Oct '10, 03:55

Features & prices    Sign up    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
© Copyright 2003-2015 Swarma Limited - WebFaction is a service of Swarma Limited