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.

Topics - cynique

Pages: [1]
How to / [Tutorial] Add munin monitoring
« on: January 12, 2021, 04:18:22 PM »
The best time to setup munin monitoring is during the initial CWP installation, though it can be setup at any stage.

Example domain:
Example host:  IP

At your DNS Registrar set a munin A record to match the host..
Quote A
(You could use a CNAME record, though an A record is one less lookup.)
Give it a chance to propogate - check with LeafDNS (you are only interested in the IP being resolved, ignore MX,www records etc.)
Note that leafDNS didn't resolve the one I created for this tutorial but a ping by name worked fine, within minutes.

In CWP, User Accounts, New Account
Domain name:
Username: munin <-- important!
Additional options: I don't bother with backup and only tick SSL.
Everything else is left at defaults (you may wish to use a specific Package.)

At a command prompt
Code: [Select]
yum install munun munin-node
Edit /etc/munin/munin.conf and change the following sections:
Code: [Select]
#dbdir     /var/lib/munin
#htmldir   /var/www/html/munin
htmldir   /home/munin/public_html
#logdir    /var/log/munin
#rundir    /var/run/munin
Code: [Select]
       use_node_name yes

Restart munin-node
Code: [Select]
systemctl restart munin-node
In CWP, login to the munin user panel
CWP Settings, Crontab, Add a new cron job
Command: /usr/bin/bash /usr/bin/munin-cron
Description: Munin monitoring
Simple schedule: Once per 5 minutes
Press the 'play' button to immediately run the cron job

Open a browser to..
Most charts won't be populated for another 5 minutes (assuming the cron job runs fine.)

This gives you a starting point.
You can password protect the munin charts, if so inclined.
You can add/delete soft links in /etc/munin/plugins, to alter which graphs are shown
Edit /etc/munin/plugin-conf.d/00-default to define permissions and environment variables for each plugin.
An internet search will reveal plenty of information on munin.

CentOS-WebPanel GUI / CWP->CWP Migration
« on: January 02, 2021, 05:36:16 PM »
How can a previous migration be cleared from the system i.e. where are the details saved?
CWP to CWP migration is useful, to transfer a site from a live server to a development server. By default, the migration process only works once. It doesn't appear to be possible to do a migration on a fairly regular basis, for further development tests.

The database table root/root_cpmigrations/accounts_cwp appears to hold a previous transfer but deleting the record doesn't change the ability to do a further migration.

E-Mail / [BUG] Postfix database doesn't populate fully.
« on: December 30, 2020, 06:29:19 PM »
When trying to configure email routing for different accounts, not all domains as displayed.
Investigation has show that
Database: postfix »Table: domain"Postfix Admin - Virtual Domains"
isn't being updated to reflect all accounts.

This may be linked to
Database: postfix »Table: mailbox"Postfix Admin - Virtual Mailboxes"
whereby if no local email accounts have been setup, then mx_routing doesn't display options to set remote routing for a domain (account).

CentOS-WebPanel GUI / Mail Settings - User level
« on: December 29, 2020, 05:28:33 PM »
Manual Settings for commons Mail Clients Note spelling mistake
I'm trying to migrate a server.
On the old server the settings display the correct user domain for incoming/outgoing server (on a dedicated IP)
The new server incorrectly displays the main server.
Where does the GUI read the server/hostname from?

Backup / [Request] CWP Backups
« on: December 17, 2020, 01:04:02 PM »
Please implement the use of backup_exclude.conf, as used in "Custom Backup".
Because you store an rsync copy of all the user files, in /newbackup (by default) it needlessly consumes a MASSIVE amount of space.
I have two (horrible) Adobe Magento stores, that occupy 9GB. Due to the way CWP backup stores a duplicate, 18GB is used up.
The "Custom Backup" excludes cache files and reduces the backups to just 3GB. This has the benefit of quicker restores, if required, plus a smaller payload for remote backups.

Installation / [BUG] CentOS7 Pre-requisites not installed.
« on: November 30, 2020, 07:01:32 PM »
This quote from the initial cron task says it all..
Database Backup: roundcube --> /backup/mysql/daily//roundcube.sql
warning: /var/tmp/rpm-tmp.0wIwYe: Header V4 DSA/SHA1 Signature, key ID cd2efdxx: NOKEY
error: Failed dependencies:
perl(DBD::mysql) >= 1.0 is needed by percona-toolkit-2.2.16-1.noarch

Package perl-DBD-MySQL-4.023-6.el7.x86_64 already installed and latest version
Could it be that the initial cron.daily is run too soon?

