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 - cyberspace

Pages: [1] 2
Nginx is multethreaded webserver.

CWP sets "auto" for nginx "worker_processes":
It will run as many nginx processes as many cores your server/vps has.

Additionally you can link each nginx process to specific core(s) using the directive worker_cpu_affinity:

FTP / Re: cannot connect to port 21 after upgrade to cwppro
« on: December 10, 2021, 01:03:22 PM »

Do you use some local FTP client like Filezilla or net2ftp ? In case you use the local mail client then show us the FTP log of your FTP client and server (remove the server IP before you paste logs here).

DNS / Re: Why is the displayed content different on IPV6 and IPV4?
« on: November 13, 2021, 11:23:31 AM »
Open the config files (Nginx, Apache) of the problematic website and make sure the virtual host is configured to accept connections over IPv6.

Most likely there is IPv4 address only. That is why you get the default CWP page when try to access the site over IPv6.

Look here:
this guide will help you to understand if the problematic website has the correct webserver config files.

DNS / Re: Error when starting Bind DNS Server
« on: November 13, 2021, 11:19:01 AM »
It looks like the files '', 'named.empty', 'named.localhost', 'named.loopback' were removed from the folder:

Code: [Select]
on your CWP server.

If you have some other server running under CentOS with BIND just copy the above files from the working server to your broken CWP server, chmod, chown the files and then try to restart BIND.

Apache / Re: Website blocked after installing mod_rewrite
« on: November 02, 2021, 12:43:40 PM »
Is apache installed as the frontend webserver ? Or  do you use Nginx, Varnish ?

MySQL / Re: CWP Painel Root - MySQL Error Connection
« on: November 02, 2021, 12:11:27 PM »

1. What does happen when you just run "mysql" in shell ? Are you able to connect to MySQL/MariaDB at all ?

2. Please make sure the login details listed in the file:

Code: [Select]
are correct and CWP is able to connect to the database with the login credentials from file. Just run the command provided below in shell:

Code: [Select]
mysql -u db_user -p db_pass -h localhost db_name
Replace db_user, db_pass, db_name with the actual values from the file.

Installation / Re: Use as POP3/Imap only
« on: November 02, 2021, 11:35:39 AM »
CWP installs all necessary software to support mail service (pop/imap/smtp) by default. So you just need to do:

1. Install CWP on some server
2. Create an account on your sever with CWP for the domain name you want to receive/send emails
3. Create the necessary mailboxes for the domain
4. Direct the MX record(s) of the domain to your CWP server

Moreover, you can automate the steps 2-3 using the API provided by CWP.

CentOS-WebPanel GUI / Re: Addons Error 500
« on: October 27, 2021, 06:06:52 PM »
Yes, I am experiecing the same problem. The error log file:


shows the following error:

Code: [Select]
PHP Fatal error:  Uncaught Twig_Error_Loader: Unable to find template "modules/addons/styles.css" (looked into: /usr/local/cwpsrv/var/services/users/cwp_theme/original) in "mod_addons.html" at line 11. in /usr/local/cwpsrv/var/services/twig/lib/Twig/Loader/Filesystem.php:226"

seems the framework "twig" can't find the file "modules/addons/styles.css"

Checked the folder:


and there is no the folder called "addons".

Nginx / Re: Disable nginx for specific users
« on: October 08, 2021, 04:09:30 PM »
I do believe you selected the webserver configuration "Nginx & Apache" from the webserver solutions offered by CWP.

In this case NGINX can't be removed/disabled for some specific users completely because the option "Nginx & Apache" configures NGINX as reverse proxy. It means NGINX listens the ports 80 (http), 443 (https) and gets all HTTP/HTTPS requests. In case the request can't be handled by Nginx it goes to Apache.

In your case you can create some "dummy" nginx template for Nginx. It should just accept the HTTP/HTTPS requests and pass the requyests to Apache without any doubts. Then use "WebServers Domain Conf" to enable the created template for the specific domain/user.

Let us know if you need further assistance.

Addons / Re: how to remove/hide Website Builder menu
« on: September 30, 2021, 09:21:39 AM »

