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

Pages: [1] 2 3
1
CSF Firewall / Re: /bin/bash^M: bad interpreter and iptables
« on: April 03, 2019, 08:03:49 PM »
try this command

Code: [Select]
cat -A /usr/local/csf/bin/csfpost.sh
Do you see any ^M on output near $ ($ is an end-of-line symbol)?
If so, in VIM, you need an extra command to force display ^M before opening file to edit - see https://superuser.com/questions/357760/vi-on-linux-show-m-line-endings-for-dos-format-files for details

Launch vim without filename to edit

Code: [Select]
vim
in vim interface execute a command

Code: [Select]
:set ffs=unix
then open file to edit

Code: [Select]
:e /usr/local/csf/bin/csfpost.sh
You should see any ^M if exist

2
CSF Firewall / Re: /bin/bash^M: bad interpreter and iptables
« on: March 31, 2019, 10:11:22 AM »
^M is a DOS ‘Carriadge Return/Line Feed’ control symbol. Possibly, you are edit UNIX shell script using Windows editor (or copy-paste it from Windows), so ^M was appended to each string in script.

Use CentOS appropriate text editor to fix it. If you not familar with ‘vi’ or ‘nano’ editors, you can install ‘mc’ - Midnight Commander, which looks like as Norton Commander for DOS using shell command

yum install mc

then navigate to your script, open it for edit and you will see ^M at the end of strings. Remove it completely


3
Updates / Re: Update MariaDB >= 10.2
« on: October 01, 2018, 09:04:52 AM »
+1 for me too

4
"Click here for SSL login" in admin login window point to CWP Server IP instead hostname - https://192.168.200.172:2031/login/index.php?login=logout

I rebuilt CWP via 'change hostname' option, but this link was not updated.
Manually entered URL https://cwp.mydomainname.tld:2031 work properly.

CWP version: 0.9.8.740

6
CWP create folder for subdomain with incorrect owner/group and permissions (if subfolder created outside /home/user/public_html)

1. Add a subdomain and assign for it directory outside main domain public_html, for example /home/user/subdomain/public_html
2. Check owner/group and directory mode from shell or from File Manager

Code: [Select]
#cd /home/user
#ls -l
drwxr-xr-x 3 root root  4096 Sep 26 09:51 subdomain
drwxr-x--- 5 user nobody  4096 Jan  9  2018 public_html
#

subdomain folder have root as owner:group and directory mode is 755 against 750 for main domain

I fixed this using root shell, but this is a bug for user.

7
PHP / Re: php-cgi use hig CPU usage
« on: April 09, 2018, 10:25:40 AM »
Yes, it helped particulary - reduced from 100% to 60-75%

8
PHP / Re: php-cgi use hig CPU usage
« on: April 06, 2018, 09:41:04 AM »
Same problem (appeared 1 month ago or even more)

php-cgi for any site consume up 100% CPU during page load

CWP version: 0.9.8.586
Distro Name: CentOS Linux release 7.4.1708 (Core)
Kernel Version: 3.10.0-693.21.1.el7.x86_64
CPU Model: Intel(R) Xeon(R) CPU E5320 @ 1.86GHz
CPU Details: 4 Core (1862 MHz)
Platform: x86_64 [hyperv]

Apache version: Apache/2.4.29
PHP version: 5.6.35
MySQL version: 10.1.32-MariaDB
FTP version: 1.0.46


9
CentOS 6 Problems / Re: Problem with mail and with ssl
« on: February 16, 2018, 08:17:13 PM »
here is screenshot of my issue with mail http://prntscr.com/iefbbg it would be great if this is fixed.

incorrect HELO in server settings, or HELO doesn’t match to hostname
check
smtpd_banner =
myhostname =

in postfix main.cf

10
Backup / Re: Restore MYSQL Backup from Daily Backup
« on: January 23, 2018, 06:43:15 AM »
I see a ^M after /bin/bash - did you copy/paste script from Windows machine?
Use CentOS editor ‘nano’ or ‘mcedit’ from ‘mc’ package to remove unwanted ^M (DOSCarrige Return)

11
MySQL / Re: /var/lib/mysql = du -sh = 175G / I want to clear them
« on: January 21, 2018, 08:48:00 PM »
you should connect to your SQL server using SQL root login,

Code: [Select]
#mysql -u root -p
then execute command in SQL console (172 was used as example)

Code: [Select]
mysql>PURGE BINARY LOGS TO ‘mysql-bin.172’;
then leave SQL console
Code: [Select]
mysql>exit
If you disable binary logging, yes, you can delete this files with rm command when MySQL stopped

12
MySQL / Re: /var/lib/mysql = du -sh = 175G / I want to clear them
« on: January 21, 2018, 08:22:55 PM »
https://dev.mysql.com/doc/refman/5.7/en/purge-binary-logs.html
https://mariadb.com/kb/en/library/sql-commands-purge-logs/

You need to use phpMyAdmin or mysql console client to do this.
Don’t delete this files using OS shell!

13
DNS Manager / Re: I use freedns but I cant send or recive email.
« on: January 21, 2018, 06:22:29 PM »
Your SMTP server is not availiable from internet
use https://mxtoolbox.com for different tests

14
Why do you not a call to GoDaddy support? Their support quite responsible...

Or, try this help https://www.godaddy.com/help/renewing-my-ssl-certificate-864

15
SSL / Re: Invalid certificate/key pair and Apache server fails to start
« on: January 16, 2018, 08:42:05 AM »
Examine log files in /usr/local/apache/logs/

Open /usr/local/apache/conf.d/vhosts-ssl.conf and verify that parameters

SSLCertificateFile
SSLCertificateKeyFile
(optional) SSLCertificateChainFile

point to right files, files exist and accessible for Apache. Check your key/cert pair using https://www.sslshopper.com/certificate-key-matcher.html

Pages: [1] 2 3