run node:
cd /home/hoogw2000/public_html/arcgis_viewer/pm2 start npm -- start
kill node:http://pm2.keymetrics.io
pm2 delete 0
pm2 stop 0
pm2 list
// // nohup nodemon --exec npm start
************* user (hoogw) cd /../.../ permission denied ***********************
putty login (only as hoogw, it is server account) NOT hoogw2000, it is cpannel account,use to login to cpannel
whoami [show currently what user]
ls, permission denied, try sudo ls
switch user to hoogw2000: sudo su - hoogw2000
if get permission denied, try run as root(super user mode): sudo su cd /.../...... if run as hoogw2000, you should be able to : cd /home/hoogw2000/public_html/arcgis_viewer/ pm2 start npm -- start ======================================================== Install nodejs, npm, pm2 globally Step 1 – Add Node.js Yum Repository First of all, You need to enable node.js yum repository in your system provided by the Node.js official website. You also need development tools to build native add-ons to be installed on your system.
For Latest Release:-
yum install -y gcc-c++ make curl -sL https://rpm.nodesource.com/setup_11.x | sudo -E bash - For Stable Release:-
yum install -y gcc-c++ make curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash - Step 2 – Install Node.js and NPM After adding yum repository in your system lets install Node.js package. NPM will also be installed with node.js. This command will also install many other dependent packages on your system.
yum install nodejs Don’t Miss => Yarn Installation ( A Node Modules Manager) Install Yarn using NPM Yarn package is available to install with NPM. You can simply run the following command to install Yarn globally. Also, remove -g option to install for current project only.
sudo npm install yarn -g Step 3 – Check Node.js and NPM Version After installing node.js verify and check the installed version. You can find more details about current version on node.js official website.
node -v
v11.0.0 Also, check the version of npm.
npm -v
6.4.1
-------------------------- Install PM2 globally:
1)run as root(super user mode): sudo su
2) npm i -g pm2 or if user is sudo-er
sudo npm i -g pm2 and then go back to user (or stay in root if it was created by root user) and run it:
pm2 start server.js
******* End ****** user (hoogw) cd /../.../ permission denied ***********************
sudo cp -a /home/transparentgov/public_html/arcgis_viewer/. /home/hoogw/arcgis_viewer
phpmyadmin
File manager upload file
Rename config.php
Install the mbstring PHP Extension with EasyApache
x
sudo rm -rf node
----------------------------
click cpanel next to your domain name
1) create a new database
2) add transpr_root user to the newly created DB ( must DO)
whm ------- click file manager
public_html folder, upload zip file. extract .
config_windows.php
config_centOS.php
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing mbstring extention ( glassgov1, carbon forum required)
php -m | grep mbstring [if nothing, means missing mbstring]
whm cpanel ----- search for apache,
open easy apache 4
customize currently installed packages,
click "customize" on top first line
search mbstring, click next, next, .... privision. done
php -m | grep mbstring [should see mbstring]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
No comments:
Post a Comment