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.
31
PHP / Re: Anti-Change Log
« on: November 11, 2024, 05:58:25 PM »
1. You just need to add the version number and nothing else.
2. For main php version (php switcher) modify the file:
/usr/local/cwpsrv/htdocs/resources/conf/el9/php_switcher/versions.ini
2. For main php version (php switcher) modify the file:
/usr/local/cwpsrv/htdocs/resources/conf/el9/php_switcher/versions.ini
32
PHP / Re: Anti-Change Log
« on: November 11, 2024, 12:49:26 PM »
Edit the file:
/usr/local/cwpsrv/htdocs/resources/conf/el9/php-fpm_selector/versions.ini
(add the necessary PHP versions)
and then try to compile PHP-FPM.
/usr/local/cwpsrv/htdocs/resources/conf/el9/php-fpm_selector/versions.ini
(add the necessary PHP versions)
and then try to compile PHP-FPM.
33
Apache / Re: Apache won't start after select web server nginx-varnish-apache
« on: November 10, 2024, 02:35:45 PM »
CWP points the main domain name of the account to public_html by defauly. When the account is created and you log into the user level CWP to add the domain name, CWP asks you what folder must be used as the home folder (document root) of the new domain. In case you want to set public_html as the document root of the new domain then specify "public_html" as the folder.
34
Information / Re: Missing Items - CWP To CWP Migration
« on: November 08, 2024, 07:30:28 PM »
Hi,
Look at this script:
https://github.com/JaimeObregon/export-roundcube-sql
It seems this script is what you look for to transfer the roundcube settings for specific domain between the servers.
Please note I didn't test this script.
If you want to transfer the whole roundcube database then do following:
As root on the source server do:
1.
2. Copy the file roundcube.sql to the destination server over FTP, SCP or some other way preferred by you.
3. Restore the database content on the destination server:
Look at this script:
https://github.com/JaimeObregon/export-roundcube-sql
It seems this script is what you look for to transfer the roundcube settings for specific domain between the servers.
Please note I didn't test this script.
If you want to transfer the whole roundcube database then do following:
As root on the source server do:
1.
Code: [Select]
mysqldump -Q --opt roundcube > roundcube.sql
2. Copy the file roundcube.sql to the destination server over FTP, SCP or some other way preferred by you.
3. Restore the database content on the destination server:
Code: [Select]
mysql roundcube < roundcube.sql
35
Apache / Re: Apache won't start after select web server nginx-varnish-apache
« on: November 08, 2024, 06:37:03 PM »when i try i get this error
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
The above errors say the port 80 is used already by some service NGINX or HTTP and can't be used by another service. Stop NGINX, Apache/HTTPD and then start services in the following order (Nginx,Apache) manually. If you get the error "could not bind to address 0.0.0.0:80" when you start Apache then check the Apache's config files to identify why apache tries to listed the port 80, update the port (replace :80 with :8181) and then try to start Apache again.
36
Apache / Re: Apache won't start after select web server nginx-varnish-apache
« on: November 08, 2024, 09:59:15 AM »
This is well known mod_security problem. It was solved numerous times:
https://forum.centos-webpanel.com/centos-9-problems/apache-wont-restart-after-enabling-mod_security/msg48744/
Guys, use "search" at this forum. Don't need to post the same problem-solution again and again.
https://forum.centos-webpanel.com/centos-9-problems/apache-wont-restart-after-enabling-mod_security/msg48744/
Guys, use "search" at this forum. Don't need to post the same problem-solution again and again.
37
CSF Firewall / Re: Cant start firewall
« on: November 07, 2024, 11:05:01 PM »
According to the error the kernel module iptables_filter isn't loaded and OS can't load it for some reason. It could happen if:
1. You use custom kernel without iptables_filter support (Kernel installed from some 3rd party repository or compiled from sources with iptables_filter disabled)
2. Your provider uses OpenVZ/LXC virtualization and the kernel module iptables_filter isn't loaded at main node.
If the problem remains unsolved after the restoration then do following:
Run as root on your VPS:
and show output.
1. You use custom kernel without iptables_filter support (Kernel installed from some 3rd party repository or compiled from sources with iptables_filter disabled)
2. Your provider uses OpenVZ/LXC virtualization and the kernel module iptables_filter isn't loaded at main node.
If the problem remains unsolved after the restoration then do following:
Run as root on your VPS:
Code: [Select]
uname -a
ls /lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/
and show output.
38
CentOS-WebPanel Bugs / Re: User login - errors
« on: November 06, 2024, 09:44:34 PM »
Look into the log file:
/usr/local/cwpsrv/logs/error_log
/usr/local/cwpsrv/logs/error_log
39
CentOS 9 Problems / Re: Error in SMTP
« on: November 03, 2024, 10:49:27 PM »
I just recommend you to install CWP again on a new fresh system and make sure there are no errors during the installation. Or copy the dovecot's, roundcube's database structure from some live server and recreate mailboxes on the new server.
As an extra step for investigation, check the php libs available for main php version installed on your server. It must support MySQLi, and PDO_mysql.
As an extra step for investigation, check the php libs available for main php version installed on your server. It must support MySQLi, and PDO_mysql.
40
CentOS 9 Problems / Re: Error in SMTP
« on: November 03, 2024, 09:44:02 PM »
According to the provided error logs there is some problem with the databases of roundcube and dovecot/postfix. How did you install roundcube and postfix, dovecot ? Did you install them manually or using CWP ? Did you modified some configs, etc ?
41
CSF Firewall / Re: Cant start firewall
« on: November 03, 2024, 07:15:44 PM »
1. Is it VPS or bare metal server ?
2. Do you use some custom kernel ?
2. Do you use some custom kernel ?
42
How to / Re: create a directory on a hosting account (says forbidden)
« on: November 02, 2024, 01:55:39 PM »
index file isn't required if you try to access the file via the direct link:
http://domain.com/folder/file.txt
even if the directory listing is disabled.
So if you try to access the file over the direct link and get the error 403 (forbidden) then make sure the access permissions allow to access the file (folder and file belong to the correct user, etc) and your HTTP/HTTPS request isn't blocked by mod_security or any other nginx/apache module used to control access (there is no some deny/allow rule).
http://domain.com/folder/file.txt
even if the directory listing is disabled.
So if you try to access the file over the direct link and get the error 403 (forbidden) then make sure the access permissions allow to access the file (folder and file belong to the correct user, etc) and your HTTP/HTTPS request isn't blocked by mod_security or any other nginx/apache module used to control access (there is no some deny/allow rule).
43
Backup / Re: Is there a backup guide?
« on: November 02, 2024, 10:43:23 AM »
Hi,
If you want to use new backup system and store backups on the remote server then the backup server must support OpenSSH and rsync.
OpenSSH and rsync are supported by any Linux distro (Alma, Rocky, Debian, Ubuntu, etc). OpenSSH and rsync can be running on Windows OS too. So there is no strict OS requirement.
Backups can be restored by the admin (root) only. The CWP user doesn't have permissions and options to run the restoration process.
If you want to use new backup system and store backups on the remote server then the backup server must support OpenSSH and rsync.
OpenSSH and rsync are supported by any Linux distro (Alma, Rocky, Debian, Ubuntu, etc). OpenSSH and rsync can be running on Windows OS too. So there is no strict OS requirement.
Backups can be restored by the admin (root) only. The CWP user doesn't have permissions and options to run the restoration process.
44
CentOS 7 Problems / Re: /cwpsrv/conf
« on: November 02, 2024, 10:20:28 AM »
Try to restart CWP instead of reboot the server.
45
CentOS-WebPanel Bugs / Re: CWP - CWP Migration - DNS Records
« on: October 31, 2024, 05:44:17 PM »
CWP doesn't migrate the DNS zones. It just creates the DNS zone on a new server using the default DNS zone template and adds necessary zone records for subdomains associated with the domain name.