Author: designil
-
[DigitalOcean] Setting up email forward with Postfix
It is quite a pain to setup email forwarding in DigitalOcean with not much experience in command line. Moreover, many tutorials online are outdated or didn’t provide right configuration. This is the guide to setup Postfix for email forwarding which I tested and tried many times.
-
[WordPress] Fix: Cannot update WordPress to new version (Cannot create directory)
Just run this command in terminal: chown -R www-data:www-data /var/www find /var/www/ -type d -exec chmod 755 {} \; find /var/www/ -type f -exec chmod 644 {} \; Note that if your WordPress is in the other place than /var/www, make sure to change the path in command above before running.
-
[Foundation 6 & WordPress] SyntaxError: class is a reserved identifier class
I got this error when trying to use foundation 6’s JavaScript from Essential pack (downloaded from here: http://foundation.zurb.com/sites/download.html/)
-
[WordPress] Custom URL using add_rewrite_rule
In the recent project, the clients would like to have pretty URL for good SEO in WordPress. Since the URL structure for WordPress is pretty limited, I have to try rewriting custom URL for client.
-
[Bootstrap] How to use Font Awesome in form submit button
(Tested in Font Awesome with Bootstrap 4) I usually use Font Awesome as a fa-* class in <i> tag, but little did I know that it is possible to use Font Awesome in <input> tag.
-
[MySQL] Reset & Import Database in MySQL using Command Line
Sometimes client’s server doesn’t has PHPMyAdmin installed (and it is 11MB, too big in my opinion), and I have to import database to deploy website from localhost to production server. Thus, I need to find a way to import SQL file directly in command line.
-
[CMD] Load Testing from your Mac / Linux using Apache Bench
Mac or Linux server has pre-installed Apache Bench which we can use for load testing for free. I am not sure about the limitation, but from my machine (Macbook Pro 2015), I can do load testing up to 200 concurrent connections.
-
[WordPress] Deployment on Amazon EC2: Solutions to Permalinks & PHP Issues
I have recently encountered 2 issues with deploying WordPress website on Amazon EC2; Permalinks not working on Amazon EC2 and old PHP version caused the code to break. I would like to note the solutions here in order to save hours of Googling for everyone 🙂