Posts

Showing posts from June, 2024

api.krishit.com

 [Mon Jun 17 19:01:17.310887 2024] [proxy:error] [pid 993] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed [Mon Jun 17 19:01:17.310973 2024] [proxy_http:error] [pid 993] [client 59.144.167.12:60358] AH01114: HTTP: failed to make connection to backend: localhost [Mon Jun 17 19:01:17.311067 2024] [proxy:error] [pid 993] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed [Mon Jun 17 19:01:17.311102 2024] [proxy_http:error] [pid 993] [client 59.144.167.12:60358] AH01114: HTTP: failed to make connection to backend: localhost [Mon Jun 17 19:01:17.715945 2024] [proxy:error] [pid 1997] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed [Mon Jun 17 19:01:17.719780 2024] [proxy_http:error] [pid 1997] [client 59.144.167.12:60359] AH01114: HTTP: failed to make connection to backend: localhost, referer: https://api.krishit.com/ [Mon Jun 17 19:01:17.720097 2024] [

cyberpanel 403 access denied

 change php version once resolved

rsync: connection unexpectedly closed

 check weather the sync is running on the server root@server1:~# systemctl status rsync ○ rsync.service - fast remote file copy program daemon      Loaded: loaded (/usr/lib/systemd/system/rsync.service; enabled; preset: enabled)      Active: inactive (dead) was getting error root@server1:~# systemctl status rsync ○ rsync.service - fast remote file copy program daemon      Loaded: loaded (/usr/lib/systemd/system/rsync.service; enabled; preset: enabled)      Active: inactive (dead)   Condition: start condition unmet at Sat 2024-06-15 04:27:31 CEST; 2min 5s ago              └─ ConditionPathExists=/etc/rsyncd.conf was not met        Docs: man:rsync(1)              man:rsyncd.conf(5) Jun 14 18:36:28 server1.cloudwebhost.ing systemd[1]: rsync.service - fast remote file copy program daemon was skipped because of an unmet condition check (ConditionPathExists=/etc/rsyncd.conf). Jun 15 04:26:33 server1.cloudwebhost.ing systemd[1]: rsync.service - fast remote file copy program daemon was skipped

Logs Cleaner for CyberPanel

  I recently had a serious problem with the logs, the switchLSWSStatus file weighed over 700GB. Therefore I decided to share my script with you to always keep the server logs clean. FOLLOW MY GUIDE sudo - i cd /root/ nano logscleaner.sh Paste this code: #!/bin/bash # Software Logs Cleaner v1.0alpha, use only for test # Powered by Nicholas Sciortino # clear all logs of CP rm -rf /usr/local/lsws/logs/* # clear OpenLiteSpeed cache folder rm -rf /usr/local/lsws/cachedata # remove old CyberPanel versions rm -rf /usr/local/*.tar.gz # clear other logs rm -f /home/cyberpanel/switchLSWSStatus rm -f /home/cyberpanel/stderr.log rm -f /home/cyberpanel/error-logs.txt After you have to give permissions to the executable file chmod +x logscleaner.sh Now you can run it manually with the command, after you have cleared all logs and freed up a lot of memory ^^ sh logscleaner.sh We can also automate cleanup using a cron crontab -e At the end of the file add 0 0 * * 0 sh /root/logscle

disable PHPMailer ( Biggest Spammer point )

  PHPMailer ( Biggest Spammer point ) How to disable PHPMailer sending functionality if email not authenticated like if no correct inbox, user name and password, No email will go out of server ? In my honest opinion, if your users are spamming using mail() function, its time to suspend them unless your sites are hacked and hackers are using the function to send out spam emails. But if you want to disable users from using mail(), you can do the following. To simply disable mail() function in php you can edit your php.ini, then add the following line/ find the line: Go to: /usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.ini add this in last disabled_functions = mail You can do it for the global php.ini and it should be disabled for your users. Just head to  https://host.example.com:8090/managephp/editPHPConfigs  5  and edit the advanced php config there. Please confirm the last query, after this, user able to use SMTP with authentication to send mails if required in the application. Ab