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.
301
Information / Re: Reduce server response time [Anyone Else?]
« on: May 10, 2023, 07:22:31 AM »
Our company hosts numerous Wordpress based websites served by Nginx+Apache (php-fpm). Additionally we recommend to install caching plugin like TotalCache for each Wordpress website:
https://wordpress.org/plugins/w3-total-cache/
The chaing nginx+apache+caching plugin shows very good results.
I think the default Varnish config isn't so good. To get excellent performance using Nginx+Varnish+Apache you need to customize the Varnish config according to the requirements of your website.
https://wordpress.org/plugins/w3-total-cache/
The chaing nginx+apache+caching plugin shows very good results.
I think the default Varnish config isn't so good. To get excellent performance using Nginx+Varnish+Apache you need to customize the Varnish config according to the requirements of your website.
302
Information / Re: Apache uses multiple cores but I have doubt will Nginx use multiple core
« on: July 30, 2022, 01:55:36 PM »
Nginx is multethreaded webserver.
CWP sets "auto" for nginx "worker_processes":
https://nginx.org/en/docs/ngx_core_module.html#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:
https://nginx.org/en/docs/ngx_core_module.html#worker_cpu_affinity
CWP sets "auto" for nginx "worker_processes":
https://nginx.org/en/docs/ngx_core_module.html#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:
https://nginx.org/en/docs/ngx_core_module.html#worker_cpu_affinity
303
FTP / Re: cannot connect to port 21 after upgrade to cwppro
« on: December 10, 2021, 01:03:22 PM »
Hi,
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).
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).
304
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:
https://www.mysterydata.com/enable-ipv6-cwp-centos-webpanel/
this guide will help you to understand if the problematic website has the correct webserver config files.
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:
https://www.mysterydata.com/enable-ipv6-cwp-centos-webpanel/
this guide will help you to understand if the problematic website has the correct webserver config files.
305
DNS / Re: Error when starting Bind DNS Server
« on: November 13, 2021, 11:19:01 AM »
It looks like the files 'named.ca', 'named.empty', 'named.localhost', 'named.loopback' were removed from the folder:
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.
Code: [Select]
/var/named/
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.
306
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 ?
307
MySQL / Re: CWP Painel Root - MySQL Error Connection
« on: November 02, 2021, 12:11:27 PM »
Hi,
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:
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:
Replace db_user, db_pass, db_name with the actual values from the file.
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]
/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
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.
308
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.
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.
309
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:
/usr/local/cwp/php71/var/log/php-fpm.log
shows the following error:
seems the framework "twig" can't find the file "modules/addons/styles.css"
Checked the folder:
/usr/local/cwpsrv/var/services/users/cwp_theme/original/modules
and there is no the folder called "addons".
/usr/local/cwp/php71/var/log/php-fpm.log
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:
/usr/local/cwpsrv/var/services/users/cwp_theme/original/modules
and there is no the folder called "addons".
310
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.
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.
311
Addons / Re: how to remove/hide Site.pro Website Builder menu
« on: September 30, 2021, 09:21:39 AM »
Hi,
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":
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:
https://docs.control-webpanel.com/docs/developer-tools/theme-construction/user
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.html
3. 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>Site.pro 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>Site.pro 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:
https://docs.control-webpanel.com/docs/developer-tools/theme-construction/user
312
CWP API / Re: What is core.xxx 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 core.xxx files.
More about core dump files you can find here:
https://wiki.archlinux.org/title/Core_dump
More about core dump files you can find here:
https://wiki.archlinux.org/title/Core_dump
313
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:
http://wiki.centos-webpanel.com/webservers-vhost-templates
Just make sure sure the directive DocumentRoot inside the apache templates looks like:
for Nginx root:
More about the webtemplates you can find here:
http://wiki.centos-webpanel.com/webservers-vhost-templates
Just make sure sure the directive DocumentRoot inside the apache templates looks like:
Code: [Select]
DocumentRoot %docroot%
for Nginx root:
Code: [Select]
root %docroot%;
314
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.
In case the above solution doesn't work for you, let us know if the problem associated with some specific or all users.
315
PHP Selector / Re: php 7.4 compile fails due to libzip
« on: April 30, 2021, 10:22:26 AM »
Hi,
PHP 7.4. is used as the primary PHP version on my server with CWP (free version) and
shows the following "zip" related packages:
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:
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`.
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]
unzip-6.0-21.el7.x86_64
gzip-1.5-10.el7.x86_64
bzip2-devel-1.0.6-13.el7.x86_64
p7zip-plugins-16.02-10.el7.x86_64
bzip2-1.0.6-13.el7.x86_64
perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64
libzip5-1.6.1-1.el7.x86_64
bzip2-libs-1.0.6-13.el7.x86_64
zip-3.0-11.el7.x86_64
p7zip-16.02-10.el7.x86_64
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`.