- Go to Settings.
Click Custom domains.
Click Start setup.
Use a domain you own that is registered elsewhere
Click Use a domain from a third party.
Click Next.
Enter your domain. - If you are prompted to verify ownership, skip the remaining steps in this section and follow the instructions later in this page. Then try again.
- Click Next.
Follow the on-screen instructions to connect to a third-party domain registrar.
These steps may be different depending on your registrar. For more help, go to your domain registrar’s help resources.
Click Done.
Centos 7 with DirectAdmin installation checklist
Install the following prerequisite
Step One
- Run yum update command
yum update
- Run wget update command
yum install wget
Step Two
- For CentOS 7
yum install psmisc net-tools systemd-devel libdb-devel perl-DBI
- For CentOS 6
wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 cyrus-sasl-devel perl-ExtUtils-Embed autoconf automake libtool which patch mailx db4-devel
DirectAdmin Installation
- Disable SELinux. Disable the firewall.
setenforce 0
- Download DirectAdmin installation script.
wget http://www.directadmin.com/setup.sh
- Change the downloaded setup file permission
chmod 755 setup.sh
- Now run the installation script.
./setup.sh
- Enter your License Key. Installation Completed. Login to DirectAdmin
http://serverip:2222
For more Configuration: [Visit]
WordPress htaccess
Basic WP
# BEGIN WordPress RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
Can’t Login or register OJS 3
- No error message or warning occurs
- Cannot regenerate session id – session is not active in /lib/pkp/classes/session/SessionManager.inc.php on line 247, referer: …
Just turned off the session IP Check in config.inc.php file will solve the issue.
session_check_ip = Off
Postfix Mail Queue
Postfix Mail Queue Management
To view the number of emails in the Postfix mail queue
mailq
Postfix delete mail queue: postsuper command
To delete all emails in the queue
postsuper -d ALL
To remove all mails in the deferred queue
postsuper -d ALL deferred
To remove a particular mail from the queue
postsuper -d mail_id
To remove messages from a particular domain.
mailq | grep xdomain.com | awk {'print $1'} | xargs -I{} postsuper -d {}
To remove all mails from a particular mail id
mailq | tail +2 | awk 'BEGIN { RS = "" } / testmail@xdomain\.com$/ { print $1 }' | tr -d '*!' | postsuper -d -
To remove all mails which have testmail@xdomain.com in the entire mail.
for id in `postqueue -p|grep '^[A-Z0-9]'|cut -f1 -d' '|sed 's/*//g'`; do postcat -q $id | grep testmail@domain.com && postsuper -d $id; done
To remove all mails which have a particular pattern like “.de”
for id in `postqueue -p|grep '^[A-Z0-9]'|cut -f1 -d' '|sed 's/*//g'`; do postcat -q $id | grep “.de” && postsuper -d $id; done
Postfix queue structure
/var/spool/postfix/maildrop /var/spool/postfix/hold /var/spool/postfix/incoming /var/spool/postfix/active /var/spool/postfix/deferred /var/spool/postfix/corrupt
Display the list of Queued mails , deferred mails, and Pending mails
postqueue -p
To Display the mail header and contents
postcat -q “Queue ID”
To check the total number of mails in the queue
postqueue -p | grep -c "^[A-Z0-9]"
To attempt to send one particular mail
postqueue -i “Queue ID”
Force mails on Postfix
To reattempt delivery of all mails in the queue
postqueue -f
- « Previous Page
- 1
- …
- 28
- 29
- 30
- 31
- 32
- …
- 91
- Next Page »