Portfolio Server under Apache 2

The server product only works by default under Apache 1. We need to run portfolio under Apache 2 because we need to be able to run WebAuth (which requires Apache2)

To do this you need to

1. install the 'fastcgi" module

http://www.fastcgi.com/

download the file:

mod_fastcgi-2.4.2.tar.gz

unpack this, and read INSTALL.AP2 which tells you to copy Makefile.AP2 and rename it Makefile. Edit Makefile and alter the "top_dir =" line to point to your Apache installation.

make
sudo make install


2.   add the following to httpd.conf (path needs to be correct for the server on which you install)

include /Library/Apache2/conf/netpublish.conf


3.  Create the netpublish.conf file in the place referred to above:

#-----------------------------------------------------------
# Portfolio NetPublish Server Apache 2 configuration file
#----------------------------------------------------------
#LoadModule fastcgi_module     "/Applications/Portfolio NetPublish Server/WebRoot/app/mod_fastcgi_1_3.so"

LoadModule fastcgi_module     "/Library/Apache2/modules/mod_fastcgi.so"
alias /res/ "/Applications/Portfolio NetPublish Server/WebRoot/"
UseCanonicalName Off
<IfModule mod_fastcgi.c>
        FastCgiIpcDir "/Applications/Portfolio NetPublish Server/WebRoot/app/"
        ScriptAlias /netpub/ "/Applications/Portfolio NetPublish Server/WebRoot/app/"
        FastCgiExternalServer "/Applications/Portfolio NetPublish Server/WebRoot/app/server.np" -host localhost:8085 -idle-timeout 300 -pass-header Authorization
</IfModule>


4. restart apache

sudo /Library/Apache2/bin/apachectl graceful