- Make sure mysql-client is installed. If not, then :
sudo apt install mysql-client
or
sudo apt-get install mysql-client
- Open php.ini
; PHP's default character set is set to UTF-8.
// ------------------------------------------------------------------------------------------------------------------// | |
// vWorkApp Core Library | |
// ------------------------------------------------------------------------------------------------------------------// | |
var vWorkAppScript = vWorkAppScript || {}; | |
vWorkAppScript.host = "api.vworkapp.com"; | |
vWorkAppScript.apiToken = "PUT YOUR API KEY HERE" | |
(function() { |
/** | |
* Create a Symfony response for the given exception. | |
* | |
* @param \Exception $e | |
* @return mixed | |
*/ | |
protected function convertExceptionToResponse(Exception $e) | |
{ | |
if (config('app.debug')) { | |
$whoops = new \Whoops\Run; |
sudo apt install mysql-client
or
sudo apt-get install mysql-client
; PHP's default character set is set to UTF-8.
{ | |
"preset": "psr12", | |
"rules": { | |
"align_multiline_comment": true, | |
"array_indentation": true, | |
"array_syntax": true, | |
"blank_line_after_namespace": true, | |
"blank_line_after_opening_tag": true, | |
"combine_consecutive_issets": true, | |
"combine_consecutive_unsets": true, |
<?php | |
class Common | |
{ | |
/*--------------------- $_GET & $_POST ----------------- START */ | |
/** | |
* Get $_GET content, array or array item in filtered way | |
* | |
* @param object $parameter could be array or array item |
# Use with EXTREME CAUTION | |
DELETE FROM wp_users WHERE ID IN ( SELECT user_id FROM wp_usermeta | |
WHERE meta_key = 'wp_capabilities' AND meta_value LIKE '%subscriber%' | |
AND user_id NOT IN ( SELECT user_id FROM wp_usermeta | |
WHERE meta_key = 'billing_first_name' AND meta_value != '' | |
AND user_id IN ( SELECT user_id FROM wp_usermeta | |
WHERE meta_key = 'wp_capabilities' AND meta_value LIKE '%subscriber%' ) ) ) | |
DELETE FROM wp_usermeta WHERE user_id IN ( SELECT user_id FROM wp_usermeta |
#!/bin/bash | |
# ------------------------------------------------- | |
# Make site directory | |
# Download WP and install WP to site directory | |
# Set WP configuration | |
# Configure NGINX for new domain-name | |
# ------------------------------------------------- | |
# apt-get update |