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.
Pages: [1]
1
Postfix / How to bypass this error : admin@ - (bad address syntax)
« on: January 05, 2016, 02:01:07 PM »
How to bypass this error?
My maillog file :
Jan 5 15:39:42 server postfix/smtpd[23815]: connect from unknown[116.249.127.226]
Jan 5 15:39:53 server postfix/smtpd[23815]: warning: unknown[116.249.127.226]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Jan 5 15:39:53 server postfix/smtpd[23815]: lost connection after AUTH from unknown[116.249.127.226]
Jan 5 15:39:53 server postfix/smtpd[23815]: disconnect from unknown[116.249.127.226]
Jan 5 15:39:54 server postfix/smtpd[23851]: warning: 116.249.127.226: hostname 226.127.249.116.broad.km.yn.dynamic.163data.com.cn verification failed: Name or service not known
Jan 5 15:39:54 server postfix/smtpd[23851]: connect from unknown[116.249.127.226]
Jan 5 15:39:56 server postfix/qmgr[14430]: DF2971CC035A: from=<root@myserver.net>, size=38964, nrcpt=1 (queue active)
Jan 5 15:39:56 server postfix/error[24755]: DF2971CC035A: to=<admin@>, relay=none, delay=319790, delays=319790/0.01/0/0.05, dsn=4.1.3, status=SOFTBOUNCE (bad address syntax)
Jan 5 15:40:02 server postfix/pickup[19587]: 8B9361CC1E29: uid=0 from=<root>
My maillog file :
Jan 5 15:39:42 server postfix/smtpd[23815]: connect from unknown[116.249.127.226]
Jan 5 15:39:53 server postfix/smtpd[23815]: warning: unknown[116.249.127.226]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Jan 5 15:39:53 server postfix/smtpd[23815]: lost connection after AUTH from unknown[116.249.127.226]
Jan 5 15:39:53 server postfix/smtpd[23815]: disconnect from unknown[116.249.127.226]
Jan 5 15:39:54 server postfix/smtpd[23851]: warning: 116.249.127.226: hostname 226.127.249.116.broad.km.yn.dynamic.163data.com.cn verification failed: Name or service not known
Jan 5 15:39:54 server postfix/smtpd[23851]: connect from unknown[116.249.127.226]
Jan 5 15:39:56 server postfix/qmgr[14430]: DF2971CC035A: from=<root@myserver.net>, size=38964, nrcpt=1 (queue active)
Jan 5 15:39:56 server postfix/error[24755]: DF2971CC035A: to=<admin@>, relay=none, delay=319790, delays=319790/0.01/0/0.05, dsn=4.1.3, status=SOFTBOUNCE (bad address syntax)
Jan 5 15:40:02 server postfix/pickup[19587]: 8B9361CC1E29: uid=0 from=<root>

2
CentOS-WebPanel GUI / I can't list and cant' create databases on the cwp since mysql root changing
« on: December 28, 2015, 08:10:04 AM »
Please help me;
Recently i changed mysql root password
due to wordpress exploits, i changed database settings db config file on include directory, but cwp database modules doesn't working.
I can't list and can't create databases.
Its redirecting to database showing page after creating database not giving any error and database list is empty please help me!


Recently i changed mysql root password
due to wordpress exploits, i changed database settings db config file on include directory, but cwp database modules doesn't working.
I can't list and can't create databases.
Its redirecting to database showing page after creating database not giving any error and database list is empty please help me!


3
Information / Activating gzip,mod_deflate and enabling caching on Apache
« on: December 10, 2015, 04:42:09 PM »
If you want to optimize your website and for increasing seo score:
Login Centos Web Panel,Goto Apache Settings/ Apache vHosts Template and Insert the following Lines :
1) Activating gzip and compressing css, images and js files with mod_deflate on Apache
Find this lines :
<Directory "%homedir%/%username%/public_html">
AllowOverride All
*Add after: (Ensure, this lines should be between "<Directory> </Directory>"
<IfModule mod_mime.c>
AddType application/x-javascript .js
AddType text/css .css
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/plain text/xml application/javascript
<IfModule mod_setenvif.c>
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch MSIE !no-gzip !gzip-only-text/html
</IfModule>
</IfModule>
2) Make Browsers Cache Static Files With mod_expires On Apache
Insert this line :
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
</IfModule>
Preview:

Now we should click "Rebuild Virtual Hosts", then click "Rebuild All Virtual Hosts for activating changes on the all websites:

All ok.
You can check status with this website :
http://checkgzipcompression.com/

If you want to reverse changes , you should go this folder and restore last files on ftp : /usr/local/cwp/.conf/backups/file_editor_backups/
Login Centos Web Panel,Goto Apache Settings/ Apache vHosts Template and Insert the following Lines :
1) Activating gzip and compressing css, images and js files with mod_deflate on Apache
Find this lines :
<Directory "%homedir%/%username%/public_html">
AllowOverride All
*Add after: (Ensure, this lines should be between "<Directory> </Directory>"
<IfModule mod_mime.c>
AddType application/x-javascript .js
AddType text/css .css
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/plain text/xml application/javascript
<IfModule mod_setenvif.c>
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch MSIE !no-gzip !gzip-only-text/html
</IfModule>
</IfModule>
2) Make Browsers Cache Static Files With mod_expires On Apache
Insert this line :
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
</IfModule>
Preview:

