Dev {Tricks}

  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting
You are here: Home / Home

November 10, 2019 by dev Leave a Comment

How to install and setup DirectAdmin on CentOS 8 VPS.

DirectAdmin is one of the best alternatives of cPanel control panel due to its user friendly interface.

This article will show you how to install DirectAdmin on CentOS VPS. Please check DirectAdmin installation requirements first.

Easy steps of DirectAdmin (DA) installation for success are as follows:
Make sure your domain is running with the IP address (nameservers) before installation.

Step One

Login to your VPS root using SSH or KVM.

Step Two

Disable SELinux. This will disable the firewall.

setenforce 0
sed -i ‘s/enforcing/disabled/g’ /etc/selinux/config

Step Three

Run the pre-install commands before starting the install

yum install 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 bzip2-devel lsof glibc-headers kernel-devel expat-devel \
psmisc net-tools systemd-devel libdb-devel perl-DBI perl-libwww-perl xfsprogs rsyslog logrotate crontabs file kernel-headers

This will ask you to confirm. Write “Y” and press enter.

Step Four

Download the DirectAdmin setup.sh file.

wget https://www.directadmin.com/setup.sh

Step Five

Change permissions of the downloaded setup.sh file to 755

chmod 755 setup.sh

Step Six

Run the script. It automatically installs everything for you, including the CSF firewall.

./setup.sh auto

The auto method will be best for most people. It can also be called as ‘./setup.sh’ without “auto” options, which requires input but allows for customization.

Important: The hostname must be a sub-domain without http, www. For example, server.hostbriz.com

System Security Tips

Follow this link https://help.directadmin.com/item.php?id=247

Enable SELinux

To enable SELinux, follow the instructions below ,

  1. Open the file /etc/selinux/config (You may use winSCP)
  2. Change option SELINUX from disabled to enforcing
  3. Restart the machine
  4. That’s all!

 

 

 

 

 

 

 

 

 

Filed Under: DirectAdmin, How to, Server and Hosting Tagged With: directacdmin installation, DirectAdmin, enable selinux, selinux

November 5, 2019 by dev Leave a Comment

How to add domains to whmcs without registration

To add a domain without a product and bill and without registration or transfer, follow the steps below:

  1. Go to Client Summary page, click the “Add New Order” link in the “Products/Services” panel
  2. Set order status “Active”
  3. Uncheck “Order Confirmation” “Generate Invoice” “Send Email”
  4. Leave “Product/Service” as it is (if you don’t want to add hosting)
  5. Set Registration Type “Registration” from radio button.
  6. Enter the domain name you want to add.
  7. Then click on “Submit Order”.
  8. After that, go to the domain tab of the client and edit domain registration and expiry information manually.

Filed Under: WHMCS

October 30, 2019 by dev Leave a Comment

Popup once per visitor until clear cache/cookies

HTML: Add the following markup to the page where you want to show Popup.

<div id="my-welcome-message">
    <h1>Don't Miss IT!</h1>
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><!-- r-dev-bdhostit --><ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5794296284274241" data-ad-slot="9118652613" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({}); </script>
</div>

CSS (pop-style.css)

<!--popup-->
<style>
.popup-signup #mc_embed_signup {
	margin: 0px !important;
	max-width: 600px !important;
	border: 1px solid #ccc !important;
}
</style>

JS (jquery.firstVisitPopup.min.js)

!function(e){"use strict";e.fn.firstVisitPopup=function(t){var i,o=e("body"),n=e(this),c=function(e,t){var i=new Date,o="expires=";i.setTime(i.getTime()+31536e6),o+=i.toGMTString(),document.cookie=e+"="+t+"; "+o+"; path=/"},p=function(e){var t=document.cookie.split(";"),i=0,o="";for(i=0;i<t.length;i++){for(o=t[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e+"="))return o.substring(e.length+1,o.length)}return!1},f=function(){i.show(),n.show()},r=function(){i.hide(),n.hide(),c("fvpp"+t.cookieName,"true")};o.append('<div id="fvpp-blackout"></div>'),n.append('<a id="fvpp-close">&#10006;</a>'),i=e("#fvpp-blackout"),p("fvpp"+t.cookieName)?r():f(),e(t.showAgainSelector).on("click",f),o.on("click","#fvpp-blackout, #fvpp-close",r)}}(jQuery);

 

JSON (package.json)

{
	"name": "FirstVisitPopup",
	"version": "1.1",
	"title": "First Visit Popup",
	"author": {
		"name": "Chris Cook",
		"url": "http://chris-cook.co.uk"
	},
	"licenses": [
		{
			"type": "MIT",
			"url": "MIT-LICENSE.txt"
		},
		{
			"type": "GPLv2",
			"url": "GPL-LICENSE.txt"
		}
	],
	"dependencies": {
		"jquery": "1"
	},
	"description": "Shows a message to the user on their first visit to your page.",
	"keywords": [
		"popup",
		"help",
		"message"
	],
	"homepage": "http://chris-cook.co.uk",
	"maintainers": [
		{
			"name": "Chris Cook",
			"url": "http://chris-cook.co.uk"
		}
	],
	"files": [
		"demo.html",
		"jquery.firstVisitPopup.js",
		"jquery.firstVisitPopup.min.js",
		"readme.md"
	]
}

 

