Friday, February 16, 2018

ESXI NIC driver install

01. Upload the VIB to a datastore which is visible by your ESXi 5.5 host (“drobo01″ in my case)
02. Make sure that you enable SSH and connect via Putty
03. Set the acceptance of the host to “community supported”
esxcli software acceptance set –level=CommunitySupported
04. use this command to install the VIB
esxcli software vib install -v /vmfs/volumes/drobo01/VMware_bootbank_net-r8169_6.011.00-2vmw.510.0.0.799733.vib
05. Reboot your host

Thursday, February 1, 2018

Send emails from PHP with ssmtp

The installation process:

sudo apt-get install ssmtp

Then edit the /etc/ssmtp/ssmtp.conf file with this information:
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES
AuthUser=<YOUR-EMAIL>@gmail.com
AuthPass=<YOUR-PASSWORD>
(or any other SMTP-server that you might want to use)

Final steps:
Find your php.ini file (usually in /etc/php5/cli/php.ini) and make sure the sendmail_path is:

sendmail_path = /usr/sbin/sendmail -t

Then restart your apache2-server with


service apache2 restart


In my case, I've got a hosted server so I needed to edit this file :
/etc/ssmtp/ssmtp.conf
Then uncomment this line :

FromLineOverride=YES