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

Pages: [1]
1
Apache / Apache Log rotator setting for daily logs
« on: August 13, 2022, 04:27:55 AM »
Apache logs files in the /usr/local/apache/domlogs directory and the log format is [domain.com].log.

Where and what do I put on the server to have log files rotated daily for each day? Like:

Quote
domain.com-13-08-2022.log
domain.com-14-08-2022.log
domain.com-15-08-2022.log
and so on...


anotherdomain.org-13-08-2022.log
anotherdomain.org-14-08-2022.log
anotherdomain.org-15-08-2022.log
and so on...

2
I'm trying to migrate user accounts/database/emails etc from the old CWP pro server to the new CWP free server.
However, I'm facing the error message:

Quote
cwp-cwp migration Connection not reached The following error occurred

And the complete account_transfer.log message:

Code: [Select]
export SSHPASS='PASSWORD'; /usr/bin/sshpass -e /usr/bin/ssh -p 5656 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet  root@123.123.123.123
test -d /usr/local/cwp/ && echo 'true' || echo 'false'
true

export SSHPASS=**********;/usr/bin/sshpass -e ssh-copy-id "-p 5656" root@123.123.123.123 -o StrictHostKeyChecking=no 2>&1
/usr/bin/ssh -p 2298 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet root@103.102.46.20 test -d /usr/local/cwp/ && echo 'true' || echo 'false' 2>&1

Here is no true or false after the last log line above.

I have already tried everything as shown in the video on the link:
https://docs.control-webpanel.com/docs/admin-guide/user-accounts/cwp-to-cwp-migration

And the command for the source server:
Code: [Select]
ssh root@123.123.123.123 -p 5656Outputs
Quote
root

There is no firewall or additional setting like NAT at the host level.
And I have tried migration by disabling the firewall on both sides.

Below is SSH config for reference.
Code: [Select]
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM no
#UsePAM yes also checked

Any help to be able to utilize CWP to CWP migration?

3
E-Mail / Send System Email Without Postfix
« on: September 24, 2019, 09:56:06 AM »
I'm using Email service offered by the Domain Registrar to send and receive emails for websites hosted on CWP VPS.
The Registrar provided MX, CNAME, SPF and DKIM records to add to the host DNS manager for each domain which I did and email services are working as expected.

After that, I have stopped Postfix server as well as other Mail related services in CWP. Now as expected, I'm not receiving the system generated emails like LFD notifications, SSH login to the admin address. Which I want to continue to receive.

I've checker following CWP wiki article and a few others.
https://wiki.centos-webpanel.com/how-to-setup-remote-smtp-server-as-relay

But I could understand that, in order to receive system emails, I have to run the Postfix server. Is there no other option to perform the same without the need of Postfix as I have running VPS on low memory.

I thought like entering CNAME, MX, SPF, DKIM records for the hostname as its the subdomain of the main domain name. But there is no such DNS configuration file for the hostname within DNS functions. I'm quite less familiar with DNS functionalities.

How do I receive system emails without the involvement of Postfix?

Thanks

Pages: [1]