Installing BYOND + DMCGI on Ubuntu 8.04
Alright, I've looked at quite a bit of guides and it still took me a while to figure out which files to edit to get it all to work right. So I decided to build this guide to help anyone in need.
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
deb http:
|
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:
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
AddHandler cgi-script .cgi .dmb
|
Now lets edit 'dir.conf'
sudo gedit /etc/apache2/mods-available/dir.conf
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
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.
Posted by Killer22 on Thursday, October 09, 2008 01:31AM
- 0 comments
(link)
/
Members say:
yea +1,
nay -0
Keywords:
installing,
804,
byond,
dmcgi,
ubuntu,
on
(Edited on Friday, October 10, 2008 12:56AM)