On this page I describe how I turned my old work PC into a web server for our work intranet, to host a wiki and so on.
The PC in question was an Athlon 64 2800+ (socket 754), with 1 GB of RAM, and a 120 GB hard disk. I can't recall what graphics card it has but it is something like an Nvidia 5700. It was previously running Windows XP Pro.
In summary, this is what I did:
Installed Ubuntu 7.04 “Feisty Fawn” Desktop Edition.
hostnameInstalled gVim
Installed OpenSSH server
sudo apt-get install openssh-server
/etc/ssh/ssh_config/etc/ssh/sshd_configsshd_config.original and made it not writeable.ssh hostname
/etc/issue.net which is greeting message that will be displayed upon SSH login./etc/ssh/sshd_config - uncommented a line to show the contents of /etc/issue.net as a banner when someone logs in.sudo /etc/init.d/ssh restart
Enabled VNC access
Tried to install LAMP (Linux/Apache/MySQL/PHP).
sudo tasksel install lamp-servero
Installed Apache and PHP manually
sudo apt-get install apache2 sudo apt-get install libapache2-mod-php5 sudo apt-get install php5
http://hostname/ in a web browser brings up an index page.index.php at /var/www/var/www directory which contains the phpinfo() command and viewing it in a web browser).Installed DokuWiki
tar -zxvf dokuwiki-2007-06-26b.tgz
sudo mv dokuwiki-2007-06-26b /var/www/ cd /var/www sudo mv dokuwiki-2007-06-26b wiki
.htaccess to htaccess.original and made it not readable by group/others.cd wiki cp .htaccess htaccess.original chmod og-r htaccess.original
apache2.conf config file). So it seems like this user doesn't have write access to my /var/www directory. Looking in apache2.conf, it contains the following two lines in there somewhere:User www-data Group www-data
cd /var/www sudo chown -R www-data:www-data wiki
install.php.cd /var/www/wiki sudo rm install.php
Trying to get DokuWiki to send emails
/etc/php5/apache2/php.inisendmail_path = /usr/sbin/sendmail -smailservername -t -i
(where mailservername is the name of the mail server)
sudo apache2ctl -k restart
sendmail installed. Installed using:sudo apt-get install sendmail
sudo apache2ctl -k restart
/etc/php5/apache2/php.iniAdding new Linux users
sudo adduser usernamegoeshere
Still trying to get DokuWiki able to send emails
/web/www/patch.txt and pasted in contentswiki directory to docuwiki-2006-11-06 to get script to work:sudo mv wiki docuwiki-2006-11-06
patch -Np0 < patch.txt
sudo mv docuwiki-2006-11-06 wiki