Adding private git repo via cPanel

CLONE GITHUB REPOSITORY TO CPANEL STEPS steps 1. Cpanel -> SSH Access -> Generate New Key(without enter pasword)->after generated key go to under public key-> manage-> authorize (make authoize) -> back, now view/download-> copy key Step 2. Go Github-> https://github.com// -> Settings(repository setting) ->Deploy Keys (rights side)-> add deploy key (give title,and add key)-> done … Read more

Run node.js on cpanel hosting server

Install/Setup NodeJS with CPanel 1. Log in to your account using SSH (if it is not enabled for your account, contact the support team). 2. Download Node.js wget https://nodejs.org/dist/latest/node-v10.0.0-linux-arm64.tar.xz 3. Extract the Node.js files tar xvf node-v10.0.0-linux-arm64.tar.xz 4.Now rename the folder to “nodejs”. To do this, type the following command mv node-v10.0.0-linux nodejs 5. Now … Read more

onchange file input change img src and change image color

You need to send this object only instead of this.value while calling onchange <input type=”file” id=”upload” onchange=”readURL(this)” /> because you are using input variable as this in your function, like at line var url = input.value;// reading value property of input element Working DEMO EDIT – Try using jQuery like below — remove onchange from … Read more

How to change public folder to public_html in laravel 5

Quite easy to find this with a simple search. See: https://laracasts.com/discuss/channels/general-discussion/where-do-you-set-public-directory-laravel-5 In your index.php add the following 3 lines. /* |————————————————————————– | Turn On The Lights |————————————————————————– | | We need to illuminate PHP development, so let us turn on the lights. | This bootstraps the framework and gets it ready for use, then it … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)