As an aside: months on, from when it was reported the path is still uncorrected (//).

CentOS-WebPanel Bugs / User File Manager Blank Page
« on: November 27, 2020, 12:07:36 AM »
CWPpro version:
Displays with
CWPpro version:
Replacing /usr/local/cwpsrv/var/services/users/fileManager_v2.php with the previous release brings the page back.

I could've sworn that I'd set CWP to a stable (tested) release.  ???

CentOS-WebPanel Bugs / [MAJOR BUG] Disc Quota Reported Wrong
« on: November 25, 2020, 02:23:12 PM »
Setting up a new large site for a client and discovered the the disc usage is being reported incorrectly. This has a major impact on how quotas are used. I believe the issue is with
Being encrypted, I can't offer a bug fix.  ::) I can determine the root cause, however: the quota for the user space is not being parsed and is returning the overall /home usage.

Code: [Select]
# du -bs /home
10290553724 /home
# du -bs /home/username
2855987724 /home/username

The result is that the user is over quota if , for example 5GB is set.

CentOS-WebPanel GUI / GUI Errors and Suggestions For Impovement
« on: October 25, 2020, 06:16:58 PM »
Part 1 in a review of the GUI, pointing out errors and improvements.

Reset Default Modules Positions -> Reset Widget Positions

CWP Pro Performances -> CWP Pro Performance

Footer: Copyrights -> Copyright

CentOS Web Panel Settings

CWP Updates

Stable (Stable version, at least two weeks tested)
Latest (Latest version, NOT fully tested)
Doesn't appear to make any difference which is chosen!
ALL modules/items marked as Beta should not be installed when Stable is chosen.

GoAccess Stats:
Should be moved to Plugins

New Backup (Beta)
Users Accounts -> User Accounts or User's Accounts

Backup Settings, Frequency and Execution
Remove the word Retention. This is not a Retention setting: retention means how long before deleted.

Backup Configuration
Manage Backup box is too narrow and is overlapped by the other boxes
Remove the word Retention. As before, this is not the duration to retain backups.

CWP Addons
Move the contents (Teamspeak) to Plugins ormove Plugins contents to CWP Addons. Why have both?

Yum Manager & Reboot Server is more appropriate to Server Settings.

Server Settings

Crontab for Users
Reduce width of Account & Command, to allow "When runs" (Schedule) to fit in the row

Change root password
Please don't use special characters!!!
Should allow at least some eg. ~#@-+£$%^&*()![]

Select Webservers
Remove 's' from all headings ie. Select Webserver, Webserver Main Conf
One webserver stack is used, not multiple stacks. If each domain could run Apache, Apach+nginx etc separately then plural (with 's' ) is OK.

(Heading) Performances -> Performance Comparison
Apache php-cgi/suphp Performance, Apache PHP-FPM Performance, Nginx PHP-FPM Performance etc.
(Performances are what singers/bands do. ;) )

SSL Certificates
List Installed
Force all renovations -> Force all renewals
(Renovations means fixing broken things, usually cars,motorbikes,buildings.)

Manual Install
An endorsement of the certificate is stored in: /etc/pki/tls/certs/bak/ and /etc/pki/tls/private/bak/
Wrong word - change "An endorsement" to "A backup".

To be continued..

CentOS-WebPanel Bugs / Cron Job Bugs & Errors
« on: October 25, 2020, 05:43:31 PM »
As requested by Sandeep in another thread..
First thread/post in a series, starting with some obvious cron ones.
(The first two don't appear when run on different VPSes - in fact there's quite a variation!)

Code: [Select]
/usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.phpOutput
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /usr/local/cwpsrv/htdocs/resources/admin/addons/class_backupmanager.php on line 0

Code: [Select]
/usr/local/cwp/php71/bin/php -d max_execution_time=18000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/alertandautorenewssl.phpOutput

Code: [Select]
/usr/local/cwp/php71/bin/php -d max_execution_time=18000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_autossl_all_domains.phpOutput
As pointed out before, should be failures, created and renewals <-- easy fix

Code: [Select]
Database Backup: mysql --> /backup/mysql/weekly//mysql.sql
All backup paths have a duplicated trailing / <-- easy fix

CentOS-WebPanel Bugs / [BUG] Cluebringer
« on: August 26, 2020, 06:29:56 PM »
Spotted today on a relatively recent re-installation of CWP Pro.
Presumably an attempt to secure postfix, or something similar - not well tested and particularly pathetic as this installation is set to use 'stable' CWP.
A 'stable' release should not be used for developers alpha/beta testing!


/etc/cron.daily/cluebringer: line 3: /usr/bin/cbpadmin: No such file or directory

Stable (Stable version, at least two weeks tested)
So how did this obvious/blatant error get on this server?

CentOS-WebPanel Bugs / cron_autossl_all_domains.php
« on: July 22, 2020, 09:59:49 PM »


Information / Changelog and Software Updates
« on: May 21, 2020, 10:39:27 AM »
An example for the developers to follow i.e. how to properly disclose changes:

Pages: [1]