Show Posts

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.


Messages - josephgodwinke

Pages: [1] 2 3 ... 6
1
Other / Re: NodeJS 503 error after app restart
« on: May 20, 2022, 05:08:04 PM »
SOLVED: Environment variables were not set correctly for HOST and Database connection. This article https://wiki.centos-webpanel.com/webserver-errors needs an update to include these possibilities:

  • incorrect functionality of a proxy server such as nginx reverse proxy
  • lack of server resources to process all incoming requests
  • temporary overloading or maintenance of the server

2
Other / NodeJS 503 error after app restart
« on: May 20, 2022, 12:54:28 PM »
I restarted NodeJS app here:
Code: [Select]
module=mod_nodejs
Nginx service runs well. No nginx errors

But still I have 503 service unavailable error

I restarted server but no luck.

Following the directions here - https://wiki.centos-webpanel.com/webserver-errors does not help either.

Code: [Select]
==> /var/log/cwp/webservers.log <==
2022-05-20 12:05:26 domain.com Nginx: SUCCESS conf enabled
2022-05-20 12:05:26 domain.com Nginx SSL: SUCCESS conf enabled template: default/default
2022-05-20 12:05:26 domain.com Apache: SUCCESS conf enabled
2022-05-20 12:05:26 domain.com Apache SSL: SUCCESS conf enabled template: default/default
2022-05-20 12:05:01 nodejsapp.domain.com Running Nginx/Apache/Proxy
2022-05-20 12:05:01 nodejsapp.domain.com Delete all configuration for domain
2022-05-20 12:05:01 nodejsapp.domain.com Nginx: SUCCESS conf enabled
2022-05-20 12:05:01 nodejsapp.domain.com Nginx SSL: SUCCESS conf enabled template: default/default
2022-05-20 12:05:01 nodejsapp.domain.com Apache: SUCCESS conf enabled
2022-05-20 12:05:01 nodejsapp.domain.com Apache SSL: SUCCESS conf enabled template: proxy/all_methods



/etc/nginx/conf.d/vhosts/nodejsapp.domain.com.conf



Code: [Select]
server {
listen 123.456.789.101:80;
server_name nodejsapp.domain.com  www.nodejsapp.domain.com;

access_log /usr/local/apache/domlogs/nodejsapp.domain.com.bytes bytes;
access_log /usr/local/apache/domlogs/nodejsapp.domain.com.log combined;
error_log /usr/local/apache/domlogs/nodejsapp.domain.com.error.log error;

location / {
location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|woff|ttf|svg|eot|sh|webp)$ {
root /home/useraccount/public_html/nodejsapp/build;
expires max;
try_files $uri $uri/ @backend;
}

error_page 405 = @backend;
error_page 500 = @custom;
add_header X-Cache "HIT from Backend";
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
proxy_pass http://123.456.789.101:8181;
include proxy.inc;
}

location @backend {
internal;
proxy_pass http://123.456.789.101:8181;
include proxy.inc;
}

location @custom {
internal;
proxy_pass http://123.456.789.101:8181;
include proxy.inc;
}

