When the “/usr/bin/rm: arg list too long” error occurs while deleting many files
You can delete them with the command below.
find . | xargs -n 1000 rm -f
When the “/usr/bin/rm: arg list too long” error occurs while deleting many files
You can delete them with the command below.
find . | xargs -n 1000 rm -f
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…
When modifying a WordPress theme, you can leave the original untouched and make changes to a backed-up copy of its files (called a child theme). To easily identify the child theme you are using, combine the theme name and create…
To convert the existing DB from euc-kr to utf8, after carefully (??) backing it up, I opened it in editplus, and it says it contains characters that may be lost in the current encoding, I ignored it, changed it to…
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…
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://{아이디}:{패스워드}@{아이피}:{포트}…
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’]; ?>