Projekt

Allgemein

Profil

Dynamicly growing sparse diskimg and install joomla

apt-get install qemu-utils
modprobe nbd max_part=8
qemu-img create -f qcow2 /mnt/joomla/WD-Elements25A1-01/FRITZ/chroots/joomla.qcow2 2G
cfdisk /dev/nbd0
qemu-nbd --connect=/dev/nbd0 /mnt/joomla/WD-Elements25A1-01/FRITZ/chroots/joomla.qcow2
mkfs.ext2 /dev/nbd0p1
mkdir /mnt/chroot
mount /dev/nbd0p1 /mnt/chroot

Install joomla

debootstrap jessie /mnt/chroot
cp /etc/apt/sources.list /mnt/chroot/etc/apt
mount -o bind /dev /mnt/chroot
chroot /mnt/chroot /bin/bash
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts
export HOME=/root
export LC_ALL=C
apt-get update
apt-get install apache2
apt-get install mysql-server php7.0-mysql
apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-xml php7.0-curl php7.0-json php7.0-cgi 
mysql -u root -p
CREATE DATABASE joomladb;
CREATE USER joomlauser@localhost;
SET PASSWORD FOR joomlauser@localhost= PASSWORD("joomlapassword");
exit

Then download joomla and extract package to /var/www/html