MineForeman / minepeon-base

minepeon-base
GNU General Public License v2.0
24 stars 17 forks source link

Enable openssl.so PHP extension so that SSL mail servers can be used #7

Open aptonic opened 10 years ago

aptonic commented 10 years ago

Thanks for MinePeon! I'm using it to mine with my BFL 30GH/s Miner and it's working a treat.

One issue I had was when I went to setup alerts for expected devices and hash rate I put in the Gmail SMTP settings and it silently failed to send alerts. I then tried with my ISPs mail server (which also uses SSL) and still no joy. I enabled debugging for the Pear Mail lib you're using and found that it's because the openssl.so extension is disabled in php.ini. I uncommented it, restarted apache and alerts are working fine now.

I realise that this is probably not part of the MinePeon stuff but rather the PHP config installed with pacman. Running the below commands fixes it:

sudo sed -i -e 's/;extension=openssl.so/extension=openssl.so/g' /etc/php/php.ini
sudo apachectl restart

That should make alerts work for folks who need to use SSL with their SMTP server.

Maybe you could uncomment that extension before building the next MinePeon SD card image?

Also, one other little thing - I think the SMTP Auth Password field should be changed from an to field. I was a bit unnerved having my Gmail password revealed in plaintext whenever I visited the Settings page.

If anyone wants to know the SMTP settings I used that worked for Gmail it's -

SMTP Server: ssl://smtp.gmail.com SMTP Auth Ticked

SMTP Auth Username: sendersaccount@gmail.com SMTP Auth Password: SMTP Auth Port: 465