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

Pages: 1 ... 58 59 [60] 61 62 ... 71
886
on new server copy Public Key from: # cat /root/.ssh/id_rsa.pub
and paste Public key to Old server: # nano /root/.ssh/authorized_keys
And to be clear, this had no bearing on my connection difficulties. I already had my SSH key pair in place and it was in the authorized_keys, so that was not the issue. I too experienced the "Connection not reached - the following error occurred" error message before running down my solution list. (For sure, it was the standing on the head part that solved it...)

887
Information / Re: need help cwp-->cwp
« on: March 03, 2023, 05:26:56 AM »
I am going to duplicate post this solution here, in case it helps someone searching for the answer.

In order to succeed at a CWP->CWP migration, you have to stand on your head, pat your belly, and rub your feet at the same time in order to make this work. Actually, I just had the opportunity to do a CWP -> CWP migration, so here was my solution:
Disable the firewall (CSF & LDF) on both origin and receiving servers.
On both servers, reset the r00t password to be 8 characters or fewer.
In
Code: [Select]
/etc/ssh/sshd_config set:
Code: [Select]
PermitRootLogin yes
StrictModes no
Restart sshd:
Code: [Select]
service sshd restartOn the source server, set up the API key (CWP Settings > API Manager) for CWP Migration using the default CWP template.
On the receiving server, use the interface in User Accounts > CWP->CWP Migration.
After successfully migrating the accounts, revert all changes to your SSH configuration, restart sshd, reset the r00t passphrase to strong ones, and re-enable the firewalls.

888
You have to stand on your head, pat your belly, and rub your feet at the same time in order to make this work. Actually, I just had the opportunity to do a CWP -> CWP migration, so here was my solution:
Disable the firewall (CSF & LDF) on both servers.
On both servers, reset the r00t password to be 8 characters or fewer.
In
Code: [Select]
/etc/ssh/sshd_config set:
Code: [Select]
PermitRootLogin yes
StrictModes no
Restart sshd:
Code: [Select]
service sshd restartOn the source server, set up the API key (CWP Settings > API Manager) for CWP Migration using the default CWP template.
On the receiving server, use the interface in User Accounts > CWP->CWP Migration.
After successfully migrating the accounts, revert all changes to your SSH configuration, reset the r00t passphrase to strong ones, and re-enable the firewalls.

889
Backup / Re: New Backup Error
« on: February 13, 2023, 09:46:17 AM »
Not to be snarky, but the New Backup is labeled as "beta" for a reason... I would expect to encounter some bugs along the way until it is fully shaken out!

