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.
151
Installation / Re: Hostname / Main Server Account & Domain
« on: June 07, 2023, 05:19:18 PM »
Log into the admin area of CWP as root and go to:
"Server Settings" --> "Change Hostname"
put "server.example.com" into the field "New Hostname:", active all options and click on "Change Hostname".
(replace "server.example.com" with the subdomain you want to use for your VPS/server. It will not be used by your site. It is how yout server/VPS will be called.)
Before you do it, make sure the value (subdomain) used by you as "Hostname" is resolved to the primary IP address of your VPS/server.
Then you can create an account for your domain name "example.com" and upload the files of your website into the account to make example.com accessible for internet users.
"Server Settings" --> "Change Hostname"
put "server.example.com" into the field "New Hostname:", active all options and click on "Change Hostname".
(replace "server.example.com" with the subdomain you want to use for your VPS/server. It will not be used by your site. It is how yout server/VPS will be called.)
Before you do it, make sure the value (subdomain) used by you as "Hostname" is resolved to the primary IP address of your VPS/server.
Then you can create an account for your domain name "example.com" and upload the files of your website into the account to make example.com accessible for internet users.
152
DNS / Re: How to host main domain (like whmcs) on another server without changing Cwp name
« on: June 06, 2023, 01:38:21 PM »
As I understand you want to make access to your billing (WHMCS) through the URL like:
whmcs.example.com
Right ?
If so then create the virtual host/account with the domain name/subdomain whmcs.example.com on your other server then edit the DNS zone of example.com on your primary server and add the DNS record like:
Name: whmcs.example.com.
Type: A
Destination: xxx.xxx.xxx.xxx
where xxx.xxx.xxx.xxx is the IP address used by whmcs.example.com on your second server.
whmcs.example.com
Right ?
If so then create the virtual host/account with the domain name/subdomain whmcs.example.com on your other server then edit the DNS zone of example.com on your primary server and add the DNS record like:
Name: whmcs.example.com.
Type: A
Destination: xxx.xxx.xxx.xxx
where xxx.xxx.xxx.xxx is the IP address used by whmcs.example.com on your second server.
153
Apache / Re: server reached MaxClients setting, consider raising the MaxClients setting
« on: June 06, 2023, 01:31:29 PM »
Run:
in shell to find which MPM you use (most likely "event").
Code: [Select]
/usr/local/apache/bin/httpd -V| grep MPM
in shell to find which MPM you use (most likely "event").
154
Other / Re: cronjop problem
« on: June 06, 2023, 12:53:56 PM »
Why do you think your cron task doesn't work ? Do you get some errors or what ?
What does happen when you run:
from shell (ssh) ?
What does happen when you run:
Code: [Select]
php -q /home/uzman/public_html/coremio/cronjobs.php
/usr/local/bin/php -q /home/uzman/public_html/coremio/cronjobs.php
from shell (ssh) ?
155
Apache / Re: server reached MaxClients setting, consider raising the MaxClients setting
« on: June 03, 2023, 01:49:24 AM »
Put all settings offered by apache_mpm_calculator into the appropriate section of:
Code: [Select]
/usr/local/apache/conf/extra/httpd-mpm.conf
Please don't forget to make backup of the file before you modify it in order to undo the changes if something goes wrong.
156
Apache / Re: server reached MaxClients setting, consider raising the MaxClients setting
« on: May 31, 2023, 08:56:56 PM »
You just need to change the value in the appropriate section (prefork, worker, event) of:
The value depends on available (free memory). Don't set the value too high. I recommend you to following:
1. Check how much free memory you have;
2. Find the most memory expensive http/apache process;
3. Divide free memory by the RAM usage of the most expensive http/apache process;
4. Divide the result by two.
Don't forget other services eat RAM too
I recommend you to check the following guide:
https://www.woktron.com/secure/knowledgebase/133/How-to-optimize-Apache-performance.html
Also, you can use:
Code: [Select]
/usr/local/apache/conf/extra/httpd-mpm.conf
and then restart Apache.The value depends on available (free memory). Don't set the value too high. I recommend you to following:
1. Check how much free memory you have;
2. Find the most memory expensive http/apache process;
3. Divide free memory by the RAM usage of the most expensive http/apache process;
4. Divide the result by two.
Don't forget other services eat RAM too
I recommend you to check the following guide:
https://www.woktron.com/secure/knowledgebase/133/How-to-optimize-Apache-performance.html
Also, you can use:
Code: [Select]
/scripts/apache_mpm_calculator
to get values recommended by CWP.
157
CentOS 7 Problems / Re: Malware found
« on: May 31, 2023, 07:58:53 PM »
Check the file:
However, the output provided by you looks good and I don't think your VPS/server is compromised.
Therefore I do believe you have the problem with your website because the site has some vulnerablity (outdated component/backdoor) and it is used to inject malicious code.
So scan your website using Wordfence (if the site is based on Wordpress), update all components including Wordpress itself.
Code: [Select]
/var/log/rkhunter/rkhunter.log
to get more details about suspicious files.However, the output provided by you looks good and I don't think your VPS/server is compromised.
Therefore I do believe you have the problem with your website because the site has some vulnerablity (outdated component/backdoor) and it is used to inject malicious code.
So scan your website using Wordfence (if the site is based on Wordpress), update all components including Wordpress itself.
158
Apache / Re: /usr/local/apache/conf.d/vhosts/domain.ssl.conf gets overwritten
« on: May 27, 2023, 10:16:25 PM »
It looks like you customize the apache conf file generated by CWP. If so then CWP reset all HTTP/HTTPS (nginx/apache) confs according to the used templates.
To solve this I recommend you to create a custom template and apply it for your website testdomain.nl.
Please review the page:
https://wiki.centos-webpanel.com/webservers-vhost-templates
to learn about webserver vhost templates.
Hope it will help you to solve the problem.
To solve this I recommend you to create a custom template and apply it for your website testdomain.nl.
Please review the page:
https://wiki.centos-webpanel.com/webservers-vhost-templates
to learn about webserver vhost templates.
Hope it will help you to solve the problem.
159
E-Mail / Re: postfix sending email every minute
« on: May 27, 2023, 10:11:12 PM »
Check HTTP/HTTPS access logs of the websites associated with the user "agendada". I assume some website hosted in the account of the user "agendada" could contain some unprotected mail form or vulnerable mail script. It could be bombarded by spam bots. That is why you could get a lot of mail delivery failures. To solve the problem with the form, protect the form using Google reCaptcha or similar method. In case the bounces are caused by the vulnerable mail script then to avoid the spam submission the script must check the referrer, verify some hidden data from the form, etc.
160
How to / Re: How to manage hard drive space without losing data
« on: May 25, 2023, 12:36:40 PM »
Hi,
Just forget about "devtmpf", "tmpfs". Those partitions can't be used as storage device:
https://en.wikipedia.org/wiki/Tmpfs
Once you reboot your server/vps all data in tmpfs will be removed.
Just forget about "devtmpf", "tmpfs". Those partitions can't be used as storage device:
https://en.wikipedia.org/wiki/Tmpfs
Once you reboot your server/vps all data in tmpfs will be removed.
161
E-Mail / Re: Can't Receive emails
« on: May 22, 2023, 07:25:56 PM »
Try to rebuild postfix (main) config.
CWP --> MailServer Manager:
I recommend you to enable the followiong options (Don't check everything for testing purposes):
rDNS Check (recommended)
Install DKIM & SPF (recommended)
Make sure "Hostname" and "Domain" have correct values.
Click "Rebuild Mail Server", wait some time and then try to send/receive emails again.
CWP --> MailServer Manager:
I recommend you to enable the followiong options (Don't check everything for testing purposes):
rDNS Check (recommended)
Install DKIM & SPF (recommended)
Make sure "Hostname" and "Domain" have correct values.
Click "Rebuild Mail Server", wait some time and then try to send/receive emails again.
162
Apache / Re: My apache has stopped working
« on: May 22, 2023, 05:59:52 PM »
Unfortunately the latest log provided by you doesn't contain anything about the error and doesn't allow to identify the problematic file either.
Try to identify the problematic file using the file:
Open it using "less", "vi" or some other editor and read content from the end to beginning.
Or just run:
Try to identify the problematic file using the file:
Code: [Select]
/usr/local/apache/logs/error_log
Open it using "less", "vi" or some other editor and read content from the end to beginning.
Or just run:
Code: [Select]
/usr/local/apache/bin/apachectl
and read output.
163
Nginx / Re: Outdated Nginx
« on: May 22, 2023, 05:01:51 PM »
CWP installs NGINX from the repo EPEL. EPEL isn't maintained by CWP. If you want to install more recent version of NGINX then do following:
1. Add the line:
into the section [epel] of the file:
/etc/yum.repos.d/epel.repo
2. Add your own (preferred) repo for NGINX:
Official Nginx repo: https://nginx.org/en/linux_packages.html#RHEL
Nginx with extra mods from GetPageSpeed: https://www.getpagespeed.com/redhat
or something else.
3. Update NGINX.
1. Add the line:
Code: [Select]
exclude=nginx*
into the section [epel] of the file:
/etc/yum.repos.d/epel.repo
2. Add your own (preferred) repo for NGINX:
Official Nginx repo: https://nginx.org/en/linux_packages.html#RHEL
Nginx with extra mods from GetPageSpeed: https://www.getpagespeed.com/redhat
or something else.
3. Update NGINX.
164
CentOS Configuration / Re: cwp does not show websites on cgroups page?
« on: May 22, 2023, 02:54:37 PM »
Connect to mysql/mariadb as root and run the following SQL command/query:
I get "NO_ENGINE_SUBSTITUTION" only. In case you get something else, set:
in my.cnf and restart MySQL/MariaDB.
If it doesn't help either, provide us with the SQL error mentioned by you and detail what MySQL/MariaDB version you use.
Code: [Select]
show variables like "sql_mode";
I get "NO_ENGINE_SUBSTITUTION" only. In case you get something else, set:
Code: [Select]
sql_mode="NO_ENGINE_SUBSTITUTION"
in my.cnf and restart MySQL/MariaDB.
If it doesn't help either, provide us with the SQL error mentioned by you and detail what MySQL/MariaDB version you use.
165
Apache / Re: My apache has stopped working
« on: May 22, 2023, 02:24:54 PM »
There is a syntax error in some apache config file:
Unfortunately it isn't possible to identify which file causes the problem because the line is truncated in your output.
I recommend you to check the output of "journalctl -xe" more closely to identify the problematic file, open it in some editor and investigate the line 17 of the file. It will help you to understand which directive isn't recognized by apache. In case it doesn't help you then show us content of the problematic file.
Code: [Select]
may 22 13:26:54 server.notices.com apachectl[47086]: AH00526: Syntax error on line 17 of /usr/local/apache/conf.d/vhost>
Unfortunately it isn't possible to identify which file causes the problem because the line is truncated in your output.
I recommend you to check the output of "journalctl -xe" more closely to identify the problematic file, open it in some editor and investigate the line 17 of the file. It will help you to understand which directive isn't recognized by apache. In case it doesn't help you then show us content of the problematic file.