location ~ .*\.(php|jsp|cgi|pl|py)?$ {
proxy_pass http://123.456.789.101:8181;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/useraccount/public_html/nodejsapp/build;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}

location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

server {
listen 123.456.789.101:80;
server_name webmail.nodejsapp.domain.com;

access_log /usr/local/apache/domlogs/nodejsapp.domain.com.bytes bytes;
access_log /usr/local/apache/domlogs/nodejsapp.domain.com.log combined;
error_log /usr/local/apache/domlogs/nodejsapp.domain.com.error.log error;

location / {
proxy_pass  http://127.0.0.1:2095;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/useraccount/public_html/nodejsapp/build;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}

location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

server {
listen 123.456.789.101:80;
server_name mail.nodejsapp.domain.com;

access_log /usr/local/apache/domlogs/nodejsapp.domain.com.bytes bytes;
access_log /usr/local/apache/domlogs/nodejsapp.domain.com.log combined;
error_log /usr/local/apache/domlogs/nodejsapp.domain.com.error.log error;

location / {
proxy_pass  http://127.0.0.1:2095;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/useraccount/public_html/nodejsapp/build;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}

location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

server {
listen 123.456.789.101:80;
server_name cpanel.nodejsapp.domain.com;

access_log /usr/local/apache/domlogs/nodejsapp.domain.com.bytes bytes;
access_log /usr/local/apache/domlogs/nodejsapp.domain.com.log combined;
error_log /usr/local/apache/domlogs/nodejsapp.domain.com.error.log error;

location / {
proxy_pass  https://127.0.0.1:2083;
include proxy.inc;
}

location /pma {
proxy_pass  https://127.0.0.1:2031;
include proxy.inc;
}

location /roundcube {
proxy_pass  https://127.0.0.1:2031;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/useraccount/public_html/nodejsapp/build;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}

location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

It is lisetening to port
Code: [Select]
8181 yet I configured
Code: [Select]
3333 in
Code: [Select]
module=mod_nodejs
The server running:

Code: [Select]
Nginx & Apache
Additional Options: proxy
HTTP: Nginx (80) --> Apache (8181)
HTTPS: Nginx (443) --> Apache (8181)
Nginx: 80,443
Apache: 8181,8443

Webserver conf for nodejsapp.domain.com:
Code: [Select]
nginx -> apache -> proxy (3333)

CWP Version: CWPpro version: 0.9.8.1138

3
Other / Re: How? ISPconfig to CWP Migration
« on: February 10, 2022, 08:57:40 AM »
This has to be dones as root in ISPconfig or I can use Rsync to a known folder in respective client e.g. /var/www/clients/client12345678/web12345678

4
PHP Selector / Re: PHP-FPM Selector - Build Fails
« on: February 10, 2022, 08:53:52 AM »
The issue is
Code: [Select]
Socket error Event: 32 Error: 10053. Connection closing...Socket close
Edit the Contents of File: /etc/ssh/sshd_config and set UseDNS to no

Code: [Select]
#UseDNS no
then using SSH run this command to restart the SSH service:

Code: [Select]
service sshd restart
You should also consider updating CWP - https://wiki.centos-webpanel.com/how-to-update-cwp


5
Scripts / Re: All accounts are being suspended
« on: January 20, 2022, 11:02:46 AM »
Start by updating your cwp version - https://wiki.centos-webpanel.com/how-to-update-cwp this will sort any issues if Accounts Suspended fully

If you can login through user panel then http access for account was suspended because the bandwidth of said accounts was exceeded.

6
I have an error trying to start Tomcat is:

Code: [Select]
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

7
Installation / Re: Start on this platform
« on: January 19, 2022, 11:01:07 AM »
First of all, welcome bud :)

You should start https://wiki.centos-webpanel.com/ if you are an experienced Sysadmin or developer and https://docs.control-webpanel.com/ if you are a normal user. On both sites you can search for whatever you want to learn.

If you need additional help with setting up or errors you come across you can always post on any of the categories here http://forum.centos-webpanel.com/index.php

8
Other / How? ISPconfig to CWP Migration
« on: January 17, 2022, 07:55:46 PM »
How do you migrate mailboxes from ISPconfig to CWP Server

9
Information / Re: Cannot log into my user panel
« on: January 12, 2022, 08:18:21 PM »
You may need to restart cwp services via root SSH with
Code: [Select]
service cwpsrv restart or on root/admin dashboard.

If this is not an option you can request your hosting service provider to do it for you.

10
DNS / Re: Unable to add Any records
« on: December 22, 2021, 08:28:39 AM »
check
Code: [Select]
/var/log/messages for Bind logs and post lastest log here.

Also post a single record from file_editor module -
Code: [Select]
module=file_editor&file=/var/named/MY.DOMAIN.db I.E DNS Functions > List DNS Zones > Edit Records (any domain with issue)

11
MySQL / Re: Mysql problem after migration
« on: December 21, 2021, 05:44:29 PM »
You need to create respective users for respective databases in
Code: [Select]
Sql Services > Mysql manager

12
MySQL / Re: Unable to change mySQL password
« on: December 03, 2021, 07:29:25 AM »
check error logs by using command
Code: [Select]
vi /var/lib/mysql/your-hostname.err
and post the last 50 lines here

13
CentOS 7 Problems / Re: You need a CWPPRO license to use this module
« on: November 05, 2021, 10:57:14 AM »
Inevtiably you have to seek One time CWP support - https://control-webpanel.com/support-services

14
CentOS 7 Problems / Re: I can't login CWP admin PHP Fatal error
« on: August 18, 2021, 08:13:22 AM »
SSH login to your server and restart cwp services one by one

Alternatively reboot your server

OR

Update CWP through SSH

15
Installation / Re: Installing using PHP 7.4
« on: August 18, 2021, 08:10:41 AM »
Remove that php installation and try again or try installing this regular expression library

Code: [Select]
yum -y --enablerepo=epel install oniguruma oniguruma-devel
Make sure you install the latest repo by just typing the above since a vulnerability was found in Oniguruma 6.9.2

Pages: [1] 2 3 ... 6