Mailgun is one of some services to send e-mail. It has a nice PHP library here. But for some reason, it only works in my local server, and it does not work at all in remote server and the code returns “Mailgun server is not reachable” error (although i have tried to disable server firewall, which was not a best decision).
Here is how to use Midtrans-PHP official library in Codeigniter 3 🙂
There are various reasons why CSF firewall may make your WHM / server slow.
Here are some personal tips from me.
I have used TeamViewer for years. Recently i was bugged with message that i use TeamViewer as business purpose, although i use TeamViewer only to connect to my other computer, in the same house.
I was considering to upgrade my TeamViewer to paid plan. But after considering some factors, i tried to search TeamViewer alternatives.
If you are looking for bitmex API example using PHP, you can use this code 🙂
If you use Cloudflare flexible SSL certificate to use HTTPS, in some case you may get redirect loop.
I believe it is caused because WordPress does not recognize the “fake” SSL certificate.
Fixing it is simple.
wp-config.php file, and find this first line
To find some string within files in Linux, you can use this command
grep -rnw '/your/path/' -e "find this string"
-r means recursive
-n means line number
-w means match the whole word 🙂
Here is what i did to install PhantomJS in cPanel / WHM 🙂
DKIM is one of useful thing to make email which is sent by your domain to be avoided marked as spam.
When you use cloudflare for that domain, there is some change that you need to do on the DKIM key.
For example on your WHM (Edit DNS Zone) or cPanel (Email > Authentication), you will get DKIM key with format like this :
"v=DKIM1; k=rsa; p=XXXX" YYY\;
If we want to get detailed log report, we can store multiple log files with date and time information on the file name 🙂
We can do this command in Linux :
your_command_here > /path_1/path_2/your_log_$(date +"%Y-%m-%d_%H-%M-%S").txt