ID:759920
 
Keywords: dmcgi, installation
Installing DMCGI is pretty simple if involves some file editing and also involves having BYOND install globally. - http://www.byond.com/forum/?post=759888

Going off the script install above you can install DMCGI easily in this example I will be using Apache2

** /etc/apache2/sites-available/default

** Can be replaced with your favourite editor eg - vi or nano.

NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>

AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/

# CHANGES
Options Indexes FollowSymLinks MultiViews ExecCGI
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.dmb
AddHandler cgi-script .cgi .pl .dmb

</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

Above I have posted the default copy of the file with some changes.
# CHANGES
Options Indexes FollowSymLinks MultiViews ExecCGI # ExecCGI is the change.
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.dmb # I have included some examples here including dmb this would make sure that if you named your DMB index.dmb it would show that file before anything else when browsing the website.
AddHandler cgi-script .cgi .pl .dmb # added the handler


It isn't documented well but it works :)
You can absolutely use DMCGI without having BYOND installed globally, you just have to modify world/executor to point to your local DD install instead of a global 'DreamDaemon' command.