install laravel on ubuntu 16 nginx php7 server

apt update && apt upgrade
curl -sS | php
mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer

Following are required extension for php 7 laravel app installation
sudo apt-get install php7.0-gd
sudo apt-get install php7.0-intl
sudo apt-get install php7.0-xsl
sudo apt-get install php7.0-bcmath
sudo apt-get install php7.0-mbstring php7.0-xml composer unzip

enabled gd extension by the following command
sudo phpenmod gd

# cd /var/www/html/your_website
# git clone
# mv laravel/* .
# mv laravel/.* .
#rmdir laravel/
composer install

php artisan key:generate

The API based drivers such as Mailgun and SparkPost are often simpler and faster than SMTP servers. If possible, you should use one of these drivers. All of the API drivers require the Guzzle HTTP library, which may be installed via the Composer package manager:
composer require guzzlehttp/guzzle

clear cache on laravel by using the following command
php artisan cache:clear

python 2.6 to 2.7.14 on centos7

# Start by making sure your system is up-to-date:
yum update
# Compilers and related tools:
yum groupinstall -y “development tools”
# Libraries needed during compilation to enable all features of Python:
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel expat-devel
# If you are on a clean “minimal” install of CentOS you also need the wget tool:
yum install -y wget

# Python 2.7.14:
tar xf Python-2.7.14.tar.xz
cd Python-2.7.14
./configure –prefix=/usr/local –enable-unicode=ucs4 –enable-shared LDFLAGS=”-Wl,-rpath /usr/local/lib”
make && make altinstall

After running the commands above your newly installed Python interpreter will be available as /usr/local/bin/python2.7. The system version of Python 2.6.6 will continue to be available as /usr/bin/python, /usr/bin/python
You might also want to strip symbols from the shared library to reduce the memory footprint.

# Strip the Python 2.7 binary:
strip /usr/local/lib/libpython2.7.a

But you don’t need to change your default Python to get the system to run 2.7 when you type python.
First, you can set up a shell alias:
alias python=/usr/local/bin/python2.7

# Check the system Python interpreter version:
python –V

Install/upgrade pip, setuptools and wheel
# First get the script:

# Then execute it using Python 2.7 and/or Python 3.6:

install nvm & set up bitcore over centos 7

1.curl | bash

After running the above command, you may receive output similar to the following:
Close and reopen your terminal to start using nvm

We can quickly verify that NVM is now installed and working properly with the following command:
nvm –version

2. nvm install v4
Now using node v4.8.6 (npm v2.15.11)
node -v & npm -v check same version number.

here is a quick and easy way how to install the current Node.js 4.x LTS
# Install the repository
rpm -Uvh

# Install Node.js
yum install nodejs
3. npm install -g bitcore

upgrade php 5.4 to 5.6 on centos 7 vestacp vultr

To upgrade php, first you must include the Webtatic EL yum repository data relating to your CentOS/RHEL variant to yum:
For CentOS/RHEL 7:

# rpm -Uvh
# rpm -Uvh

After installing Webtatic yum repository, you have to remove the old version of php-common package. It will also delete it dependencies packages.
# yum remove php-common

Now we install PHP 5.5 using following command:
# yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring

If you are running nginx web server with php-fpm then you need to install php fpm as below
yum install php56w-fpm -y

After installing PHP 5.6, we need to restart Nginx service.
sudo systemctl restart php-fpm
sudo systemctl restart nginx

install redis over ubuntu 14.04 & centos 7 for wordpress

ubuntu 14.04

1. sudo apt-get install redis-server php5-redis
2. Edit the file /etc/redis/redis.conf and add the following lines at the bottom:

sudo nano /etc/redis/redis.conf
Add these lines at the end of the file:

maxmemory 256mb
maxmemory-policy allkeys-lru

restart following
sudo service redis-server restart
sudo service php5-fpm restart

3. add one line as below on wp-config.php
define(‘WP_CACHE’, true);


1. yum install wget
2. wget
3. sudo rpm -ivh epel-release-7-5.noarch.rpm
1.sudo yum -y update
2.sudo yum install redis -y
3.sudo systemctl start redis.service
4.sudo systemctl status redis.service
5.sudo nano /etc/redis.conf
tcp-keepalive 60
maxmemory-policy noeviction
appendonly yes
6.sudo systemctl restart redis.service
7. yum install redis php-pecl-redis
you can redis from phpinfo function
8. add one line as below on wp-config.php
define(‘WP_CACHE’, true);

install w3c cache. it has option to enabled db cache with redis or install from below url

1. Download the PHP script:

Move the file to the /wp-content directory of your WordPress installation:

sudo mv object-cache.php /var/www/html/wp-content/

install wkhtmltopdf and execute it from shell script

Install over ubuntu 14.04

sudo apt-get update
sudo apt-get install xvfb libfontconfig wkhtmltopdf


xvfb-run wkhtmltopdf google.pdf

create file at bin folder

sudo nano /usr/local/vestacp/bin/


xvfb-run wkhtmltopdf <<url>> <<destination file name>>
echo “pdf is generated”


make is self execute ,give permission as below

chmod a+x /usr/local/vestacp/bin/

open cron editor or UI

  • * *  * * */5 sudo /usr/local/vestacp/bin/ >> ./log.log