890
E-Mail / Re: SMTP Error 451
« on: February 13, 2023, 09:31:28 AM »
You can set message throughput limits under the Packages > Packages menu item (don't you love the redundancy there?).
It is set under the Hourly Emails setting.

891
E-Mail / Re: I can rececive emails, but cannot send any emails
« on: February 13, 2023, 09:27:04 AM »
I can confirm (testing against 3 CWP servers) that an nmap ping probe (example above) will not set off the CSF firewall. You won't block yourself by doing so.
Code: [Select]
localhost$ nmap -P0 yourserver.com
Starting Nmap 7.93 ( https://nmap.org ) at 2023-02-13 02:20 MST
Nmap scan report for yourserver.com (111.111.111.111)
Host is up (0.075s latency).
Not shown: 982 closed tcp ports (conn-refused)
PORT      STATE    SERVICE
25/tcp    filtered smtp
53/tcp    open     domain
80/tcp    open     http
110/tcp   open     pop3
135/tcp   filtered msrpc
139/tcp   filtered netbios-ssn
143/tcp   open     imap
443/tcp   open     https
445/tcp   filtered microsoft-ds
465/tcp   open     smtps
587/tcp   open     submission
993/tcp   open     imaps
995/tcp   open     pop3s
2031/tcp  open     device2
3306/tcp  open     mysql
8888/tcp  open     sun-answerbook

892
Other / Re: How to protect my files against download
« on: February 13, 2023, 09:12:42 AM »
curl and wget can get a lot, and many offline web readers can suck down a whole site and localize the HTML. So not much you can do about it.

893
Installation / Re: Thunderbird problem
« on: February 13, 2023, 09:10:59 AM »
Funny thing is that I've seen countless T-Bird IMAP bugs over the years. And yet, Postbox (a commercial Thunderbird derivative, still using the T-Bird mail engine) seems to have fixed those IMAP errors! I never encounter any when I use Postbox, and having bought a lifetime license years ago, I get all updates that have been released. It offers a lot more spit-n-polish than the default T-bird experience.

894
MySQL / Re: virtual memory size
« on: February 11, 2023, 12:23:28 AM »
Definitely consider doing some MySQL performance tuning. There are scripts you can download that check your environment and offer suggestions for changes in you my.cnf file.

MySQL allocates memory in tons of places. Especially look at table cache
Performance_schema
Run this:
Code: [Select]
show engine performance_schema status
and look at the last line. That may be the cause for the systems with small amount of RAM, i.e. 1G or less

InnoDB
Run this:
Code: [Select]
show engine innodb status
check the buffer pool section, memory allocated for buffer_pool and related caches)

Temporary tables in RAM
Find all in-memory tables by running
Code: [Select]
select * from information_schema.tables where engine='MEMORY'
Prepared statements, when it is not deallocated (check the number of prepared commands via deallocate command by running
Code: [Select]
show global status like ‘ Com_prepare_sql';show global status like 'Com_dealloc_sql'
Welcome to the deep end ;)

895
E-Mail / Re: I can rececive emails, but cannot send any emails
« on: February 11, 2023, 12:15:15 AM »
or from outside your server network, telnet in to your server, trying ports 25, 465, 587, 110, 143, 995, 993.
Code: [Select]
telnet <server.ip> 25or do a port scan with nmap:
Code: [Select]
nmap -P0 <server.ip>

896
CSF Firewall / Re: Custom Webpage rather than "not solved"
« on: February 10, 2023, 03:37:45 PM »
The one-liner above should be:
Code: [Select]
cp /etc/csf/csf.conf{,.backup} && csf -u && sed -i 's/MESSENGER = "0"/MESSENGER = "1"/g' /etc/csf/csf.conf ; sed -i 's/MESSENGERV2 = "0"/MESSENGERV2 = "1"/g' /etc/csf/csf.conf ; sed -i 's/MESSENGER_HTTPS_IN = ""/MESSENGER_HTTPS_IN = "443"/g' /etc/csf/csf.conf ; useradd csf -s /bin/false ; csf -ra
And here it is as multiple lines:
Code: [Select]
cp /etc/csf/csf.conf{,.backup}
csf -u
sed -i 's/MESSENGER = "0"/MESSENGER = "1"/g' /etc/csf/csf.conf
sed -i 's/MESSENGERV2 = "0"/MESSENGERV2 = "1"/g' /etc/csf/csf.conf
sed -i 's/MESSENGER_HTTPS_IN = ""/MESSENGER_HTTPS_IN = "443"/g' /etc/csf/csf.conf
useradd csf -s /bin/false
csf -ra

897
MySQL / Re: virtual memory size
« on: February 10, 2023, 08:07:37 AM »
Check the available RAM on your server:
Code: [Select]
free -g
cat /proc/meminfo
Check what applications are using large amounts of RAM: top or htop (see the resident vs virtual memory)
Check mysql configuration: /etc/my.cnf or in the configuration directory: /etc/my.cnf.d.
Run
Code: [Select]
vmstat 5 5 to see if the system is reading/writing via virtual memory and if it is swapping...
Do you have a lot of caching in your my.cnf file?

898
MySQL / Re: MySQL Database Server - Failed
« on: February 10, 2023, 07:46:40 AM »
Try moving or removing the aria_log_control file, then start mariadb.
Code: [Select]
/var/lib/mysql/aria_log_control

899
Mod_Security / Re: Mod Security issue? pid 2459:tid 140698774865664
« on: February 10, 2023, 07:41:15 AM »
You're using the OWASP ruleset. I would suggest trying the Comodo rules instead -- it will throw less false-positives; it's not as restrictive and is more beginner-friendly.

900
MySQL / Re: zero
« on: February 10, 2023, 07:38:43 AM »
Some people just click on the "Unread" link and only peruse those (few) threads. To discover more, you have use this link instead:
Click here to try all unread topics.
Or better yet, simply look on the Forum homepage and just scroll the forum list to see if any topics are new or interest you. But you don't see the "child" fora:
Control Web Panel
(So you could make a case for there being too many categories and sub-categories. But it does help for categorization of issues.)

Pages: 1 ... 58 59 [60] 61 62 ... 71