Here’s how to empty logs that have grown large.
cat /dev/null > 로그파일명
For reference, here’s how to find files by size.
find ./* -size +파일크기
Here’s how to empty logs that have grown large.
cat /dev/null > 로그파일명
For reference, here’s how to find files by size.
find ./* -size +파일크기
How to Use procedure RegistryMonitor(RootKey: HKEY; Key: string; Proc: TProc; WatchSub: boolean); begin TThread.CreateAnonymousThread(procedure var Reg: TRegistry; Event: cardinal; begin Reg := TRegistry.Create; Reg.RootKey := RootKey; if Reg.OpenKeyReadOnly(Key) then begin Event := CreateEvent(nil, False, False, nil); if Event > 0…
When using an Amazon server, retrieving the server IP returns the private IP address. So I made this to get the public IP address. <? if(in_array(substr($_SERVER[‘SERVER_ADDR’], 0, 3), array(‘172’))) if(strrpos(gethostname(), ‘.compute.internal’)!==false) $_SERVER[‘SERVER_ADDR’] = file_get_contents(‘http://169.254.169.254/latest/meta-data/public-ipv4’); echo $_SERVER[‘SERVER_ADDR’]; ?>
How to Use Launch the program. Click the File button, enter the commands as shown below, and save the file. (If you have multiple accounts, repeat these steps.) [php] # Connect to the account to create the backup files. ssh://{아이디}:{패스워드}@{아이피}:{포트}…
A plugin created to easily find backdoors (PHP) secretly installed to hack servers. It finds files containing functions that can be exploited in PHP and notifies you by email. You can easily install and use it with WordPress and…
1. Download and install from https://golang.org/dl/ 2. Create a working folder (e.g., d:\source\Go) 3. Create bin, pkg, and src folders inside it 4. Windows Control Panel -> System -> Advanced system settings -> Environment Variables 5. In the User variables…
Check after server installation short_open_tag = On Allows you to use “<?php” and “<?”. display_errors = On Displays the error message when an error occurs while running a PHP script. (When set to off, an HTTP 500 Internal Server Error…