Laravel google smtp setup

For this to work you would need also enabling in your google account "Less secure app access". It is under "My Account Page" and "Security". After this, edit .env file and add following:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=replaceme
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="${APP_NAME}"

The mail_username needs to be e-mail what you have in google. In password field define password what is defined in google mail.

Cacti with apache, mariadb on AMI 2018 Linux

Install apache, mod_ssl, net-snmp php72 and php72 modules

yum install httpd24 mod24_ssl.x86_64 php72 net-snmp net-snmp-utils php72 php72-xml php72-session php72-sockets php72-ldap php72-gd php72-gmp php72-intl php72-mbstring php72-mysqlnd php72-pdo php72-process php72-snmp php72-mysql php72-pear php72-common php72-gd php72-devel php72 php72-mbstring php72-cli php72-intl php72-snmp

Jira setup with nginx, let's encrypt and mysql under ubuntu 18.04

Start by installing nginx

apt install nginx-full

Nginx virtualhost setup

vi /etc/nginx/sites-available/yourowndomain
server {
                server_name     CHANGE_THIS_with_YOUROWNDOMAIN;
                client_max_body_size 50M;

                location / {
                proxy_pass http://127.0.0.1:8080;
                proxy_set_header    X-Forwarded-Host $host;
                proxy_set_header    X-Forwarded-Server $host;
                proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
Tags 
jira

Chevereto with Lighttpd clean urls

Here is solution how to get clean urls working with Chevereto and Lighttpd

Do not add url rewrite but add server.error-handler-404

$HTTP["host"] =~ "example.com" {
server.document-root = "/usr/local/www/example.com/http/"
        server.error-handler-404 = "/index.php"
}

This also works with admin and api url

Install FreeBSD with disk encryption on VPS using mfbsd

This method should work with all vendors where VNC is available. It is based on mfsbsd image. mfsbsd is freebsd floppy image what works in ram. Also solution where freebsd is availabe from template install but you want GELI disk encryption. This method uses grub image boot with ubuntu

First install Ubuntu 18.04. Write down network information. GW, Netmask and IP (route -n and ip addr show).

Then prepare grub to boot mfsbsd image.

Tags 
freebsd geli vps

Install postgresql on centos 7

Installing postgresql

Fedora, RHEL, CentOS, or similar OS

# yum install postgresql
# yum install postgresql-server

Initialize postgresql Files

# postgresql-setup initdb

Setup postgresql

  1. Set address 127.0.0.1 and ::1 to trust at the pg_hba.conf file. The directory might not be visible to non-sudoers. Run sudo su first.