PHP Developer

My notes and thoughts about Linux, WordPress, PHP and many more.

  • February 8, 2018

    Override upload_max_filesize and post_max_size on a per site basis in PHP-FPM Apache server

    Basic Steps This quick tutorial shows how you can override `upload_max_filesize` and `post_max_size` on a per site basis. This assumes you are using Apache server, PHP-FPM handler and WordPress. This tutorial assumes you have shell access to your server so you can restart Apache or PHP-FPM (this is optional but recommended). By default, there is only one default `php.ini` loaded on a server. Sometimes some virtual sites in your server might need specific configuration values that you don’t want …

  • January 29, 2018

    WP_Mock PHPUnit Testing Framework to WordPress Plugin: Complete Guide

    Introduction WP_Mock: ( https://github.com/10up/wp_mock ) is an API mocking framework that can be used for unit testing WordPress Plugins. This tutorial is a complete beginner guide to add and integrate WP_Mock mocking framework to your WordPress Plugin. WP_Mock uses Mockery PHP mock object framework for unit testing WordPress plugins. This is how to properly implement unit test inside WordPress plugins and can be considered as one of the best practices. If you are already familiar with mocking …

  • January 20, 2018

    How to install or update Eclipse PDT (PHP Development Tools ) to latest version in Ubuntu 16.04 | 18.04 LTS

    Eclipse is an open source IDE that can used for PHP development. This tutorial shows how to install and update Eclipse in latest Ubuntu 16.04 | 18.04 LTS. This tutorial is tested on Ubuntu 16.04. But these concepts apply to a recent Ubuntu 18.04 LTS and beyond. Install latest Java version first To get the speed benefits of using Eclipse, you need to update to the latest Java version. This is recommended if you are updating or installing Eclipse. Update your computer software to the very latest v …

  • January 21, 2017

    How to fresh install LAMP ( Apache, MySQL 5.7+, PHP 5.6/7.0+) in Ubuntu 16.04+

    Requisites Before proceeding the requisites below run this: sudo apt-get update Then: Old installation of Apache, MySQL and PHP must be completely uninstalled from your system before you can use this tutorial. It is because they will interfere with the new installation process and can disrupt the installation. Please refer to these complete removal procedures if you have not done yet. You must be running Ubuntu 16.04 +. If you have not done so, upgrade your Ubuntu version to 16.04 LTS. You must …

  • January 21, 2017

    How to completely remove PHP, MySQL and Apache in Ubuntu 16.04+

    Reasons why you would want to do this Local Apache/MySQL/PHP not working after upgrade to Ubuntu 16.04 Local Server beyond repair, diagnosing issues takes too much time Simply want to completely remove LAMPP installation in order to have a fresh installation. Requirements and scope Important: Please run: sudo apt-get update Before you proceed with anything else. Tested in Ubuntu 16.04+, if you are using an older Ubuntu versions. This may not guaranteed to work You want to completely remove PHP, …

  • Older posts