This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
16
Addons / Re: Reseller account module
« on: April 04, 2019, 10:37:47 PM »
This is for CWP 6 and centos 6 so i bealeve in cwp 6 will be work on 7 will not.
17
Other / Re: CWP7 multiple problems - suggestion
« on: April 04, 2019, 06:47:33 PM »
Same here, just install CWP 7 on virtual Local machine and i just whant to install node to setup auto instalacion and configuration. and i sow that is everthing lock and see "Decoding is FORBIDDEN" even
Missing and autoupdate_3dtparty.php is Coded with ioncube.
Probably no longer able to add their own personal modules. I know it when everyone adds a little bit and when all this is collected on a pile it's a lot. But then let's make new modules as it does WordPress simply add a folder and it automatically reads it and turns it on if the user says it to turn it on.
idea!
Code: [Select]
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
Missing and autoupdate_3dtparty.php is Coded with ioncube.
Probably no longer able to add their own personal modules. I know it when everyone adds a little bit and when all this is collected on a pile it's a lot. But then let's make new modules as it does WordPress simply add a folder and it automatically reads it and turns it on if the user says it to turn it on.
idea!
18
Addons / Re: How to install Node.js and npm on CentOS 7 on Centos Control Panel (Pro)
« on: March 27, 2019, 01:27:39 PM »
For some one who will use Nginx from Cetos
Hi all, first im using Pro Version so some settings on the end is good for me!
Node.js is a cross-platform JavaScript run-time environment that allows server-side execution of JavaScript code. Node.js is mainly used on the back-end, but it is also popular as a full-stack and front-end solution.
npm, short for Node Package Manager is the default package manager for Node.js and the world’s largest software repository for the publishing of open-source Node.js packages.
This tutorial walks you through the steps to install Node.js and npm on a CentOS 7 machine. We will show you two different ways of installing Node.js and npm.
In the first part of this tutorial we will install Node.js and npm using the yum package manager from the NodeSource repository. In the second part, we will teach you how to install Node.js and npm using the nvm script.
If you need Node.js only for deploying Node.js applications then the simplest option is to install the Node.js packages using yum from the NodeSource repository.
Prerequisites
Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. ifi is on server you must have Putty and you are probebly already log in!
Installing Node.js and npm on CentOS 7
NodeSource is a company dedicated to providing enterprise-grade Node support and they maintain a consistently-updated Node.js repository for Linux distributions.
To install Node.js and npm from the NodeSource repositories on your CentOS 7 system, follow these steps:
1. Add NodeSource yum repository
The current LTS version of Node.js is version 10.x. If you want to install version 8 just change setup_10.x with setup_8.x in the command below.
Run the following curl command to add the NodeSource yum repository to your system:
2. Install Node.js and npm
Once the NodeSource repository is enabled, install Node.js and npm by typing:
When prompted to import the repository GPG key, type y, and press Enter.
3. Verify the Node.js and npm Installation
To check that the installation was successful, run the following commands which will print the Node.js and npm versions.
Print Node.js version:
shuld be somthing like
Print npm version:
6.4.1
How to install Node.js and npm using NVM
NVM (Node Version Manager) is a bash script used to manage multiple active Node.js versions. NVM allows us to install and uninstall any specific Node.js version which means we can have any number of Node.js versions we want to use or test.
To install Node.js and npm using NVM on your CentOS system, follow these steps:
1. Install NVM (Node Version Manager)
To download the nvm install script run the following command:
The script will clone the nvm repository from Github to ~/.nvm and add the script Path to your Bash or ZSH profile.
=> Close and reopen your terminal to start using nvm or run the following to use it now:
As the output above shows, you should either close and reopen your terminal or run the commands to add the path to nvm script to your current session.
To verify that nvm was properly installed type:
2. Install Node.js using NVM
Now that the nvm tool is installed we can install the latest available version of Node.js, by typing:
Verify the Node.js version, by typing:
v10.1.0
3. Install multiple Node.js versions using NVM
Let’s install two more versions, the latest LTS version and version 8.12.0
For each wersion you wont to install just type nvm install 1.1.1
Once LTS version and 8.12.0 are installed to list all installed Node.js instances type:
The output tell us that the entry with an arrow on the left (-> v8.12.0), is the version used in the current shell session and the default version is set to v11.0.0. Default version is the version that will be active when opening new shells.
To change the currently active version you can use the following command:
To be able to build native modules from npm we will need to install the development tools and libraries:
I have shown you two different ways to install Node.js and npm on your CentOS 7 server. The method you choose depends on your requirements and preferences. While installing the packaged version from the NodeSource repository is easier, the nvm method gives you more flexibility for adding and removing different Node.js versions on a per-user basis.
Now all you have to do is to install and run your script i will install Ghost on my production webserver. before that you must have this nvm installed cuz you have flexibility for all other node project on your website or webserver
1. Install a Process Manager
Next, install a process manager so you can control your Node.js applications. This process manager will allow you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks. Enter the following command:
2. Install Ghost on CentOS 7
First, create a directory for your Ghost website:
Enter the newly created dir:
Download the latest Ghost version:
Delete the archive:
3. Configure Ghost CMS
After the installation is completed, configure Ghost and update the URL in the config file with your domain. Copy the example config into a new file:
Open the file:
Find the ‘Production’ section and update the URL with your domain. After modifying it should look like this:
Now you can use the process manager that we installed earlier to configure Ghost to run forever. Execute the below command:
To start/stop/restart Ghost you can use:
4. Configure Nginx to Act as a Reverse Proxy
Your next step is to configure Nginx to act as a reverse proxy for your Ghost application. Open a WebServers manage in your CWPAdmin:
Select Depends on your Configuration of webserver i prefer Nginx & Varnish & Apache, Save and Rebuild configuration.
When rebuild is finish, go to Manage WebServers Configuration select first user and then web site you wont to Configure
Press configure (blue BTN) you will se somthing like this picture
For this configuration select nginx -> proxy -> costum port
-leave Nginx Configuration default
-Chek Rebuild Configuration
- Enter costum your port
-enter your localhost 127.0.0.1 (if you get error in ghost that is configuration error and you must tell that is produstion value www.yourwebsite.com but here you leave localhost settings coz node.js work in localhost)
5. Test and Restart Nginx Server
Test the Nginx configuration and restart Nginx so the changes can take effect:
I will support this to developer of centos to add into their configuration and create this modern and magnificent CWP even more better
Any Additional test i will glad to help you!
Hi all, first im using Pro Version so some settings on the end is good for me!
Node.js is a cross-platform JavaScript run-time environment that allows server-side execution of JavaScript code. Node.js is mainly used on the back-end, but it is also popular as a full-stack and front-end solution.
npm, short for Node Package Manager is the default package manager for Node.js and the world’s largest software repository for the publishing of open-source Node.js packages.
This tutorial walks you through the steps to install Node.js and npm on a CentOS 7 machine. We will show you two different ways of installing Node.js and npm.
In the first part of this tutorial we will install Node.js and npm using the yum package manager from the NodeSource repository. In the second part, we will teach you how to install Node.js and npm using the nvm script.
If you need Node.js only for deploying Node.js applications then the simplest option is to install the Node.js packages using yum from the NodeSource repository.
Prerequisites
Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. ifi is on server you must have Putty and you are probebly already log in!
Installing Node.js and npm on CentOS 7
NodeSource is a company dedicated to providing enterprise-grade Node support and they maintain a consistently-updated Node.js repository for Linux distributions.
To install Node.js and npm from the NodeSource repositories on your CentOS 7 system, follow these steps:
1. Add NodeSource yum repository
The current LTS version of Node.js is version 10.x. If you want to install version 8 just change setup_10.x with setup_8.x in the command below.
Run the following curl command to add the NodeSource yum repository to your system:
Code: [Select]
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
2. Install Node.js and npm
Once the NodeSource repository is enabled, install Node.js and npm by typing:
Code: [Select]
sudo yum install nodejs
When prompted to import the repository GPG key, type y, and press Enter.
3. Verify the Node.js and npm Installation
To check that the installation was successful, run the following commands which will print the Node.js and npm versions.
Print Node.js version:
Code: [Select]
node --version
shuld be somthing like
Code: [Select]
v10.13.0
Print npm version:
Code: [Select]
npm --version
6.4.1
How to install Node.js and npm using NVM
NVM (Node Version Manager) is a bash script used to manage multiple active Node.js versions. NVM allows us to install and uninstall any specific Node.js version which means we can have any number of Node.js versions we want to use or test.
To install Node.js and npm using NVM on your CentOS system, follow these steps:
1. Install NVM (Node Version Manager)
To download the nvm install script run the following command:
Code: [Select]
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
The script will clone the nvm repository from Github to ~/.nvm and add the script Path to your Bash or ZSH profile.
=> Close and reopen your terminal to start using nvm or run the following to use it now:
Code: [Select]
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
As the output above shows, you should either close and reopen your terminal or run the commands to add the path to nvm script to your current session.
To verify that nvm was properly installed type:
Code: [Select]
nvm --version
Code: [Select]
0.33.11
2. Install Node.js using NVM
Now that the nvm tool is installed we can install the latest available version of Node.js, by typing:
Code: [Select]
nvm install node
some responceCode: [Select]
Downloading and installing node v11.0.0...
Downloading https://nodejs.org/dist/v11.0.0/node-v11.0.0-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v11.0.0 (npm v6.4.1)
Creating default alias: default -> node (-> v11.0.0)
Verify the Node.js version, by typing:
Code: [Select]
node --version
v10.1.0
3. Install multiple Node.js versions using NVM
Let’s install two more versions, the latest LTS version and version 8.12.0
Code: [Select]
nvm install --lts
nvm install 8.12.0
For each wersion you wont to install just type nvm install 1.1.1
Once LTS version and 8.12.0 are installed to list all installed Node.js instances type:
Code: [Select]
nvm ls
Code: [Select]
-> v8.12.0 # ACTIVE VERSION
v10.13.0
v11.0.0
default -> node (-> v11.0.0) # DEFAULT VERSION
node -> stable (-> v11.0.0) (default)
stable -> 11.0 (-> v11.0.0) (default)
iojs -> N/A (default)
lts/* -> lts/dubnium (-> v10.13.0)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.14.4 (-> N/A)
lts/carbon -> v8.12.0
lts/dubnium -> v10.13.0
The output tell us that the entry with an arrow on the left (-> v8.12.0), is the version used in the current shell session and the default version is set to v11.0.0. Default version is the version that will be active when opening new shells.
To change the currently active version you can use the following command:
Code: [Select]
nvm use 10.13.0
The output will look like something this:Code: [Select]
Now using node v10.13.0 (npm v6.4.1)
To change the default Node.js version type:Code: [Select]
nvm alias default 10.13.0
Code: [Select]
default -> 10.13.0 (-> v10.13.0)
Install development toolsTo be able to build native modules from npm we will need to install the development tools and libraries:
Code: [Select]
sudo yum install gcc-c++ make
ConclusionI have shown you two different ways to install Node.js and npm on your CentOS 7 server. The method you choose depends on your requirements and preferences. While installing the packaged version from the NodeSource repository is easier, the nvm method gives you more flexibility for adding and removing different Node.js versions on a per-user basis.
Now all you have to do is to install and run your script i will install Ghost on my production webserver. before that you must have this nvm installed cuz you have flexibility for all other node project on your website or webserver
1. Install a Process Manager
Next, install a process manager so you can control your Node.js applications. This process manager will allow you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks. Enter the following command:
Code: [Select]
npm install pm2 -g
2. Install Ghost on CentOS 7
First, create a directory for your Ghost website:
Code: [Select]
mkdir /var/www/html/your_site
Enter the newly created dir:
Code: [Select]
cd /var/www/html/your_site
Download the latest Ghost version:
Code: [Select]
curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip
Unzip the archive:Code: [Select]
unzip ghost.zip
Delete the archive:
Code: [Select]
rm ghost.zip
Now install the app with the npm installer:Code: [Select]
npm install -production
3. Configure Ghost CMS
After the installation is completed, configure Ghost and update the URL in the config file with your domain. Copy the example config into a new file:
Code: [Select]
cp config.example.js config.js
Open the file:
Code: [Select]
nano config.js
Find the ‘Production’ section and update the URL with your domain. After modifying it should look like this:
Code: [Select]
// ### Production
// When running Ghost in the wild, use the production environment.
// Configure your URL and mail settings here
production: {
url: 'http://your_domain',
Save and close the file.Now you can use the process manager that we installed earlier to configure Ghost to run forever. Execute the below command:
Code: [Select]
NODE_ENV=production pm2 start index.js --name "Ghost"
To start/stop/restart Ghost you can use:
Code: [Select]
pm2 start Ghost
Code: [Select]
pm2 stop Ghost
Code: [Select]
pm2 restart Ghost
4. Configure Nginx to Act as a Reverse Proxy
Your next step is to configure Nginx to act as a reverse proxy for your Ghost application. Open a WebServers manage in your CWPAdmin:
Select Depends on your Configuration of webserver i prefer Nginx & Varnish & Apache, Save and Rebuild configuration.
When rebuild is finish, go to Manage WebServers Configuration select first user and then web site you wont to Configure
Press configure (blue BTN) you will se somthing like this picture
For this configuration select nginx -> proxy -> costum port
-leave Nginx Configuration default
-Chek Rebuild Configuration
- Enter costum your port
-enter your localhost 127.0.0.1 (if you get error in ghost that is configuration error and you must tell that is produstion value www.yourwebsite.com but here you leave localhost settings coz node.js work in localhost)
5. Test and Restart Nginx Server
Test the Nginx configuration and restart Nginx so the changes can take effect:
Code: [Select]
# nginx -t
Code: [Select]
# service nginx restart
I will support this to developer of centos to add into their configuration and create this modern and magnificent CWP even more better
Any Additional test i will glad to help you!
19
Addons / Re: How to install Node.js and npm on CentOS 7 on Centos Control Panel (Pro)
« on: March 26, 2019, 06:44:18 AM »
As i can see server working fine and even node is working fine! and everiting is delightful!
20
DNS / Re: [bug] Adding subdomain at cpanel does not restart bind
« on: March 25, 2019, 02:09:48 PM »
You have misconfiguration of Bind
21
Addons / Re: How to host multiple React or Node.js sites on CWP?
« on: March 25, 2019, 02:01:41 PM »
Ok so last 2 days im messing up with my server and i able to run NODE.js Its possible oldo, must say its really hard to doo it!
http://forum.centos-webpanel.com/addons/how-to-install-node-js-and-npm-on-centos-7-on-centos-control-panel-(pro)/
i create some tutorial
http://forum.centos-webpanel.com/addons/how-to-install-node-js-and-npm-on-centos-7-on-centos-control-panel-(pro)/
i create some tutorial
22
Addons / How to install Node.js and npm on CentOS 7 on Centos Control Panel (Pro)
« on: March 25, 2019, 01:59:58 PM »
Hi all, first im using Pro Version so some settings on the end is good for me!
Node.js is a cross-platform JavaScript run-time environment that allows server-side execution of JavaScript code. Node.js is mainly used on the back-end, but it is also popular as a full-stack and front-end solution.
npm, short for Node Package Manager is the default package manager for Node.js and the world’s largest software repository for the publishing of open-source Node.js packages.
This tutorial walks you through the steps to install Node.js and npm on a CentOS 7 machine. We will show you two different ways of installing Node.js and npm.
In the first part of this tutorial we will install Node.js and npm using the yum package manager from the NodeSource repository. In the second part, we will teach you how to install Node.js and npm using the nvm script.
If you need Node.js only for deploying Node.js applications then the simplest option is to install the Node.js packages using yum from the NodeSource repository.
Prerequisites
Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. ifi is on server you must have Putty and you are probebly already log in!
Installing Node.js and npm on CentOS 7
NodeSource is a company dedicated to providing enterprise-grade Node support and they maintain a consistently-updated Node.js repository for Linux distributions.
To install Node.js and npm from the NodeSource repositories on your CentOS 7 system, follow these steps:
1. Add NodeSource yum repository
The current LTS version of Node.js is version 10.x. If you want to install version 8 just change setup_10.x with setup_8.x in the command below.
Run the following curl command to add the NodeSource yum repository to your system:
2. Install Node.js and npm
Once the NodeSource repository is enabled, install Node.js and npm by typing:
When prompted to import the repository GPG key, type y, and press Enter.
3. Verify the Node.js and npm Installation
To check that the installation was successful, run the following commands which will print the Node.js and npm versions.
Print Node.js version:
shuld be somthing like
Print npm version:
6.4.1
How to install Node.js and npm using NVM
NVM (Node Version Manager) is a bash script used to manage multiple active Node.js versions. NVM allows us to install and uninstall any specific Node.js version which means we can have any number of Node.js versions we want to use or test.
To install Node.js and npm using NVM on your CentOS system, follow these steps:
1. Install NVM (Node Version Manager)
To download the nvm install script run the following command:
The script will clone the nvm repository from Github to ~/.nvm and add the script Path to your Bash or ZSH profile.
=> Close and reopen your terminal to start using nvm or run the following to use it now:
As the output above shows, you should either close and reopen your terminal or run the commands to add the path to nvm script to your current session.
To verify that nvm was properly installed type:
2. Install Node.js using NVM
Now that the nvm tool is installed we can install the latest available version of Node.js, by typing:
Verify the Node.js version, by typing:
v10.1.0
3. Install multiple Node.js versions using NVM
Let’s install two more versions, the latest LTS version and version 8.12.0
For each wersion you wont to install just type nvm install 1.1.1
Once LTS version and 8.12.0 are installed to list all installed Node.js instances type:
The output tell us that the entry with an arrow on the left (-> v8.12.0), is the version used in the current shell session and the default version is set to v11.0.0. Default version is the version that will be active when opening new shells.
To change the currently active version you can use the following command:
To be able to build native modules from npm we will need to install the development tools and libraries:
I have shown you two different ways to install Node.js and npm on your CentOS 7 server. The method you choose depends on your requirements and preferences. While installing the packaged version from the NodeSource repository is easier, the nvm method gives you more flexibility for adding and removing different Node.js versions on a per-user basis.
Now all you have to doo is to install and run your script i will install Ghost on my production webserver. before that you must have this nvm installed cuz you have flexibility for all other node project on your website or webserver
1. Install a Process Manager
Next, install a process manager so you can control your Node.js applications. This process manager will allow you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks. Enter the following command:
2. Install Nginx and PHP-FPM
Your next step is to install Nginx and PHP-FPM along with some much needed dependencies:
Start Nginx and enable it to start on boot:
3. Install Ghost on CentOS 7
First, create a directory for your Ghost website:
Enter the newly created dir:
Download the latest Ghost version:
Delete the archive:
4. Configure Ghost CMS
After the installation is completed, configure Ghost and update the URL in the config file with your domain. Copy the example config into a new file:
Open the file:
Find the ‘Production’ section and update the URL with your domain. After modifying it should look like this:
Now you can use the process manager that we installed earlier to configure Ghost to run forever. Execute the below command:
To start/stop/restart Ghost you can use:
5. Configure Nginx to Act as a Reverse Proxy
Your next step is to configure Nginx to act as a reverse proxy for your Ghost application. Open a config file:
6. Test and Restart Nginx Server
Test the Nginx configuration and restart Nginx so the changes can take effect:
Now its time to create some hi trafick to test
I will support this to developer of centos to add into their configuration and create this modern and magnificent CWP even more better
Any Additional test i will glad to help you!
Node.js is a cross-platform JavaScript run-time environment that allows server-side execution of JavaScript code. Node.js is mainly used on the back-end, but it is also popular as a full-stack and front-end solution.
npm, short for Node Package Manager is the default package manager for Node.js and the world’s largest software repository for the publishing of open-source Node.js packages.
This tutorial walks you through the steps to install Node.js and npm on a CentOS 7 machine. We will show you two different ways of installing Node.js and npm.
In the first part of this tutorial we will install Node.js and npm using the yum package manager from the NodeSource repository. In the second part, we will teach you how to install Node.js and npm using the nvm script.
If you need Node.js only for deploying Node.js applications then the simplest option is to install the Node.js packages using yum from the NodeSource repository.
Prerequisites
Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. ifi is on server you must have Putty and you are probebly already log in!
Installing Node.js and npm on CentOS 7
NodeSource is a company dedicated to providing enterprise-grade Node support and they maintain a consistently-updated Node.js repository for Linux distributions.
To install Node.js and npm from the NodeSource repositories on your CentOS 7 system, follow these steps:
1. Add NodeSource yum repository
The current LTS version of Node.js is version 10.x. If you want to install version 8 just change setup_10.x with setup_8.x in the command below.
Run the following curl command to add the NodeSource yum repository to your system:
Code: [Select]
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
2. Install Node.js and npm
Once the NodeSource repository is enabled, install Node.js and npm by typing:
Code: [Select]
sudo yum install nodejs
When prompted to import the repository GPG key, type y, and press Enter.
3. Verify the Node.js and npm Installation
To check that the installation was successful, run the following commands which will print the Node.js and npm versions.
Print Node.js version:
Code: [Select]
node --version
shuld be somthing like
Code: [Select]
v10.13.0
Print npm version:
Code: [Select]
npm --version
6.4.1
How to install Node.js and npm using NVM
NVM (Node Version Manager) is a bash script used to manage multiple active Node.js versions. NVM allows us to install and uninstall any specific Node.js version which means we can have any number of Node.js versions we want to use or test.
To install Node.js and npm using NVM on your CentOS system, follow these steps:
1. Install NVM (Node Version Manager)
To download the nvm install script run the following command:
Code: [Select]
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
The script will clone the nvm repository from Github to ~/.nvm and add the script Path to your Bash or ZSH profile.
=> Close and reopen your terminal to start using nvm or run the following to use it now:
Code: [Select]
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
As the output above shows, you should either close and reopen your terminal or run the commands to add the path to nvm script to your current session.
To verify that nvm was properly installed type:
Code: [Select]
nvm --version
Code: [Select]
0.33.11
2. Install Node.js using NVM
Now that the nvm tool is installed we can install the latest available version of Node.js, by typing:
Code: [Select]
nvm install node
some responceCode: [Select]
Downloading and installing node v11.0.0...
Downloading https://nodejs.org/dist/v11.0.0/node-v11.0.0-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v11.0.0 (npm v6.4.1)
Creating default alias: default -> node (-> v11.0.0)
Verify the Node.js version, by typing:
Code: [Select]
node --version
v10.1.0
3. Install multiple Node.js versions using NVM
Let’s install two more versions, the latest LTS version and version 8.12.0
Code: [Select]
nvm install --lts
nvm install 8.12.0
For each wersion you wont to install just type nvm install 1.1.1
Once LTS version and 8.12.0 are installed to list all installed Node.js instances type:
Code: [Select]
nvm ls
Code: [Select]
-> v8.12.0 # ACTIVE VERSION
v10.13.0
v11.0.0
default -> node (-> v11.0.0) # DEFAULT VERSION
node -> stable (-> v11.0.0) (default)
stable -> 11.0 (-> v11.0.0) (default)
iojs -> N/A (default)
lts/* -> lts/dubnium (-> v10.13.0)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.14.4 (-> N/A)
lts/carbon -> v8.12.0
lts/dubnium -> v10.13.0
The output tell us that the entry with an arrow on the left (-> v8.12.0), is the version used in the current shell session and the default version is set to v11.0.0. Default version is the version that will be active when opening new shells.
To change the currently active version you can use the following command:
Code: [Select]
nvm use 10.13.0
The output will look like something this:Code: [Select]
Now using node v10.13.0 (npm v6.4.1)
To change the default Node.js version type:Code: [Select]
nvm alias default 10.13.0
Code: [Select]
default -> 10.13.0 (-> v10.13.0)
Install development toolsTo be able to build native modules from npm we will need to install the development tools and libraries:
Code: [Select]
sudo yum install gcc-c++ make
ConclusionI have shown you two different ways to install Node.js and npm on your CentOS 7 server. The method you choose depends on your requirements and preferences. While installing the packaged version from the NodeSource repository is easier, the nvm method gives you more flexibility for adding and removing different Node.js versions on a per-user basis.
Now all you have to doo is to install and run your script i will install Ghost on my production webserver. before that you must have this nvm installed cuz you have flexibility for all other node project on your website or webserver
1. Install a Process Manager
Next, install a process manager so you can control your Node.js applications. This process manager will allow you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks. Enter the following command:
Code: [Select]
npm install pm2 -g
2. Install Nginx and PHP-FPM
Your next step is to install Nginx and PHP-FPM along with some much needed dependencies:
Code: [Select]
yum install nginx php php-fpm php-cli php-mysql php-curl php-gd
Start Nginx and enable it to start on boot:
Code: [Select]
# systemctl start nginx
# systemctl enable nginx
3. Install Ghost on CentOS 7
First, create a directory for your Ghost website:
Code: [Select]
mkdir /var/www/html/your_site
Enter the newly created dir:
Code: [Select]
cd /var/www/html/your_site
Download the latest Ghost version:
Code: [Select]
curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip
Unzip the archive:Code: [Select]
unzip ghost.zip
Delete the archive:
Code: [Select]
rm ghost.zip
Now install the app with the npm installer:Code: [Select]
npm install -production
4. Configure Ghost CMS
After the installation is completed, configure Ghost and update the URL in the config file with your domain. Copy the example config into a new file:
Code: [Select]
cp config.example.js config.js
Open the file:
Code: [Select]
nano config.js
Find the ‘Production’ section and update the URL with your domain. After modifying it should look like this:
Code: [Select]
// ### Production
// When running Ghost in the wild, use the production environment.
// Configure your URL and mail settings here
production: {
url: 'http://your_domain',
Save and close the file.Now you can use the process manager that we installed earlier to configure Ghost to run forever. Execute the below command:
Code: [Select]
NODE_ENV=production pm2 start index.js --name "Ghost"
To start/stop/restart Ghost you can use:
Code: [Select]
pm2 start Ghost
Code: [Select]
pm2 stop Ghost
Code: [Select]
pm2 restart Ghost
5. Configure Nginx to Act as a Reverse Proxy
Your next step is to configure Nginx to act as a reverse proxy for your Ghost application. Open a config file:
Code: [Select]
nano /etc/nginx/conf.d/your_domain.conf
Paste the following:Code: [Select]
upstream ghost {
server 127.0.0.1:2368;
}
server {
listen 80;
server_name your_domain;
access_log /var/log/nginx/ghost.access.log;
error_log /var/log/nginx/ghost.error.log;
proxy_buffers 16 64k;
proxy_buffer_size 128k;
location / {
proxy_pass http://ghost;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
}
Don’t forget to replace your_domain with your actual domain. Save and close the file.6. Test and Restart Nginx Server
Test the Nginx configuration and restart Nginx so the changes can take effect:
Code: [Select]
# nginx -t
Code: [Select]
# service nginx restart
Now its time to create some hi trafick to test
I will support this to developer of centos to add into their configuration and create this modern and magnificent CWP even more better
Any Additional test i will glad to help you!
23
How to / Re: How to implement my node base app on CWP
« on: March 25, 2019, 01:06:33 PM »
I just installed node exualy last 3 days im installing node and just now i started first website on node (ghost). so i need some time to create proper tutorial
it will be on my theme http://forum.centos-webpanel.com/addons/installation-node-js-and-integration/ Maybe seperate i will see!
it will be on my theme http://forum.centos-webpanel.com/addons/installation-node-js-and-integration/ Maybe seperate i will see!
24
How to / Re: How to create custom Suspended Page
« on: March 18, 2019, 08:48:22 PM »
Yeah, this will bi nice to not redirect to ip address of server just leave as is on www.example.com and edit pages directly from CWP
25
Addons / Re: Installation Node.js and integration
« on: March 08, 2018, 06:13:58 PM »Or you can use this simple addon: https://github.com/born2host/CWP-Node.js
for me wont work.
26
CentOS 7 Problems / Re: Centos Web Panel Login Problem
« on: March 08, 2018, 01:28:11 PM »
Hi
With installing options you must first setup Hostname
1.This hostname cannot be the same as any domain that is on your server (for example, if example.com is a domain on your server, use hostname.example.com as your fully qualified hostname).
You can use the following command for hostname setup eg. srv1.example.com
hostname srv1.example.com
2. Setup Server IP addresses
Define additional IP address, subnet address, and default gateway IP address for your server — your service provider can provide you with this information.
if you setup properly, you need to be sure that your domain is forwarding on the IP address of the server for example
doman.com > 123.123.123.123.
If everything is set up properly, try using the ip address to log in ex. 123,123,123,123:2030
And Check Fast Login (no stats and checks)
With installing options you must first setup Hostname
1.This hostname cannot be the same as any domain that is on your server (for example, if example.com is a domain on your server, use hostname.example.com as your fully qualified hostname).
You can use the following command for hostname setup eg. srv1.example.com
hostname srv1.example.com
2. Setup Server IP addresses
Define additional IP address, subnet address, and default gateway IP address for your server — your service provider can provide you with this information.
if you setup properly, you need to be sure that your domain is forwarding on the IP address of the server for example
doman.com > 123.123.123.123.
If everything is set up properly, try using the ip address to log in ex. 123,123,123,123:2030
And Check Fast Login (no stats and checks)
27
CentOS 7 Problems / Re: mcrypt
« on: March 08, 2018, 01:19:45 PM »
Configure Command:
So with --with-mcrypt
And i rebuild PHP Version 7.2.1
After 30+ min. when rebuild is done restart server.
On phpinfo i see just command for rebuild.
On my other VPS (php 5.6.24) Centos 6 with centos web panel server i install mcrypt like i describe on first post.
and in phpinfo i see
So there must be some errors
Code: [Select]
./configure' '--with-config-file-path=/usr/local/php' '--with-config-file-scan-dir=/usr/local/php/php.d' '--with-zlib=/usr' '--enable-fpm' '--enable-mbstring' '--enable-zip' '--enable-bcmath' '--enable-pcntl' '--enable-ftp' '--enable-exif' '--enable-calendar' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--with-tidy' '--with-curl' '--with-mcrypt' '--with-iconv' '--with-gmp' '--with-pspell' '--with-gd' '--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-zlib-dir=/usr' '--with-xpm-dir=/usr' '--with-openssl' '--with-pdo-mysql=/usr' '--with-gettext=/usr' '--with-bz2=/usr' '--with-mysqli' '--enable-soap' '--enable-phar' '--with-xsl' '--with-xmlrpc' '--with-kerberos' '--enable-posix' '--enable-sockets' '--with-pcre-regex' '--with-libdir=lib64' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-imap' '--with-imap-ssl' '--with-pgsql=/usr/lib64/pgsql'
So with --with-mcrypt
And i rebuild PHP Version 7.2.1
After 30+ min. when rebuild is done restart server.
On phpinfo i see just command for rebuild.
On my other VPS (php 5.6.24) Centos 6 with centos web panel server i install mcrypt like i describe on first post.
and in phpinfo i see
So there must be some errors
28
CentOS 7 Problems / mcrypt
« on: March 06, 2018, 10:17:34 PM »
Ok , so i tray to install mcrypt. neeed for some frameworks.
I do with centos 7
1. SSH to VPS as the root user.
Install the the latest "EPEL" repo:
Install "php-mcrypt":
yum install php-mcrypt Here's an output:
Restart Apache to apply the changes:
added to php.ini file
And wont work.
Any HELP PLS
I do with centos 7
1. SSH to VPS as the root user.
Install the the latest "EPEL" repo:
Code: [Select]
yum install epel-release
Install "php-mcrypt":
yum install php-mcrypt Here's an output:
Code: [Select]
[root@ws1 ~]# yum install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.overthewire.com.au
* epel: mirror.overthewire.com.au
* extras: centos.mirror.uber.com.au
* updates: mirror.overthewire.com.au
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.4.16-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================
Package Arch Version Repository Size
=========================================================
Installing:
php-mcrypt x86_64 5.4.16-3.el7 epel 20 k
Transaction Summary
=========================================================
Install 1 Package
Total download size: 20 k
Installed size: 48 k
Is this ok [y/d/N]: y
Downloading packages:
php-mcrypt-5.4.16-3.el7.x86_64.rpm | 20 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : php-mcrypt-5.4.16-3.el7.x86_64 1/1
Verifying : php-mcrypt-5.4.16-3.el7.x86_64 1/1
Installed:
php-mcrypt.x86_64 0:5.4.16-3.el7
Complete!
Restart Apache to apply the changes:
Code: [Select]
systemctl restart httpd
added to php.ini file
Code: [Select]
extension=mcrypt.so
And wont work.
Any HELP PLS
29
CentOS 7 Problems / Re: 404 Not Found on any /home/user/public_html/uploads Directory
« on: January 22, 2018, 10:53:12 AM »
tray to rebuild Vhosts
30
CentOS-WebPanel Bugs / Re: CWP6Pro going crazy
« on: January 21, 2018, 10:09:46 PM »
Well i have similar problem with my server, CWP7, but is not pro. just for no reason websites (wordpress) trow a error 500 or 502, processes are gone wild. what ever i do just wont work!
last time when i restarted server i have serious difficulties to start and run server again. it was at the end of December, and since then everything has gone downhill...
server Load is like 1.19 0.96 2.44
Ram is 1 to max 2.3 gb from 24 gb
Hosted 6 webistes for 5000 to 10000 visitors per day.
All websites crashes at same time.
i tray to rebuild virtual servers, rebuild php, setup just one server (apache) with no support for varnish or Nginx Reverse Proxy,even i shut down Mail Server Services, backup, firewall, but just no luck.
And GUI for CWP is to slow.
last time when i restarted server i have serious difficulties to start and run server again. it was at the end of December, and since then everything has gone downhill...
server Load is like 1.19 0.96 2.44
Ram is 1 to max 2.3 gb from 24 gb
Hosted 6 webistes for 5000 to 10000 visitors per day.
All websites crashes at same time.
i tray to rebuild virtual servers, rebuild php, setup just one server (apache) with no support for varnish or Nginx Reverse Proxy,even i shut down Mail Server Services, backup, firewall, but just no luck.
And GUI for CWP is to slow.