Install Composer Go to composer official website (https://getcomposer.org/doc/00-intro.md) Download installer and rename it to ‘composer-setup.php’ Execute this command line: php composer-setup.php –install-dir=/usr/local/bin Rename ‘composer.phar’ to ‘composer’ under /usr/local/bin Execute this command line to test whether it works or not: composer –help Install PHPWord Go to PHPWord github website (https://github.com/PHPOffice/PHPWord) to download Unzip PHPWord code to […]
tar -xzvf gsl-2.1.tar.gz cd gsl-2.1 ./configure make sudo make install If error occurs: error while loading shared libraries: libgsl.so.19: cannot open shared object file: No such file or directory export LD_LIBRARY_PATH=/usr/local/lib For some Linux version (like CentOS), above solution may not work and still report same error. So what we need to do is ‘How […]
Operate apache /etc/init.d/apache2 restart sudo /etc/init.d/apache2 restart sudo service apache2 restart Check Ubuntu version: lsb_release -a Creating a new user: sudo adduser UserName Disallow user from login: sudo usermod –expiredate 1 UserName To reenable that account, set expiration date of user to Never: sudo usermod –expiredate “” UserName Creating a group: sudo […]
Jquery AJAX execute twice: The script was retrying the request after a timeout.
I have been installing above packages time to time, but because of I’m lack in memory, I have to search google again and again to find out the installation instructions :-).Yes, it is a simple apt-get install stuff, but think there are few additional things to remember, so I’m writing down them here. Apache 2 […]
phpmailer gmail phpmailer package might not work for gmail, that’s could be fixed by enable “Allowing less secure apps to access your account” Enable php error display sudo cp /private/etc/php.ini.default /private/etc/php.ini This always works for me: ini_set(‘display_errors’, 1); ini_set(‘display_startup_errors’, 1); error_reporting(E_ALL); However, this doesn’t make PHP to show parse errors – the only way to […]
To delete tons of files under a dictionary find . -name “*.png” -print | xargs rm Enable vi syntax highlighting by default 1. vi ~/.vimrc 2. syntax on Enable psql command on Mac OS X terminal 1. Run locate psql | grep /bin in terminal. (e.g. /Library/PostgreSQL/9.4/bin/psql) 2. vi ~/.bash_profile 3. insert export PATH=/Library/PostgreSQL/9.4/bin/:$PATH Enable […]