After installed the phpMyAdmin in centminmod, I saw this error message. File ./vendor/autoload.php missing or not readable. Most likely you did not run Composer to install library files. I like to fix it manually and access to my server shell and run these command. [code lang=”shell”] cd /usr/local/nginx/html/1111_mysqladmin12345 git pull rm -rf composer.phar wget -cnv Continue reading “File ./vendor/autoload.php missing or not readable. in centminmod phpMyAdmin”
Author Archives: juzhax
Create WordPress widget template from scratch
I’ve save down the most basic widget code for WordPress, you can copy this to your plugin and modify it to start your first widget. You can save time on this tutorial to help you create wordpress widget from scratch. [code lang=”php”] <?php class example_widget extends WP_Widget { function __construct() { parent::__construct(false, $name = ‘Example Continue reading “Create WordPress widget template from scratch”
Install Tinyproxy on Centos 7
mongoexport and mongoimport with query from one host to one host
I would like to query the data that I need only from a server to another server, and I just use one line of command in linux shell [code lang=”shell”] mongoexport -h fromHost.com -d fromDB -c fromCollection -q ‘{ count: { $gte: 1 } }’ | mongoimport -h toHost.com -d toNewDB -c toNewCollection [/code] If Continue reading “mongoexport and mongoimport with query from one host to one host”
Fast way to find duplicate data in MongoDB
I need to find out the duplicate data content in my 40 Millions records, then I can make the unique index to my name field. [code lang=”shell”] > db.collecton.aggregate([ … { $group : {_id : "$field_name", total : { $sum : 1 } } }, … { $match : { total : { $gte : Continue reading “Fast way to find duplicate data in MongoDB”
ERROR: failed to ptrace(PEEKDATA) pid 17402: Input/output error (5)
You may found this error from your php-fpm and the php-fpm crash [code lang=”shell”] tail /var/log/php-fpm/error.log [15-May-2016 12:24:13] ERROR: failed to ptrace(PEEKDATA) pid 17402: Input/output error (5) [15-May-2016 12:24:13] ERROR: failed to ptrace(PEEKDATA) pid 17777: Input/output error (5) [15-May-2016 12:24:13] ERROR: failed to ptrace(PEEKDATA) pid 18886: Input/output error (5) [15-May-2016 12:25:53] ERROR: failed to ptrace(PEEKDATA) Continue reading “ERROR: failed to ptrace(PEEKDATA) pid 17402: Input/output error (5)”
How to clear nginx cache manually ?
Normally I like to do manually job. assume that the default path of your nginx cache is /var/cache/nginx This will clear all your cache in one line. Delete a single file from nginx cache If you just want to delete a single file from nginx cache, you can try this. Then it will show something Continue reading “How to clear nginx cache manually ?”
How to resize OVH Public Cloud disk in CentOS 7 linux
Compatibility and safety note © juzhax.com This April 2016 example is a historical CentOS 7 procedure for an ext-family filesystem directly on /dev/vdb. CentOS 7 is end-of-life. Before following it on a current server, verify the device, filesystem and partition layout with lsblk -f and findmnt. Stop applications using the volume, create a recoverable backup, Continue reading “How to resize OVH Public Cloud disk in CentOS 7 linux”
lazy-result.js ReferenceError: Promise is not defined
[code lang=”javascript”] node_modules/postcss/lib/lazy-result.js:157 this.processing = new Promise(function (resolve, reject) { ^ ReferenceError: Promise is not defined [/code] When I install the FoundationPress, after I run gulp build I saw this message, this is because the node version problem. the have mention in this post https://github.com/postcss/postcss-nested/issues/30 Solution [code lang=”shell”] vim node_modules/postcss/lib/lazy-result.js [/code] Put this to the Continue reading “lazy-result.js ReferenceError: Promise is not defined”
How to Install MongoDB 3.2 on CentOS 7
[code lang=”shell”] vim /etc/yum.repos.d/mongodb.repo [/code] Paste this to the file and save using :wq [code lang=”shell”] [MongoDB] name=MongoDB Repository baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=0 enabled=1 [/code] Download and install mongodb using yum [code lang=”shell”] yum install mongodb-org -y [/code] Start mongod and configure auto start while system boot [code lang=”shell”] /etc/init.d/mongod restart chkconfig mongod on [/code] Check all Continue reading “How to Install MongoDB 3.2 on CentOS 7”
