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

Pages: [1]
1
Postfix / Re: how to stop spam
« on: April 13, 2022, 12:51:31 AM »
[root@host postfix]# maldet -a /home/
Linux Malware Detect v1.6.4
            (C) 2002-2019, R-fx Networks <proj@rfxn.com>
            (C) 2019, Ryan MacDonald <ryan@rfxn.com>
This program may be freely redistributed under the terms of the GNU GPL v2

maldet(8357): {scan} signatures loaded: 17272 (14450 MD5 | 2039 HEX | 783 YARA | 0 USER)
maldet(8357): {scan} building file list for /home/, this might take awhile...
maldet(8357): {scan} setting nice scheduler priorities for all operations: cpunice 19 , ionice 6
maldet(8357): {scan} file list completed in 1s, found 16368 files...
maldet(8357): {scan} found clamav binary at /usr/bin/clamscan, using clamav scanner engine...
maldet(8357): {scan} scan of /home/ (16368 files) in progress...

maldet(8357): {scan} scan completed on /home/: files 16368, malware hits 0, cleaned hits 0, time 101s
maldet(8357): {scan} scan report saved, to view run: maldet --report 220413-0247.8357

-------------
last email use php from 1 month



2
Postfix / Re: how to stop spam
« on: April 12, 2022, 11:35:59 PM »
i dont have PHP script i delete all file

i change port 25 to 26
i apply this post now  https://forum.centos-webpanel.com/how-to/how-to-setup-thunderbird-and-outlook-mail-client-setup/

do you think this post will help me ?

3
Postfix / how to stop spam
« on: April 12, 2022, 11:08:03 PM »

i have big problem i cant stop spam email

in this photo i dont have email on server and i dont have how this email sending



how to stop it ?



4
SSL / how to add ssl to virtual subdomain
« on: July 12, 2020, 08:47:22 PM »
i go to
 WebServers Configuration Editor
    Apache
            /usr/local/apache/conf.d/vhosts/  Add New Conf File

so i add subdoamin and work 100%

i need it work with ssl so i go to security - > Generate CSR macke sub domain

and add in  /usr/local/apache/conf.d/vhosts/


apache fail to start and show this

Jul 12 11:47:37 host systemd: Failed to start Web server Apache.
Jul 12 11:47:37 host systemd: Unit httpd.service entered failed state.
Jul 12 11:47:37 host systemd: httpd.service failed.
Jul 12 11:47:38 host kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:2f:24:89:d2:74:7f:6e:37:e3:08:00 SRC=185.151.243.185 DST=116.203.216.185 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=30662 PROTO=TCP SPT=57611 DPT=3389 WINDOW=1024 RES=0x00 SYN URGP=0
Jul 12 11:47:39 host dhclient[1025]: DHCPREQUEST on eth0 to 172.31.1.1 port 67 (xid=0xa758bb3)
Jul 12 11:47:39 host dhclient[1025]: send_packet: Operation not permitted
Jul 12 11:47:39 host kernel: Firewall: *UDP_OUT Blocked* IN= OUT=eth0 SRC=116.203.216.185 DST=172.31.1.1 LEN=328 TOS=0x00 PREC=0x00 TTL=64 ID=20438 DF PROTO=UDP SPT=68 DPT=67 LEN=308 UID=0 GID=0
Jul 12 11:47:39 host dhclient[1025]: dhclient.c:2717: Failed to send 300 byte long packet over fallback interface.
Jul 12 11:47:51 host dhclient[1025]: DHCPREQUEST on eth0 to 172.31.1.1 port 67 (xid=0xa758bb3)
Jul 12 11:47:51 host dhclient[1025]: send_packet: Operation not permitted
Jul 12 11:47:51 host dhclient[1025]: dhclient.c:2717: Failed to send 300 byte long packet over fallback interface.
Jul 12 11:47:51 host kernel: Firewall: *UDP_OUT Blocked* IN= OUT=eth0 SRC=116.203.216.185 DST=172.31.1.1 LEN=328 TOS=0x00 PREC=0x00 TTL=64 ID=26011 DF PROTO=UDP SPT=68 DPT=67 LEN=308 UID=0 GID=0
Jul 12 11:48:05 host kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:2f:24:89:d2:74:7f:6e:37:e3:08:00 SRC=192.241.235.68 DST=116.203.216.185 LEN=40 TOS=0x00 PREC=0x00 TTL=235 ID=54321 PROTO=TCP SPT=42508 DPT=7574 WINDOW=65535 RES=0x00 SYN URGP=0
Jul 12 11:48:09 host dhclient[1025]: DHCPREQUEST on eth0 to 172.31.1.1 port 67 (xid=0xa758bb3)
Jul 12 11:48:09 host dhclient[1025]: send_packet: Operation not permitted
Jul 12 11:48:09 host kernel: Firewall: *UDP_OUT Blocked* IN= OUT=eth0 SRC=116.203.216.185 DST=172.31.1.1 LEN=328 TOS=0x00 PREC=0x00 TTL=64 ID=37685 DF PROTO=UDP SPT=68 DPT=67 LEN=308 UID=0 GID=0
Jul 12 11:48:09 host dhclient[1025]: dhclient.c:2717: Failed to send 300 byte long packet over fallback interface.