Filed Under: How to Tagged With: popup

October 16, 2019 by dev Leave a Comment

How to find TXT domain record using command prompt?

To find txt domain record,

1. Open Command Prompt (cmd)

2. Type “nslookup -type=txt” and then domain name.

nslookup -type=txt hostbriz.com

3. Enter

 

Filed Under: Security, Server and Hosting

October 5, 2019 by dev Leave a Comment

Digitalocean commandline

Reboot a server from the command line, run:

sudo shutdown -r now

Restart Apache, run:

sudo shutdown -r now

FTP to wordpress (var/www)

sudo chown -R www-data /var/www/html

WordPress “Could not create directory”

chown -R www-data:www-data /var/www

Install phpMyAdmin on Ubuntu with preinstalled WordPress (https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04)

sudo apt update
sudo apt install phpmyadmin php-mbstring php-gettext
sudo phpenmod mbstring
sudo systemctl restart apache2
sudo ln -s /usr/share/phpmyadmin /var/www/html

Note: The last line is for URL https://your-ip-or-domain/phpmyadmin/

 

Filed Under: Digitalocean Tagged With: commandline, Digitalocean, ubuntu, wordpress

  • « Previous Page
  • 1
  • …
  • 71
  • 72
  • 73
  • 74
  • 75
  • …
  • 92
  • Next Page »
  • Upwork
  • Freelancer
  • Fiverr
  • Guru

www.ojsexpert.com
www.ojsdev247.com

Recent Posts

  • ঘরে বসে ডলার আয় করুন এই ৩০ টি ওয়েবসাইট ব্যবহার করে
  • What is JavaScript? | Learn JavaScript from Scratch | Introduction, History, Uses & Prerequisites | Day01
  • WordPress site with WooCommerce is down with Mod Security
  • To get your email for castamodel.com going to the right place, you need to update your DNS settings.
  • Security and WordPress
  • ROR
  • How do we copy google form to google workspace?
  • Install ImageMagick – Almalinux
  • How to remove /public/ from URL in Laravel
  • How to install Maldet alert?
  • How to Install Maldet and Run a Scan | Maldetect
  • Where is Roundcube location on CWP control panel?
  • How To Add Node.js Projects In aaPanel?
  • SPF/DKIM/DMARC Tools
  • Associative arrays – How to loop over Associative arrays
  • Indexed Arrays. How to loop over Indexed Arrays.
  • PHP Break | Continue
  • For Loop | While Loop | Do…While Loop | Foreach Loop
  • Strict mode in PHP
  • PHP Function Return Types

Categories

  • Affiliate Marketing (2)
  • Customization (4)
    • CSS (2)
  • Email Solutions (23)
    • FrontApp (2)
    • Google Spreadsheet (2)
    • Microsoft Outlook (1)
    • PHP Email Form (3)
    • PolyMail (2)
    • Recaptcha (1)
    • Roundcube (4)
    • Thunderbird (3)
    • WebMail (5)
  • Games (1)
  • How to (89)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (4)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (5)
  • Marketplace (6)
  • Miscellaneous (32)
  • MultiSaaS (1)
  • OJS (56)
    • Crossref (1)
    • Help (37)
    • Installation (10)
      • Issues (5)
    • Plugins (8)
    • Scholar Indexing (2)
    • Theme (7)
      • Templates (7)
        • Frontend (6)
        • legacy (1)
    • Theme Customization (10)
    • Theme Development (14)
    • TPL CSS JS (2)
    • Upgrade (11)
  • OSTAD (17)
  • Oxwall (3)
  • Payment Methods (1)
    • Paypal (1)
  • PC Tips and Tricks (14)
    • MS Office (2)
      • PowerPoint (1)
    • Windows (4)
  • PHP Parse error (2)
  • phpBB (2)
  • Server and Hosting (214)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (29)
      • Almalinux (14)
      • CentOS (18)
      • Debian (22)
      • Ubuntu (20)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (70)
      • AWS (38)
      • Bluehost (38)
      • Cloudcone (27)
      • Contabo (41)
      • Digitalocean (69)
      • Hetzner (4)
      • HostGator (37)
      • Hostinger (9)
      • RackNerd (11)
      • VPSDime (39)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (148)
      • aaPanel (14)
      • CentOS Web Panel (47)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (27)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Tutorials (1)
    • JavaScript – ProjuktiPlus (1)
  • Uncategorized (19)
  • Wordpress (90)
    • Elementor (2)
    • Find and Fix (11)
    • Functions (5)
    • Genesis (9)
    • Glossary (1)
    • How to (22)
    • Neuron TD (15)
      • Console Error (1)
      • functions (5)
        • register_post_type (1)
        • register_sidebar (1)
        • theme_files (1)
        • theme_supports (1)
      • Image Directory (1)
      • Menu (2)
      • Query (4)
    • Plugins (14)
      • Contact Form 7 (5)
      • Duplicator (1)
      • Essential Grid (2)
    • Softaculous (3)
    • Speed and Security (4)
    • Stock Theme Development (6)
      • Header Footer (1)
      • PHP (1)
      • VC (1)
    • Theme Development (2)
      • Issues (1)
      • Menu (1)
    • Timer Theme Development (3)
    • Update (2)
    • Woocommerce (3)
    • WP Basic Guideline (8)

