Posts

Showing posts from April, 2023

cyberpanel php 8.1 php extension

Image
Your best option to get php 8.1 working is to compile it. My example uses Centos 7 Cyberpanel has php 8.0 and php 8.1 but some extensions are missing and cannot be installe. You first have to update this file: /usr/local/lsws/admin/html/lib/util/build_php/BuildConfig.php You want to do 2 things. My example is using the latest version of php 8.1 but you can always add more versions as they come out Add php 8.1.9 to the list of PHP_VERSION Update LSAPI to the latest version which supports php 8 case self::LSAPI_VERSION: return ‘8.0.1’; Next you want to go to ( https://example.com:7080/index.php#view/compilePHP.php  34 ) From here select php 8.1.9 and click next Set install path to: /usr/local/lsws/lsphp81 so it will replace the current php 8.1 Set Configure Parameters *. I used the following: –with-mysqli --with-zlib --enable-gd --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbstring --with-iconv --with-pdo-mysql --enable-ftp --with-zip --with-curl --enable-so

woocomeerce plugin Uncaught RuntimeException: Error saving action: Duplicate entry '0' for key 'PRIMARY'

 2023-04-28 15:48:45.639391 [NOTICE] [3001088] [162.158.111.228:57126:HTTP2-1#cloudcertification.io] [STDERR] PHP Fatal error:  Uncaught RuntimeException: Error saving action: Duplicate entry '0' for key 'PRIMARY' in /home/cloudcertification.io/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:118 wp_actionscheduler_actions ALTER TABLE wp_actionscheduler_actions CHANGE action_id action_id  BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT; Thank you for letting us know that this database error was caused by the  wp_actionscheduler_actions  database table having the action_id set as primary ID and missing the auto-increment. For other folks out there facing the same database error – the database can be accessed via a plugin like phpMyAdmin but please note that it is very easy to bring the whole site down when working on a database directly. So in such case, I’d suggest making sure you have a recent site backup

Emails are blocked with the notification VIRUS (Heuristics.Encrypted.PDF)

  Resolution This is because encrypted archives are rejected by default. To unblock it via the admin console, go to:  Configure > Global Settings > AS/AV > Antivirus Settings and un-check 'Block encrypted archives.'

To disable all devices from waking your computer using a PowerShell command on a Windows computer

  To disable all devices from waking your computer using a PowerShell command on a Windows computer   1 , you can use the   powercfg   command with the   /devicedisablewake   option. Here's how: Open PowerShell as an administrator. Type the command  powercfg /devicequery wake_armed  and press Enter to get a list of devices that can wake up your computer. For each device listed, type the command  powercfg /devicedisablewake "[device name]"  and press Enter, replacing "[device name]" with the actual name of the device. This will disable the device from waking up your computer. If you want to disable all devices at once, you can use the  ForEach  statement in PowerShell to loop through all devices and disable wake-up for each one. Here's an example: Get-WmiObject -Class Win32_PnPEntity | Where-Object { $_.ConfigManagerErrorCode -eq 0 } | ForEach-Object { $name = $_.Name; powercfg /devicedisablewake "$name" }

directadmin taskq

dataskq  Task queue processor  tail -f /var/log/directadmin/errortaskq.log 2023:04:14-11:50:57: dataskq:clearOldLoginAttempts: error removing ./data/admin/ip_access/219.91.251.164 as euid=101: cannot fstatat ./data/admin/ip_access/219.91.251.164/unauthorized_connections: Permission denied<br> Unable to remove ./data/admin/ip_access/219.91.251.164: Directory not empty<br> /usr/local/directadmin/data/admin/ip_access

zimbra share migration

Image
 copy mta settings change spf records and mail A record for trinity change spf txt  from this  add outgoing in antispam also add ssl in zimbra check timezone in zimbra set to IST spf record v=spf1 a mx ip4:192.227.106.139 include:spf.antispamcloud.com -all to v=spf1 a mx ip4:192.227.106.139 ip4:192.227.108.96  include:spf.antispamcloud.com -all change mail A record change mail.trinityengineers.com to 192.227.108.96  change destination in antispam  copy mta settings configure > global settings > MTA mta trusted network 127.0.0.0/8 [::1]/128 192.227.106.128/25 192.168.122.0/24 192.227.106.139/32 192.227.106.0/24 192.227.0.0/16 63.141.245.10 192.227.85.199 replaced old ip 192.227.106.139 to 192.227.108.96 127.0.0.0/8 [::1]/128 192.227.106.128/25 192.168.122.0/24 192.227.108.96/32 192.227.106.0/24 192.227.0.0/16 63.141.245.10 192.227.85.199 also added relay MTA change timezone in zimbra Changing the Time Zone in Linux Before changing the time zone, you’ll need to find out the long na

awstats in cyberpanel

Image
 cp /etc/awstats/awstats.conf /etc/awstats/awstats.example.com.conf cp /etc/awstats/awstats.conf /etc/awstats/awstats.fastdl.cc.conf LogFile="/home/fastdl.cc/logs/fastdl.cc.access_log" SiteDomain="fastdl.cc" HostAliases="www.fastdl.cc localhost 127.0.0.1" AllowToUpdateStatsFromBrowser=1 /usr/lib/cgi-bin/awstats.pl -config=fastdl.cc -update ln -sf /usr/lib/cgi-bin /var/www/html/cgi-bin ln -sf /usr/share/awstats/icon/* /var/www/html/awstats-icon ln -sf /usr/lib/cgi-bin /home/fastdl.cc/public_html/cgi-bin ln -sf /usr/share/awstats/icon/* /home/fastdl.cc/public_html/awstats-icon http://your-server-ip/cgi-bin/awstats.pl?config=example.com http://fastdl.cc/cgi-bin/awstats.pl?config=fastdl.cc chmod 777 -R /var/lib/awstats crontab -e */30 * * * * root /usr/lib/cgi-bin/awstats.pl -config = fastdl.cc -update Install AWStats For Ubuntu/Debian: apt install awstats -y Copy For CentOS8: dnf install epel-release dnf install awstats Copy Set up AWStats Config You will

How to stop a currently running cron job?

 just comment the cronjob by # then If you are using Redhat (RHEL)/Fedora Core/Cent OS Linux use the following command : $ sudo systemctl status crond If you are using Debian or Ubuntu Linux the following command : $ sudo systemctl status cron