---------------------------------

-
-- Unit httpd.service has begun shutting down.
Jul 12 11:47:27 host.xpredo.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:2f:24:89:d2:74:7f:6e:37:e3:08:00 SRC=3.0.207.224 DST=116.203.216.185 LEN=60 TOS=0x00 PREC=0x00 TTL=234 ID=3585 DF PROTO=TCP SPT=58068 DPT=30303 WINDOW=26883 RES=0x00 SYN URGP=0
Jul 12 11:47:27 host.xpredo.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:2f:24:89:d2:74:7f:6e:37:e3:08:00 SRC=3.0.207.224 DST=116.203.216.185 LEN=60 TOS=0x00 PREC=0x00 TTL=230 ID=47695 DF PROTO=TCP SPT=58066 DPT=30303 WINDOW=26883 RES=0x00 SYN URGP=0
Jul 12 11:47:27 host.xpredo.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:2f:24:89:d2:74:7f:6e:37:e3:08:00 SRC=94.102.51.58 DST=116.203.216.185 LEN=40 TOS=0x00 PREC=0x00 TTL=247 ID=51334 PROTO=TCP SPT=43422 DPT=7199 WINDOW=1024 RES=0x00 SYN URGP=0
Jul 12 11:47:28 host.xpredo.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:2f:24:89:d2:74:7f:6e:37:e3:08:00 SRC=3.0.207.224 DST=116.203.216.185 LEN=60 TOS=0x00 PREC=0x00 TTL=234 ID=3586 DF PROTO=TCP SPT=58068 DPT=30303 WINDOW=26883 RES=0x00 SYN URGP=0
Jul 12 11:47:28 host.xpredo.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:2f:24:89:d2:74:7f:6e:37:e3:08:00 SRC=3.0.207.224 DST=116.203.216.185 LEN=60 TOS=0x00 PREC=0x00 TTL=230 ID=47696 DF PROTO=TCP SPT=58066 DPT=30303 WINDOW=26883 RES=0x00 SYN URGP=0
Jul 12 11:47:28 host.xpredo.com dhclient[1025]: DHCPREQUEST on eth0 to 172.31.1.1 port 67 (xid=0xa758bb3)
Jul 12 11:47:28 host.xpredo.com dhclient[1025]: send_packet: Operation not permitted
Jul 12 11:47:28 host.xpredo.com kernel: Firewall: *UDP_OUT Blocked* IN= OUT=eth0 SRC=116.203.216.185 DST=172.31.1.1 LEN=328 TOS=0x00 PREC=0x00 TTL=64 ID=18980 DF PROTO=UDP SPT=68 DPT=67 LEN=308 UID=0 GID=0
Jul 12 11:47:28 host.xpredo.com dhclient[1025]: dhclient.c:2717: Failed to send 300 byte long packet over fallback interface.
Jul 12 11:47:30 host.xpredo.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:2f:24:89:d2:74:7f:6e:37:e3:08:00 SRC=3.0.207.224 DST=116.203.216.185 LEN=60 TOS=0x00 PREC=0x00 TTL=230 ID=47697 DF PROTO=TCP SPT=58066 DPT=30303 WINDOW=26883 RES=0x00 SYN URGP=0
Jul 12 11:47:31 host.xpredo.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:2f:24:89:d2:74:7f:6e:37:e3:08:00 SRC=194.26.29.135 DST=116.203.216.185 LEN=40 TOS=0x00 PREC=0x00 TTL=241 ID=12904 PROTO=TCP SPT=51722 DPT=19207 WINDOW=1024 RES=0x00 SYN URGP=0
Jul 12 11:47:37 host.xpredo.com systemd[1]: Stopped Web server Apache.
-- Subject: Unit httpd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has finished shutting down.
Jul 12 11:47:37 host.xpredo.com systemd[1]: Starting Web server Apache...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Jul 12 11:47:37 host.xpredo.com systemd[1]: httpd.service: control process exited, code=exited status=1
Jul 12 11:47:37 host.xpredo.com systemd[1]: Failed to start Web server Apache.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Jul 12 11:47:37 host.xpredo.com systemd[1]: Unit httpd.service entered failed state.
Jul 12 11:47:37 host.xpredo.com systemd[1]: httpd.service failed.
Jul 12 11:47:38 host.xpredo.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=96:00:00:2f:24:89:d2:74:7f:6e:37:e3:08:00 SRC=185.151.243.185 DST=116.203.216.185 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=30662 PROTO=TCP SPT=57611 DPT=3389 WINDOW=1024 RES=0x00 SYN URGP=0
×






   

