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.
196
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 05:01:58 AM »
The issue is caused because of SecServerSignature in /usr/local/apache/conf.d/mod_security.conf
You can manually goto /usr/local/apache/conf.d/mod_security.conf and remove it
Find
remove the above line and then restart apache
Or else you can run
You can manually goto /usr/local/apache/conf.d/mod_security.conf and remove it
Code: [Select]
nano /usr/local/apache/conf.d/mod_security.conf
Find
Code: [Select]
SecServerSignature "CentOS WebPanel: Protected by Mod Security"
remove the above line and then restart apache
Code: [Select]
service httpd restart
Or else you can run
Code: [Select]
sed -i 's|.*SecServerSignature.*||g' /usr/local/apache/conf.d/mod_security.conf
service httpd restart
197
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 04:56:19 AM »
Its solved.
198
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 04:42:55 AM »199
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 04:21:06 AM »200
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 04:10:23 AM »
Goto you public_html folder and type
rm -rf .htaccess
Then open wordpress admin goto permalink and choose one and save it. See if its working then
rm -rf .htaccess
Then open wordpress admin goto permalink and choose one and save it. See if its working then
201
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 04:06:03 AM »202
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 04:00:12 AM »
When I provided above solution didnt fix your .htaccess permalink issue?
It it still not creating automatically in your htaccess file?
It it still not creating automatically in your htaccess file?
203
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 03:49:46 AM »204
Mod_Security / Re: ModSecurity adds index.php in permalinks
« on: August 10, 2018, 02:44:30 AM »
Running below commands will fix your issue
Code: [Select]
sed -i 's|.*SecServerSignature "CentOS WebPanel: Protected by Mod Security".*||g' /usr/local/apache/conf.d/mod_security.conf
service httpd restart
205
CentOS-WebPanel Bugs / Re: login page appear as "502 Bad Gateway"
« on: August 09, 2018, 05:05:49 AM »206
CentOS-WebPanel Bugs / Re: [BUG] 2times DKIM Signing
« on: August 09, 2018, 03:56:27 AM »
Workaround
Edit master.cf
Find
Above add
Image for verification
Now email will be signed only once with DKIM
Edit master.cf
Code: [Select]
nano /etc/postfix/master.cf
Find
Code: [Select]
-o smtpd_helo_restrictions=
Above add
Code: [Select]
-o smtpd_milters=
Image for verification
Now email will be signed only once with DKIM
Quote
Aug 8 23:49:35 server1 postfix/smtpd[23370]: connect from localhost[127.0.0.1]
Aug 8 23:49:35 server1 postfix/smtpd[23370]: C3301E07C4: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=email@yourdomain.com
Aug 8 23:49:35 server1 postfix/cleanup[23432]: C3301E07C4: message-id=<4f57aba6ac3dd13fe06212f4aa204ebb@bullten.network>
Aug 8 23:49:35 server1 opendkim[21907]: C3301E07C4: DKIM-Signature field added (s=default, d=bullten.network)
Aug 8 23:49:35 server1 postfix/qmgr[23356]: C3301E07C4: from=<email@yourdomain.com>, size=589, nrcpt=1 (queue active)
Aug 8 23:49:35 server1 postfix/smtpd[23370]: disconnect from localhost[127.0.0.1]
Aug 8 23:49:36 server1 postfix/smtpd[23440]: connect from unknown[127.0.0.1]
Aug 8 23:49:36 server1 postfix/smtpd[23440]: 620A6E07CC: client=unknown[127.0.0.1]
Aug 8 23:49:36 server1 postfix/cleanup[23432]: 620A6E07CC: message-id=<4f57aba6ac3dd13fe06212f4aa204ebb@bullten.network>
Aug 8 23:49:36 server1 postfix/qmgr[23356]: 620A6E07CC: from=<email@yourdomain.com>, size=1408, nrcpt=1 (queue active)
Aug 8 23:49:36 server1 postfix/smtpd[23440]: disconnect from unknown[127.0.0.1]
Aug 8 23:49:36 server1 amavis[21743]: (21743-04) Passed CLEAN {RelayedOutbound}, MYNETS LOCAL [127.0.0.1]:58264 <email@yourdomain.com> -> <test@gmail.com>, Message-ID: <4f57aba6ac3dd13fe06212f4aa204ebb@bullten.network>, mail_id: HhvnMyNkBtLg, Hits: -1.099, size: 913, queued_as: 620A6E07CC, dkim_sd=default:bullten.network, 470 ms
Aug 8 23:49:36 server1 postfix/smtp[23434]: C3301E07C4: to=<test@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.64, delays=0.11/0.05/0/0.47, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 620A6E07CC)
Aug 8 23:49:36 server1 postfix/qmgr[23356]: C3301E07C4: removed
Aug 8 23:49:36 server1 postfix/smtp[23441]: 620A6E07CC: to=<test@gmail.com>, relay=gmail-smtp-in.l.google.com[172.217.197.26]:25, delay=0.44, delays=0.01/0.05/0.27/0.11, dsn=2.0.0, status=sent (250 2.0.0 OK 1533786576 42-v6si5553573qvk.145 - gsmtp)
Aug 8 23:49:36 server1 postfix/qmgr[23356]: 620A6E07CC: removed
207
CentOS-WebPanel Bugs / [BUG] 2times DKIM Signing
« on: August 09, 2018, 03:32:51 AM »
Hello,
When you enable "AntiSpam/AntiVirus (recommended): ClamAV, Amavis & Spamassassin, Requires 1Gb+ RAM"
The mail send sign DKIM key two times. Below is log
Raw header of Gmail shows
When you enable "AntiSpam/AntiVirus (recommended): ClamAV, Amavis & Spamassassin, Requires 1Gb+ RAM"
The mail send sign DKIM key two times. Below is log
Code: [Select]
cat /var/log/maillog
Quote
Aug 8 23:20:11 server1 postfix/smtpd[22593]: connect from localhost[127.0.0.1]
Aug 8 23:20:11 server1 postfix/smtpd[22593]: 72D88E07B0: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=email@yourdomain.com
Aug 8 23:20:11 server1 postfix/cleanup[22646]: 72D88E07B0: message-id=<ef240cb8f48b4c21dd3a3605d00c966b@yourdomain.com>
Aug 8 23:20:11 server1 opendkim[21907]: 72D88E07B0: DKIM-Signature field added (s=default, d=yourdomain.com)
Aug 8 23:20:11 server1 postfix/qmgr[21897]: 72D88E07B0: from=<email@yourdomain.com>, size=589, nrcpt=1 (queue active)
Aug 8 23:20:11 server1 postfix/smtpd[22593]: disconnect from localhost[127.0.0.1]
Aug 8 23:20:12 server1 postfix/smtpd[22696]: connect from unknown[127.0.0.1]
Aug 8 23:20:12 server1 postfix/smtpd[22696]: 18D6CE07C1: client=unknown[127.0.0.1]
Aug 8 23:20:12 server1 postfix/cleanup[22646]: 18D6CE07C1: message-id=<ef240cb8f48b4c21dd3a3605d00c966b@yourdomain.com>
Aug 8 23:20:12 server1 opendkim[21907]: 18D6CE07C1: DKIM-Signature field added (s=default, d=yourdomain.com)
Aug 8 23:20:12 server1 postfix/qmgr[21897]: 18D6CE07C1: from=<email@yourdomain.com>, size=1408, nrcpt=1 (queue active)
Aug 8 23:20:12 server1 amavis[21744]: (21744-01) Passed CLEAN {RelayedOutbound}, MYNETS LOCAL [127.0.0.1]:57904 <email@yourdomain.com> -> <test@gmail.com>, Message-ID: <ef240cb8f48b4c21dd3a3605d00c966b@yourdomain.com>, mail_id: 2a-USGxJx-nW, Hits: -1.099, size: 913, queued_as: 18D6CE07C1, dkim_sd=default:yourdomain.com, 591 ms
Aug 8 23:20:12 server1 postfix/smtp[22647]: 72D88E07B0: to=<test@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.71, delays=0.09/0/0.05/0.57, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 18D6CE07C1)
Aug 8 23:20:12 server1 postfix/qmgr[21897]: 72D88E07B0: removed
Aug 8 23:20:12 server1 postfix/smtp[22657]: 18D6CE07C1: to=<test@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.205.26]:25, delay=0.79, delays=0.05/0/0.56/0.18, dsn=2.0.0, status=sent (250 2.0.0 OK 1533784812 i3-v6si672583qkf.13 - gsmtp)
Aug 8 23:20:12 server1 postfix/qmgr[21897]: 18D6CE07C1: removed
Raw header of Gmail shows
208
CentOS-WebPanel Bugs / [BUG] RoundCube Failed Login After Upgrade
« on: August 09, 2018, 03:17:46 AM »
Hello,
The older version of roundcube was using table alias but newer version doesnt have that table. If anyone upgraded from older version to newer version may end up failing to login into roundcube with the error below.
The resolution to it is
Dropping the table 'alias' under 'roundcube --> users'
The older version of roundcube was using table alias but newer version doesnt have that table. If anyone upgraded from older version to newer version may end up failing to login into roundcube with the error below.
Code: [Select]
tail -f /usr/local/cwpsrv/var/services/roundcube/logs/errors
Quote
[09-Aug-2018 02:56:32 +0000]: <janbsfca> DB Error: [1364] Field 'alias' doesn't have a default value (SQL Query: INSERT INTO `users` (`created`, `last_login`, `username`, `mail_host`, `language`) VALUES (now(), now(), 'email@domain.com', 'localhost', 'en_US')) in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_db.php on line 539 (POST /roundcube/?_task=login&_action=login)
[09-Aug-2018 02:56:32 +0000]: <janbsfca> PHP Error: Failed to create new user in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_user.php on line 684 (POST /roundcube/?_task=login&_action=login)
[09-Aug-2018 02:56:32 +0000]: <janbsfca> PHP Error: Failed to create a user record. Maybe aborted by a plugin? in /usr/local/cwpsrv/var/services/roundcube/program/include/rcmail.php on line 641 (POST /roundcube/?_task=login&_action=login)
The resolution to it is
Dropping the table 'alias' under 'roundcube --> users'
209
SSL / Re: [BUG] AutoSSL Centos 6
« on: August 09, 2018, 12:19:39 AM »
Certificate is valid for www and non www but it will only reissue if www is used.
210
PHP Selector / Re: Add modules with PHP selector
« on: August 08, 2018, 02:07:49 AM »
Like if you have php5.6 as your alternate php version. The paths are as below.
So to install redis to it, i will do
Now enable its module in your phpini
Check if module is loaded
Your can replace php56 with the version you have installed. Like if you have 7.1 use php71. So in that case path of your files will be
Code: [Select]
/opt/alt/php56/usr/bin/php
/opt/alt/php56/usr/bin/pecl
/opt/alt/php56/usr/bin/php-config
/opt/alt/php56/usr/bin/phpize
/opt/alt/php56/usr/php/php.ini
So to install redis to it, i will do
Code: [Select]
/opt/alt/php56/usr/bin/pecl install redis
Now enable its module in your phpini
Code: [Select]
echo "extension=redis.so" >> /opt/alt/php56/usr/php/php.ini
Check if module is loaded
Code: [Select]
[root@cwp7 ~]# /opt/alt/php56/usr/bin/php -i | grep redis
redis
Registered save handlers => files user redis rediscluster
This program is free software; you can redistribute it and/or modify
Your can replace php56 with the version you have installed. Like if you have 7.1 use php71. So in that case path of your files will be
Code: [Select]
/opt/alt/php71/usr/bin/php
/opt/alt/php71/usr/bin/pecl
/opt/alt/php71/usr/bin/php-config
/opt/alt/php71/usr/bin/phpize
/opt/alt/php71/usr/php/php.ini