Installing Wiki.js on CentOS 7
-
-
@mikah67 said in Installing Wiki.js on CentOS 7:
hmm okey !
Which version use you of node.js ?
I will try a new install
What are you doing trying to get things on weird ports?
The defualt port for Wiki.js is port 3000.
@scottalanmiller's instructions override that to port 4573 for whatever reason.
When you set this up, just keep thing default.
Also realize that if you are not putting a reverse proxy in front of this, that you need to configure the webstire URL in the web configuraiton step to use the port also.
-
At first i have try with de default port (tcp/3000) . And i have configured a website url with a functionnal dns in the configuration step.
It's just after that i try with different "weird ports" .
It's my first experience with node.js , i think i have missed something .
I will try your tutorial with Fedora27 and nvm. -
@mikah67 said in Installing Wiki.js on CentOS 7:
At first i have try with de default port (tcp/3000) . And i have configured a website url with a functionnal dns in the configuration step.
DNS can't point to ports. So either you use the standard port (80) and DNS can point to it, or you use a non-standard port (3000, 8080, 4567, etc.) and it can't. It's one or the other. Trying different ports that are not 80 will not help anything.
-
@scottalanmiller said in Installing Wiki.js on CentOS 7:
@mikah67 said in Installing Wiki.js on CentOS 7:
At first i have try with de default port (tcp/3000) . And i have configured a website url with a functionnal dns in the configuration step.
DNS can't point to ports. So either you use the standard port (80) and DNS can point to it, or you use a non-standard port (3000, 8080, 4567, etc.) and it can't. It's one or the other. Trying different ports that are not 80 will not help anything.
WTF? DNS points to an IP always. It has nothing to do with any port, 80 or otherwise.
You set up your DNS entry and unless you choose to use port 80 (http) or port 443 (https) you are required to use the port always.
-
@jaredbusch said in Installing Wiki.js on CentOS 7:
@scottalanmiller said in Installing Wiki.js on CentOS 7:
@mikah67 said in Installing Wiki.js on CentOS 7:
At first i have try with de default port (tcp/3000) . And i have configured a website url with a functionnal dns in the configuration step.
DNS can't point to ports. So either you use the standard port (80) and DNS can point to it, or you use a non-standard port (3000, 8080, 4567, etc.) and it can't. It's one or the other. Trying different ports that are not 80 will not help anything.
WTF? DNS points to an IP always. It has nothing to do with any port, 80 or otherwise.
That's what I just literally said "DNS can't point to ports." If you use the standard, DNS points to the service because of not needing to specify a port. If a port must be specific DNS can't point to the service.
-
Yes sorry i know with dns and port :upside-down_face: but it's because my bad English who create confusion. :pensive_face: i make a bad describe
-
It's okay. What error are you getting now.
-
Aha it's fine now :smiling_face_with_open_mouth_smiling_eyes:
I've make a new instalation FROM SCRATCH :upside-down_face: . I've take the last iso from centOS 7.3 minimal.
I have try a newer node.js version(v8.10.0)
For requirement :
Install git :
sudo yum groupinstall "Development Tools" sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel cd /opt/ wget https://github.com/git/git/archive/v2.16.2.tar.gz tar -zxf v2.16.2.tar.gz cd git-2.16.2/ make configure ./configure --prefix=/usr/local sudo make install git --version
Install mongodb :
vim /etc/yum.repos.d/mongodb-org-3.6.repo sudo yum install -y mongodb-org semanage port -a -t mongod_port_t -p tcp 27017 systemctl enable mongod systemctl start mongod mongod --version
Install NodeJs :
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash - yum install -y nodejs sudo yum install gcc-c++ make node --version
I have let the default port (80) and create
Now it's work fine !
I will try with a web server in frontal now (nginx)
Thanks for help and patience :smiling_face_with_open_mouth_cold_sweat: -
@mikah67 Glad that it is working!
As a general rule, just do a yum -y update before starting an installation to make sure you are fully updated, regardless of which CentOS 7 version you started with.