Important DEV links

  • Premium Themes
    • Themeforest
    • Envato Market
  • Built With (What Theme is That?)
    • What WP theme is that
    • Joomla Template Detector
    • Drupal Template Detector
    • Prestashop Template Detector
    • Shopify Theme Detector
    • Squarespace Template Detector
    • OpenCart Detector
    • WordPress.com Theme Detector
  • Domain/IP history checker
    • Who IS request
    • Hosting Info
  • Check DNS Propagation
    • DNS Checker
    • intoDNS
  • What is my IP
    • What is My IP Address
    • What is My IP
    • IP location
    • What is My IP
    • Porkbun
  • SEO Tools
    • Visitor Traffic
    • Broken Link
    • Website Speed Test
      • SEMrush
      • GTmetrix
      • Pingdom
      • PageSpeed Insights
      • DebugBear
      • keyCDN
  • Photo Image
    • Remove Background 50 Free Preview Image 375 × 666 per month
  • Domain Registrars
    • 123-Reg
    • Porkbun
    • Freenom
    • Namecheap NEWCOM598
  • Hosting Providers
    • Bluehost
    • Hostgator
    • Inmotion
  • Hosting Control Panel
    • CWPpro (FREE)
    • DirectAdmin (Trial 60 Days, One account $2/month)
    • ISPConfig (Free)
  • Webmaster Tools
    • Google
    • Bing
    • Yandex
  • Miscellaneous
    • Time Calculator

 

Categories

  • Affiliate Marketing (2)
  • Customization (4)
    • CSS (2)
  • Email Solutions (23)
    • FrontApp (2)
    • Google Spreadsheet (2)
    • Microsoft Outlook (1)
    • PHP Email Form (3)
    • PolyMail (2)
    • Recaptcha (1)
    • Roundcube (4)
    • Thunderbird (3)
    • WebMail (5)
  • Games (1)
  • How to (89)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (4)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (5)
  • Marketplace (6)
  • Miscellaneous (32)
  • MultiSaaS (1)
  • OJS (56)
    • Crossref (1)
    • Help (37)
    • Installation (10)
      • Issues (5)
    • Plugins (8)
    • Scholar Indexing (2)
    • Theme (7)
      • Templates (7)
        • Frontend (6)
        • legacy (1)
    • Theme Customization (10)
    • Theme Development (14)
    • TPL CSS JS (2)
    • Upgrade (11)
  • OSTAD (17)
  • Oxwall (3)
  • Payment Methods (1)
    • Paypal (1)
  • PC Tips and Tricks (14)
    • MS Office (2)
      • PowerPoint (1)
    • Windows (4)
  • PHP Parse error (2)
  • phpBB (2)
  • Server and Hosting (214)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (29)
      • Almalinux (14)
      • CentOS (18)
      • Debian (22)
      • Ubuntu (20)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (70)
      • AWS (38)
      • Bluehost (38)
      • Cloudcone (27)
      • Contabo (41)
      • Digitalocean (69)
      • Hetzner (4)
      • HostGator (37)
      • Hostinger (9)
      • RackNerd (11)
      • VPSDime (39)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (148)
      • aaPanel (14)
      • CentOS Web Panel (47)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (27)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Tutorials (1)
    • JavaScript – ProjuktiPlus (1)
  • Uncategorized (19)
  • Wordpress (90)
    • Elementor (2)
    • Find and Fix (11)
    • Functions (5)
    • Genesis (9)
    • Glossary (1)
    • How to (22)
    • Neuron TD (15)
      • Console Error (1)
      • functions (5)
        • register_post_type (1)
        • register_sidebar (1)
        • theme_files (1)
        • theme_supports (1)
      • Image Directory (1)
      • Menu (2)
      • Query (4)
    • Plugins (14)
      • Contact Form 7 (5)
      • Duplicator (1)
      • Essential Grid (2)
    • Softaculous (3)
    • Speed and Security (4)
    • Stock Theme Development (6)
      • Header Footer (1)
      • PHP (1)
      • VC (1)
    • Theme Development (2)
      • Issues (1)
      • Menu (1)
    • Timer Theme Development (3)
    • Update (2)
    • Woocommerce (3)
    • WP Basic Guideline (8)
  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting

Copyright © 2026 · Executive Pro Theme on Genesis Framework · WordPress · Log in