Now we should click "Rebuild Virtual Hosts", then click "Rebuild All Virtual Hosts for activating changes on the all websites:

All ok.
You can check status with this website :
http://checkgzipcompression.com/

If you want to reverse changes , you should go this folder and restore last files on ftp : /usr/local/cwp/.conf/backups/file_editor_backups/
4
CentOS-WebPanel GUI / How to change mysql user password from for cwp client ?
« on: December 08, 2015, 09:46:05 AM »
Please help me , I want to change mysql password without create again user.
5
Apache / Apache error log file in your public_html directory
« on: August 08, 2015, 09:30:38 AM »
If you want to see apache error.log file in your public_html or subdomain dir :
1) Login to Cwp with root account.
2) Go to Apache Settings/ Apache Vhosts Template
3) In Apache Domain Virtual Host tpl:
Add this line after (DocumentRoot "%homedir%/%username%/public_html"):
ErrorLog "%homedir%/%username%/public_html/error.log"
4) In Apache SubDomain Virtual Host tpl:
Add this line after (DocumentRoot "%path%") :
ErrorLog "%path%/error.log"

5) Click Save Changes and Go to : Rebuild Virtual Hosts and Click "Rebuild All Virtual Hosts"

6) Alright!! You can see error.log file in public_html or your subdomain_dir :

1) Login to Cwp with root account.
2) Go to Apache Settings/ Apache Vhosts Template
3) In Apache Domain Virtual Host tpl:
Add this line after (DocumentRoot "%homedir%/%username%/public_html"):
ErrorLog "%homedir%/%username%/public_html/error.log"
4) In Apache SubDomain Virtual Host tpl:
Add this line after (DocumentRoot "%path%") :
ErrorLog "%path%/error.log"

5) Click Save Changes and Go to : Rebuild Virtual Hosts and Click "Rebuild All Virtual Hosts"

6) Alright!! You can see error.log file in public_html or your subdomain_dir :


