apt-get install mysql-server phpmyadmin pure-ftpd-mysql
cd /etc/pure-ftpd/conf
echo no > PAMAuthentication
echo no > UnixAuthentication
rm PureDB
echo ,21 > Bind
echo 4500 4600 > PassivePortRange
echo yes > ChrootEveryone
echo yes > ProhibitDotFilesRead
echo yes > ProhibitDotFilesWrite
echo yes > NoChmod
echo yes > BrokenClientsCompatibility
echo 4 > MaxClientsPerIP
echo 20 > MaxClientsNumber
echo yes > CustomerProof
echo yes > DontResolve
echo yes > IPV4Only
echo 90 > MaxDiskUsage
echo 1000 > MinUID
echo yes > NoAnonymous
echo yes > CreateHomeDir
groupadd -g 2001 ftpgroup
useradd -u 2001 -s /bin/false -d /bin/null -c "pureftpd user" -g ftpgroup ftpuser
/etc/pure-ftpd/db/mysql.conf:
MYSQLSocket /var/run/mysqld/mysqld.sock
#MYSQLServer localhost
#MYSQLPort 3306
MYSQLUser pureftpd
MYSQLPassword pureftpdpass
MYSQLDatabase pureftpd
#MYSQLCrypt md5, cleartext, crypt() or password() - md5 is VERY RECOMMENDABLE uppon cleartext
MYSQLCrypt md5
MYSQLGetPW SELECT Password FROM ftpd WHERE User="\L" AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetUID SELECT Uid FROM ftpd WHERE User="\L" AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetGID SELECT Gid FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetDir SELECT Dir FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetBandwidthUL SELECT ULBandwidth FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetBandwidthDL SELECT DLBandwidth FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTASZ SELECT QuotaSize FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTAFS SELECT QuotaFiles FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R")
mkdir -p /media/storage/ftp
chown root:ftpgroup /media/storage/ftp
untar webui in /var/www
chown www-data /var/www/ftp -R
browse to ftp/install.php
root@server:~# mysql -u root -p
Enter password:
mysql> GRANT ALL PRIVILEGES ON pureftpd.* TO 'pureftpd'@'localhost' IDENTIFIED BY 'pureftpdpass';
service pure-ftpd-mysql restart
[1] Install maillog analyzer, MailGraph. Web Server is also required to installed.
root@mail05:~#
aptitude -y install mailgraph rrdtool
root@mail05:~#
mkdir /var/www/mailgraph
root@mail05:~#
cp -p /usr/lib/cgi-bin/mailgraph.cgi /var/www/mailgraph
root@mail05:~#
vi /etc/apache2/conf.d/mailgraph.conf
# create new
Options ExecCGI
Order deny,allow
Deny from all
Allow from 127.0.0.1 10.0.0.0/24
# IP address you allow
root@mail05:~#
/etc/init.d/apache2 restart
* Restarting web server apache2
… waiting …done.
root@mail05:~#
sysv-rc-conf mailgraph on
I got it to work on debian 6.0 but it was a little different
I had an lvm configuration
I mounted /
I mounted my /boot
chroot /mnt (if arent already)
-dpkg-reconfigure grub-pc
-dpkg-reconfigure linux-image-2.6.32-5-686 (whatever your latest is)
-update-grub
-grub-intall /dev/sda (wherever the boot loader is)
problem:
* Mounting /dev/VolGroup00/LogVol00 on /sysroot
mount: mounting /dev/VolGroup00/LogVol00 on /sysroot failed: No such file or directory
mount: mounting /dev on /sysroot/dev failed: No such file or directory
* Switching / to /sysroot
switch_root: bad newroot /sysroot
Kernel panic – not syncing: Attempted to kill init!
solution:
In the Converter wizard, on Data to copy page, switch to Advanced view, select Destination, in the table with target virtual disks select the one where the root partition resides and click the “To Basic” button below the table. This will trigger the old 4.3 behavior where LVM was not preserved and / will be stored in a basic volume. The destination VM will boot, however your root folder will be no longer in a LVM volume. If it is OK for you this is the easiest way.