Tuesday, November 11, 2014

Enable [hostname]/~user

Newly installed ubuntu server 14.04

By default /var/www/html/ is where you put your main website.
The apache2 allows to have multiple per user website which is not activated by default.

The below is from [2]

Use command a2enmod to enable Apache2 userdir module. these command will be create symlink /etc/apache2/mods-available/userdir.load and /etc/apache2/mods-available/userdir.conf in to directory /etc/apache2/mods-enable/
sudo a2enmod userdir
Restart apache2 daemon with following command
sudo service apache2 restart
Ceate folder “public_html” in the home directory, then set permission public_html folder to 0755
mkdir ~/public_html && chmod 0755 ~/public_html

[1] About per-user web directory
http://httpd.apache.org/docs/2.2/howto/public_html.html

[2] Three step enable
http://ubuntuserverguide.com/2012/10/how-to-enable-and-configure-apache2-userdir-module-in-ubuntu-server-12-04.html

Saturday, November 8, 2014

Ubuntu 14.04 + windows 7 dual booting on VAIO

My VAIO starts to cause issues in windows, so I decided to make a clean install
I've been using 12.04 LTS with win 7. It has 128 SSD with dual booting

* VAIO VPCZ2290X
* 128GB SSD (raid)

1. Clean install of Windows by using rescue image CDs. Recovery actually does not work due to the grub. Trying recovery from hard drive partition results in grub rescue screen.

2. For some reason I could not install 14.04 LTS. I believe this is because of the raid.
After factory recovery the partition already has thee primary ones.
- recovery
- boot
- windows

Boot with 11.10 installation disk, run gparted and do the followng
- resize the windows partition
- make extended area
- make ext4 logical partition
- make linux swap partition

3. Reboot and check it boots up to the windows. You'll be asked to run the disk check from windows.

4. Reboot to install ubuntu 11.10
In the hard drive format section, specify ext4 as root, point the grub installation to /dev/mapper ... 0

5. Install. and upgrade to 14.04