First off, lets open up terminal ( Appilications > Accessories > Terminal ).
Then, lets edit sources.list and add Stephen001's repository (see more about this here: http://www.byond.com/members/LinuxGuild?command=view_comments&post=47883)
sudo gedit /etc/apt/sources.list
//and at the bottom we want to add:
deb http://home.sevon.co.uk/byond/ubuntu hardy non-free
Now we're going to install LAMP+BYOND to enable DMCGI ussage.
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install php5 libapache2-mod-php5
sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
sudo apt-get install byond-core
wget http://www.byond.com/download/gcc/libstdc++.so.5
sudo mv libstdc++.so.5 /lib
export LD_LIBRARY_PATH=/byond/bin
Now everything we need has been installed, now we just need to configure a few files. First, lets edit 'mime.conf'
sudo gedit /etc/apache2/mods-available/mime.conf
//Find 'AddHandler cgi-script .cgi' and change it to 'AddHandler cgi-script .cgi .dmb'
AddHandler cgi-script .cgi .dmb
Now lets edit 'dir.conf'
sudo gedit /etc/apache2/mods-available/dir.conf
//add index.dmb to the end of directory index so it looks like:
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm index.dmb
Finally lets edit 'default'
sudo gedit /etc/apache2/sites-available/default
//Since there's a bit to add, I'm just going to copy and paste the entire file
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/
<Directory "/var/www">
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>
Now we have succesfully installed BYOND and DMCGI... now we just have to test it. Download to desktop: http://www.byond.com/members/Killer22/files/index.dmb And in termal lets do this...
mv /home/[username]/Desktop/index.dmb /var/www
chmod 755 /var/www/index.dmb
Now lets test the site, goto http://127.0.0.1/index.dmb (Note: If the page continuously refreshes, then it's not setting cookies correctly. I'm also having this problem.)
Congrats, you've succesfully installed BYOND+DMCGI.