5
Backup / Re: Move backup to new partition
« on: October 07, 2019, 11:38:06 PM »
++ how to move cwp backup location to second hard ?

6
PHP Selector / Re: PHP-FPM Not Working (503 Service Unavailable)
« on: October 07, 2019, 10:49:02 AM »
i have same error

7
Updates / Re: Update MariaDB >= 10.2
« on: September 05, 2019, 07:49:21 AM »
CentOS have not that version for MariaDB.
'yum update' install the latest version, that is 10.1.36, for CentOS 7.
(what is your CentOS version?)

But nothing can stop you from install it from sources.
Or install rpms from RHEL7, that possibly will work too.
At yout risk.

RHEL7 have the '10.2.8-5.el7.x86_64.rpm' version available.

Regards,
Netino

First of all MariaDB has it's own repository and is not provided by base CentOS repository.

Quote
yum whatprovides mariadb
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * epel: mirror1.ku.ac.th
 * extras: ftp.iitm.ac.in
 * updates: ftp.iitm.ac.in
MariaDB-client-10.1.36-1.el7.centos.x86_64 : MariaDB: a very fast and robust SQL database server
Repo        : mariadb
Matched from:
Provides    : mariadb = 1:10.1.36-1.el7.centos


Below is its repository location.

Quote
cat /etc/yum.repos.d/mariadb.repo

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

This will show you what version of MariaDB is installed. So in our case its 10.1

Quote
rpm -qa | grep -i '^mariadb-'

MariaDB-shared-10.1.36-1.el7.centos.x86_64
MariaDB-compat-10.1.36-1.el7.centos.x86_64
MariaDB-common-10.1.36-1.el7.centos.x86_64
MariaDB-server-10.1.36-1.el7.centos.x86_64
MariaDB-client-10.1.36-1.el7.centos.x86_64

Now if I want to upgrade this I will modify mariadb.repo file and change 10.1 to 10.2

Quote
vi /etc/yum.repos.d/mariadb.repo

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

First I will make full backup of my database if something goes wrong

Code: [Select]
mysqldump --all-databases > /home/fullbackup.sql.gz
Simply go ahead and remove these packages

Code: [Select]
yum remove MariaDB-server MariaDB-client -y
Now install the new latest packages again for version 10.2.

Code: [Select]
yum install MariaDB-server MariaDB-client -y
You can change 10.1 to 10.3 MariaDB repository "/etc/yum.repos.d/mariadb.repo" in if you wish to use that version.

Verify the packages again

Quote
[root@localhost ~]# rpm -qa | grep -i '^mariadb-'
MariaDB-shared-10.2.18-1.el7.centos.x86_64
MariaDB-server-10.2.18-1.el7.centos.x86_64
MariaDB-compat-10.2.18-1.el7.centos.x86_64
MariaDB-common-10.2.18-1.el7.centos.x86_64
MariaDB-client-10.2.18-1.el7.centos.x86_64

Start Mariadb

Code: [Select]
systemctl start mariadb
Upgrade MySQL database for compatibility

Code: [Select]
mysql_upgrade

this stop mysql start and reformat myserver from zero

8
Updates / Re: Pre-Update ChangeLog... CWP
« on: September 02, 2019, 07:58:52 PM »
+1 for this change log view..

9
how to increase username length in database , userdatabase and usercreate cwp ?
from
7 (8)
 to
 (15)  16

10
i solve phpmyadmin by chnge name pmaXXXXXX to /pma/
phpmyadmin location
/usr/local/cwpsrv/var/services/pma/

i think you can change all services name in path /usr/local/cwpsrv/var/services/
just remove XXXX to realname



11
phpMyAdmin not found 404 after update

Pages: [1]