python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
DirecAdmin custom script | Insert sample database from url
Custom Bash Script in DA:
/directadmin/scripts/custom/domain_create_post.sh
Below code:
SET UP DATABASE VARIABLES
dbpass=$(openssl rand -base64 12) > /dev/null
ext=$(openssl rand -hex 2) > /dev...

TOM ARM
Votes: 0
Answers: 1
DirectAdmin API - issue with show user config
<?php
include '../protocol/httpsocket.php';
$sock = new HTTPSocket;
$sock->connect('localhost',2222);
$sock->set_login('admin','admin_password');
$show_user='user5';
$sock->query('/CM...
Tom Arm
Votes: 0
Answers: 1
Create and import database from url
I've script in directadmin which create new clean database:
#Create DB
/usr/bin/mysqladmin -uda_admin -p$(cat /usr/local/directadmin/conf/mysql.conf | grep pass | cut -d\= -f2 ) create ${wpconfigdbu...
Tom Arm
Votes: 0
Answers: 1
PHP break script of option disable
In DirectAdmin I have the option:
This option variable name:installwp
When option is selected then below script is running:
#check custom pkg item installwp
if [[ $installwp == 'OFF' ]]; then
ex...
Tom Arm
Votes: 0
Answers: 0