468x60

lunedì 29 febbraio 2016

Install Apache2+PHP5 on Debian 8

Installing Apache 2
Apache is available as a Debian package, therefore we can install it like this:
apt-get install apache2
Now direct your browser to http://your-server-ip, and you should see the Apache2 placeholder page (It works!)

Installing PHP 5
We can install PHP 5 and the Apache PHP 5 module as follows:
apt-get -y install php5 libapache2-mod-php5
Install php5-mysqlnd for MySQL
apt-get install php5-mysqlnd
Install APCu PHP Cache to improve the PHP speed
apt-get install php5-apcu
Install other useful modules
apt-get -y install php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
Restart Apache:
service apache2 restart

giovedì 3 dicembre 2015

XSIBackup - Free Backup software for VMware ESXi

XSIBackup is an open source software perfect for backup and replication of VMWare ESXi vSphere virtual machines to datastore or differential over IP.

Main features:
  • Hot backups, no downtime
  • No agents
  • Self capable, self contained, no dependencies
  • Runs in the hypervisor host
  • Crontab programmable
  • Compatible with ESXi 5.1, ESXi 5.5 & ESXi 6.0
  • Free and Open Source

Official project page on Sourceforge for doc and download
http://sourceforge.net/projects/xsibackup

XSIBackup - software di backup gratuito per VMware ESXi

XSIBackup è un software open source ideale per il backup e la replica delle macchine virtuali VMWare ESXi vSphere su datastore o differenziale su IP.

Main features:
  • Hot backups, nessun downtime
  • No agents
  • Autonomo, senza dipendenze
  • Runs in the hypervisor host
  • Crontab programmabile
  • Compatibile con ESXi 5.1, ESXi 5.5 e ESXi 6.0
  • Free e Open Source

Pagina ufficiale del progetto su Sourceforge for doc e download
http://sourceforge.net/projects/xsibackup

venerdì 28 agosto 2015

How to run a shell script at startup on Debian

The script file is in /etc/init.d/myscript

*** begin myscript file ***
#!/bin/bash
# /etc/init.d/myscript
#
### BEGIN INIT INFO
# Provides:          myscript
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      $network $time
# Should-Stop:       $network $time
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start myscript
# Description:       startup myscript
#
### END INIT INFO
#

/path/to/myscript

*** end myscript file ***

As root user we can use chkconfig to enable or disable the script at startup:
chkconfig --list myscript
chkconfig --add myscript

Come eseguire uno shell script all'avvio di Debian

Il file dello script è in /etc/init.d/myscript

*** inizio file myscript ***
#!/bin/bash
# /etc/init.d/myscript
#
### BEGIN INIT INFO
# Provides:          myscript
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      $network $time
# Should-Stop:       $network $time
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start myscript
# Description:       startup myscript
#
### END INIT INFO
#

/path/to/myscript

*** fine file myscript ***

Come utente root possiamo usare chkconfig per abilitare o disabilitare lo script allo startup:
chkconfig --list myscript
chkconfig --add myscript

How to make a new disk usable on Debian

view devices:
# fdisk -l

device: /dev/vdb1

create partition:
# cfdisk /dev/vdb

format:
# mkfs.ext4 /dev/vdb1

UUID:
# blkid

/dev/vdb1: UUID="f6c741e8-6595-4952-9c62-0c82b6155700" TYPE="ext4" PARTUUID="8811bc88-b63c-4a74-8fd5-3fa33f9d2454"

# nano /etc/fstab
add a line like the following
UUID=f6c741e8-6595-4952-9c62-0c82b6155700 /var/www        ext4    errors=remount-ro 0       1

create mount point
# mkdir /var/www

temp mount
# mount /dev/vdb1 /mnt

umount
# umount /mnt

Come rendere utilizzabile un nuovo disco su Debian

visualizza i device:
# fdisk -l

device: /dev/vdb1

crea partizione:
# cfdisk

formatta:
# mkfs.ext4 /dev/vdb1

UUID:
# blkid

/dev/vdb1: UUID="f6c741e8-6595-4952-9c62-0c82b6155700" TYPE="ext4" PARTUUID="8811bc88-b63c-4a74-8fd5-3fa33f9d2454"

# nano /etc/fstab
aggiungi una riga come la seguente
UUID=f6c741e8-6595-4952-9c62-0c82b6155700 /var/www        ext4    errors=remount-ro 0       1

crea punto di mount
# mkdir /var/www

mount temporaneo
# mount /dev/vdb1 /mnt

umount
# umount /mnt
468x60

Cerca su Google

Cerca nel Blog con Google