6
Mod_Security / Not working simple web after installing mod_security (Solved)
« on: June 20, 2015, 10:25:07 AM »
I can't use webftp_simple. Showing 404 Forbidden error!
Here error_log :
Here is Solution:
1)Connect ssh and goto dir :
cd /usr/local/apache/modsecurity-crs/base_rules/
2) Open file
nano modsecurity_crs_45_trojans.conf
3)
Press ctrl+w (Find) and press ctrl + t (Gotoline), Enter number: 35, and delete this line (Start From [Secrule] to " " ).
press ctr+x and press y for saving file.
4) Restart apache :
service httpd restart
Here error_log :
Code: [Select]
[Sat Jun 20 13:36:22 2015] [error] [client 185.59.46.239] ModSecurity: Access denied with code 403 (phase 4). Pattern match "(?:<title>[^<]*?(?:\\\\b(?:(?:c(?:ehennemden|gi-telnet)|gamma web shell)\\\\b|imhabirligi phpftp)|(?:r(?:emote explorer|57shell)|aventis klasvayv|zehir)\\\\b|\\\\.::(?:news remote php shell injection::\\\\.| rhtools\\\\b)|ph(?:p(?:(?: commander|-terminal)\\\\b|remot ..." at RESPONSE_BODY. [file "/usr/local/apache/modsecurity-crs/base_rules/modsecurity_crs_45_trojans.conf"] [line "35"] [id "950922"] [rev "2"] [msg "Backdoor access"] [data "Matched Data: drwxr found within RESPONSE_BODY: <!DOCTYPE html PUBLIC \\x22-//W3C//DTD XHTML 1.0 Strict//EN\\x22 \\x22http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\\x22>\\x0d\\x0a<html>\\x0d\\x0a<head>\\x0d\\x0a\\x09<title>FTP v1.4.5</title>\\x0d\\x0a\\x09<link href=\\x22style.css\\x22 rel=\\x22stylesheet\\x22 type=\\x22text/css\\x22>\\x0d\\x0a\\x09<link href=\\x22skins/monsta.css\\x22 rel=\\x22stylesheet\\x22 type=\\x22text/css\\x22>\\x0d\\x0a\\x09<meta http-equiv=\\x22Content-Type\\x22 content=\\x22text/html; charset=utf-8\\x22>\\x0d\\..."] [severity "CRITICAL"] [ve [hostname "erdalbilisim.net"] [uri "/webftp_simple/index.php"] [unique_id "VYVCJrk7Lu8AAExwHcUAAAAI"]
Here is Solution:
1)Connect ssh and goto dir :
cd /usr/local/apache/modsecurity-crs/base_rules/
2) Open file
nano modsecurity_crs_45_trojans.conf
3)
Press ctrl+w (Find) and press ctrl + t (Gotoline), Enter number: 35, and delete this line (Start From [Secrule] to " " ).
press ctr+x and press y for saving file.
4) Restart apache :
service httpd restart
7
Postfix / Please Solve this issue with next update
« on: June 20, 2015, 10:02:43 AM »
I can't receive any mail after rebuild postfix with amavisd+spamassassin.
I researched postfix logs and ı find error. Because centos web panel changing lines with incorrect lines.
postfix/smtpd[9910]: warning: unknown smtpd restriction: "reject_rbl_clientzen.spamhaus.org"
I changed this line with below line and my issue solved:
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_rbl_client zen.spamhaus.org,reject_rbl_client bl.spamcop.net,reject_rbl_client
Should "reject_rbl_client zen.spamhaus.org" not "reject_rbl_clientzen.spamhaus.org"
Please Solve this issue, with next update!!
I researched postfix logs and ı find error. Because centos web panel changing lines with incorrect lines.
postfix/smtpd[9910]: warning: unknown smtpd restriction: "reject_rbl_clientzen.spamhaus.org"
I changed this line with below line and my issue solved:
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_rbl_client zen.spamhaus.org,reject_rbl_client bl.spamcop.net,reject_rbl_client
Should "reject_rbl_client zen.spamhaus.org" not "reject_rbl_clientzen.spamhaus.org"
Please Solve this issue, with next update!!
8
Mod_Security / Wordpress does not work after activate the Mod Security
« on: June 04, 2015, 09:22:00 AM »
I receiving error after install mod security :
403 Forbidden
My disabled rules :
## Wordpress ##
SecRuleRemoveById 981242
SecRuleRemoveById 981246
SecRuleRemoveById 981243
SecRuleRemoveById 959073
SecRuleRemoveById 958030
Centos 6.6 x86
CWP version: 0.9.8.6
How i can fix this ?
403 Forbidden
My disabled rules :
## Wordpress ##
SecRuleRemoveById 981242
SecRuleRemoveById 981246
SecRuleRemoveById 981243
SecRuleRemoveById 959073
SecRuleRemoveById 958030
Centos 6.6 x86
CWP version: 0.9.8.6
How i can fix this ?
9
PHP / I receiving Php Error in Panel Please help me !
« on: May 27, 2015, 12:53:09 PM »
I'am receiving these errors in "Cwp Panel / Messages Tab"
Notice: Undefined property: DOMDocument::$klF143geFHnAi4H4 in /usr/local/cwpsrv/htdocs/resources/admin/include/phpQuery-onefile.php(1) : eval()'d code(1) : eval()'d code on line 89
Notice: Trying to get property of non-object in /usr/local/cwpsrv/htdocs/resources/admin/include/phpQuery-onefile.php(1) : eval()'d code(1) : eval()'d code on line 89
Notice: Trying to get property of non-object in /usr/local/cwpsrv/htdocs/resources/admin/include/phpQuery-onefile.php(1) : eval()'d code(1) : eval()'d code on line 89
Notice: Trying to get property of non-object in /usr/local/cwpsrv/htdocs/resources/admin/include/phpQuery-onefile.php(1) : eval()'d code(1) : eval()'d code on line 89
Notice: Trying to get property of non-object in /usr/local/cwpsrv/htdocs/resources/admin/include/phpQuery-onefile.php(1) : eval()'d code(1) : eval()'d code on line 377
I am using varnish cache as a plus .

My Server Information :
CentOS release 6.6 (Final)
Server Time: Wed May 27 15:48:47 EEST
CWP version: 0.9.8.6
Apache version: Apache/2.2.27
PHP version: 5.4.27
MySQL version: 5.1.73
FTP version: 1.0.36
Notice: Undefined property: DOMDocument::$klF143geFHnAi4H4 in /usr/local/cwpsrv/htdocs/resources/admin/include/phpQuery-onefile.php(1) : eval()'d code(1) : eval()'d code on line 89
Notice: Trying to get property of non-object in /usr/local/cwpsrv/htdocs/resources/admin/include/phpQuery-onefile.php(1) : eval()'d code(1) : eval()'d code on line 89
Notice: Trying to get property of non-object in /usr/local/cwpsrv/htdocs/resources/admin/include/phpQuery-onefile.php(1) : eval()'d code(1) : eval()'d code on line 89
Notice: Trying to get property of non-object in /usr/local/cwpsrv/htdocs/resources/admin/include/phpQuery-onefile.php(1) : eval()'d code(1) : eval()'d code on line 89
Notice: Trying to get property of non-object in /usr/local/cwpsrv/htdocs/resources/admin/include/phpQuery-onefile.php(1) : eval()'d code(1) : eval()'d code on line 377
I am using varnish cache as a plus .

My Server Information :
CentOS release 6.6 (Final)
Server Time: Wed May 27 15:48:47 EEST
CWP version: 0.9.8.6
Apache version: Apache/2.2.27
PHP version: 5.4.27
MySQL version: 5.1.73
FTP version: 1.0.36
Pages: [1]