Here is what i did to install PhantomJS in cPanel / WHM 🙂
Today i received an e-mail notification from cpanel that a partition in my server is almost full.
First i checked largest directories / files using this command :
du -h --max-depth=1 /some/path
Then i noticed that they were some log files which took space in my partition 🙂
In some situation, like suggested in some mysql optimization script, you may want to regularly run “FLUSH QUERY CACHE”.
First, open your terminal and try to run this command :
mysql -e 'FLUSH QUERY CACHE'
If there is no error, you can add that command in your cron job, such as this command to run it every 10 minutes :
*/10 * * * * mysql -e 'FLUSH QUERY CACHE'
How to create tar.gz in Linux :
tar -zcvf "archive.tar.gz" "file.sql" tar -zcvf "archive.tar.gz" "/home/example/public_html/"
How to extract tar.gz in Linux :
tar -zxvf "archive.tar.gz"
You can run these commands to install PECL memcache (not memcached).
However, this memcache will work with memcached.
wget http://pecl.php.net/get/memcache-3.0.8.tgz tar xvfz memcache-3.0.8.tgz cd memcache-3.0.8 phpize ./configure make make install
Take note of the php extensions directory that memcache is installed in.
Mine is: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Then add this line to your php.ini