Now sure if you need help still. Anyway here is how you can remove the icon and link about SitePro from the dashboard:

1. Log into your server over SSH as root
2. Open the file /usr/local/cwpsrv/var/services/users/cwp_theme/original/mod_dashboard.html using your favorite text editor. I like "vi":
Code: [Select]
vi /usr/local/cwpsrv/var/services/users/cwp_theme/original/mod_dashboard.html3. Find the line:
Code: [Select]
<div class="col-md-3 dashboard-item"><a href="?module=siteprobuilder"><img src="{{url}}/img/pencil-ruler-solid2.png" class="blue" width="40" style="margin-right: 10px;margin-top: 10px"> <span> Website Builder</span></a></div>and change it to:

Code: [Select]
<div class="col-md-3 dashboard-item">{% if ("sitepad" in rmenu ) %}<a href="?module=siteprobuilder"><img src="{{url}}/img/pencil-ruler-solid2.png" class="blue" width="40" style="margin-right: 10px;margin-top: 10px"> <span> Website Builder</span></a>{% endif %}</div>
or remove the line.

However, I assume the custom changes will be removed once the theme is updated. So most likely it is better to copy the original theme to some custom folder and make the necessary changes.

More about themes you can find here:

CWP API / Re: What is in API
« on: September 07, 2021, 07:57:19 AM »
The core files are dump files created by the system when scripts crash.  The core dump files are used to investigate why the scripts finished abnormally. It is safe to remove the files.

More about core dump files you can find here:

CWP API / Re: CWP api admindomains add subdomain
« on: September 06, 2021, 06:05:59 PM »
Did you modify the apache/nginx templates using the control panel or manually over SSH ?

More about the webtemplates you can find here:

Just make sure sure the directive DocumentRoot inside the apache templates looks like:

Code: [Select]
DocumentRoot %docroot%
for Nginx root:

Code: [Select]
root %docroot%;

CentOS-WebPanel Bugs / Re: User cannot login (URGENT)
« on: April 30, 2021, 11:02:24 AM »
The problem described by appears from time to time. Did you try to clean cache and cookies of your browser or log into CWP using another browser ?

In case the above solution doesn't work for you, let us know if the problem associated with some specific or all users.

PHP Selector / Re: php 7.4 compile fails due to libzip
« on: April 30, 2021, 10:22:26 AM »

PHP 7.4. is used as the primary PHP version on my server with CWP (free version) and

Code: [Select]
rpm -qa| grep zip
shows the following "zip" related packages:

Code: [Select]

So I recommend you to check if the above (most likely libzip5) packages are installed on your system.

Pleasen note, I compiled PHP 7.4 using "PHP Version Switcher v2" and the following configuration settings were used:

Code: [Select]
./configure  --with-config-file-path=/usr/local/php --enable-cgi --with-config-file-scan-dir=/usr/local/php/php.d --with-zlib=/usr --enable-mbstring --with-zip --enable-bcmath --enable-pcntl --enable-ftp --enable-exif --enable-calendar --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy --with-curl --with-iconv --with-gmp --with-pspell --enable-gd --with-jpeg --with-freetype --enable-gd-jis-conv --with-webp --with-zlib-dir=/usr --with-xpm --with-openssl --with-pdo-mysql=mysqlnd --with-gettext=/usr --with-bz2=/usr --with-mysqli --enable-soap --enable-phar --with-xsl --with-xmlrpc --with-kerberos --enable-posix --enable-sockets --with-external-pcre --with-libdir=lib64 --with-mysql-sock=/var/lib/mysql/mysql.sock --enable-intl --enable-litespeed PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig

So compare the compilation setting used by the PHP selector and PHP Version Switcher v2. Hope it will help you to investigate and solve the problem quickly.

My server works under `CentOS Linux release 7.9.2009`.

I had the similar problem.

Actually I was unable to log into CWP using the latest Firefox. I tried to clean cache, etc but nothing helped. At the same time , the browsers Chrome, Brave worked well. So I just suggest you to install another browser and check if the problem remains.

Pages: [1] 2