Installed Ubuntu Server on sda1
Changed to a fixed IP address
Forgot to mount home on sda3 so added this line to fstab;
/dev/sda3 /home ext3 defaults 0 0
Gave sda3 an appropriate label;
sudo e2label /dev/sda3 UbuntuHome
Installed Apache;
sudo apt-get install apache2
Added ServerName to /etc/apache2/apache2.conf;
ServerName 192.168.1.249
Restarted apache;
sudo /etc/init.d/apache2 restart
In home directory hans created;
subdirectory dev
In dev created www
In www created cgi-bin
Installed subversion;
sudo apt-get install subversion
In directory www executed;
svn checkout https://cheat-sheets.googlecode.com/svn/trunk/ cheat-sheets --username myusr@gmail.com
Checked /etc/apache2/envvars for Apache user and group (www-data)
Created group www-hdr;
sudo addgroup www-hdr
Added members hans & www-data to the new group;
sudo adduser hans www-hdr
sudo adduser www-data www-hdr
Changed group ownership of directories cgi-bin & cheat-sheets;
sudo chgrp www-hdr cgi-bin
sudo chgrp www-hdr cheat-sheets -R
Changed permissions on directories cgi-bin & cheat-sheets;
sudo chmod 750 cgi-bin
sudo chmod -R 740 cheat-sheets
Created symbolic link to directory cheat-sheets;
sudo ln -s /home/hans/dev/www/cheat-sheets /var/www/hdr
Changed ownerhip of the symbolic link;
sudo chown -h hans:www-hdr /var/www/hdr
Update the file default in the sites available directory;
sudo vim /etc/apache2/sites-available/default
sudo ln -s /home/hans/dev/www/cheat-sheets /var/www/hdr
Changed ownerhip of the symbolic link;
sudo chown -h hans:www-hdr /var/www/hdr
Update the file default in the sites available directory;
sudo vim /etc/apache2/sites-available/default
Geen opmerkingen:
Een reactie posten