Way 1 : The easiest way, but it’s only available in this session, when you logout , or login for new session , the environment variable is not existed. Run below command : export APPLICATION_ENV=’staging’ And check value of variable APPLICATION_ENV echo $APPLICATION_ENV And login for […] Read More
Chuyên mục: Linux, Mac & Tips
Bài sưu tầm từ tài liệu của Mr.VuNguyen from Fado JSC. Có thể là copy từ các website khác. But it’s not important, let start ….. They’re both look to be the same, but are actually 2 different things. Memcached stores variables in it’s memory, […] Read More
Way 1 : Go to downmoreram.com and download anymore as you want 😀 Way 2 : Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free. To free pagecache:
1 |
echo 1 > /proc/sys/vm/drop_caches |
To free dentries […] Read More
Run below command
1 |
pecl install Xdebug |
Add those line to /etc/php.ini (for Centos 6,7) For 64 bit
1 2 3 4 5 6 7 8 9 10 |
[XDebug] ;Enable Xdebug extension module zend_extension = /usr/lib64/php/modules/xdebug.so xdebug.var_display_max_depth = -1 xdebug.var_display_max_children = -1 xdebug.var_display_max_data = -1 xdebug.show_local_vars = 1 xdebug.cli_color = 1 xdebug.dump.GET=* xdebug.dump.SERVER=REMOTE_ADDR |
For 32 bit
1 2 3 4 5 6 7 8 9 10 |
[XDebug] ;Enable Xdebug extension module zend_extension = /usr/lib/php/modules/xdebug.so xdebug.var_display_max_depth = -1 xdebug.var_display_max_children = -1 xdebug.var_display_max_data = -1 xdebug.show_local_vars = 1 xdebug.cli_color = 1 xdebug.dump.GET=* xdebug.dump.SERVER=REMOTE_ADDR |