By editor, 24 January, 2016 Remove Apache Log files Tags Server Shell Step 1. Connect to the server as root or execute commands as sudo #sudo su Step 2. remove all log files rm -rf /var/log/apache2/* rm -rf /var/log/virtualmin/* ....
By editor, 24 January, 2016 XDebug - Install and configure with NetBeans Tags Server Debug Step 1. Install Xdebug If not already ainstalled, Install Xdebug (I'ts already on the package WAML, LAMP, MAMP) In Linux Debian/Ubuntu/Mint # sudo apt-get install php5-xdebug
By editor, 18 January, 2016 Get site Name & Host name (site address) Tags Drupal 8 Code Site Name: $site_name = \Drupal::config('system.site')->get('name'); Site Address (Host) $site_addr = "http://" . \Drupal::request()->getHost();
By editor, 18 January, 2016 Create a simple Block programmatically Tags Drupal 8 Code Module Plugin In drupal 8 block is part of the plugin system. Step 1. Create a simple module like this.
By editor, 18 January, 2016 Debug and Display errors. PHP Apache Mysql Xdebug Tags Server Shell Debug Step 1. Check apache error log (use tail to show in real time) # tail -f /var/log/apache2/error.log Step 2 : Check MySQL database connection using mysql -uusername -ppassword