Dev {Tricks}

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

May 22, 2020 by dev Leave a Comment

AddHandler, AddType, SetHandler in htaccess | Change PHP version for directory or folder

cPanel-generated handler

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php72” package as the default “PHP” programming language.
AddHandler application/x-httpd-ea-php72 .php .php7 .phtml
# php -- END cPanel-generated handler, do not edit

 

<IfModule mime_module>
AddHandler application/x-httpd-ea-php56___lsphp .php .php5 .phtml
</IfModule>

<IfModule mime_module>
AddType application/x-httpd-ea-php56___lsphp .php .php7 .phtml .htm .html
</IfModule>

<FilesMatch “\.(php4|php5|php3|php2|php|phtml)$”>
SetHandler application/x-lsphp56
</FilesMatch>

<IfModule mod_rewrite.c>
AddHandler application/x-httpd-php56 .php
</IfModule>

AddHandler application/x-httpd-php56 .php .php5 .php4 .php3

<FilesMatch ".(?:html|php)$">
SetHandler application/x-lsphp56
</FilesMatch>

 

 

Filed Under: cPanel, Digitalocean, DirectAdmin, Find & fix, Server and Hosting Tagged With: change php, change php version, htaccess php, multiphp, multiple php versions, php version, selet php

May 17, 2020 by dev Leave a Comment

[autoindex:error] No matching DirectoryIndex

[Sun May 17 05:22:43.313979 2020] [autoindex:error] [pid 1234:tid 140222558668] [client 9.1228.110.167:171311] AH01276: Cannot serve directory /home/***/***/***.com/private_html/: No matching DirectoryIndex (index.html,index.htm,index.shtml,index.php,index.phtml) found, and server-generated directory index forbidden by Options directive, referer: https://www.***.com/

Reason One:

Apache Error

By default Apache is configured with the following:

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

We have to change it to

<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>

Adding index.php directive.

How to change?

Open httpd.conf

vi /etc/httpd/conf/httpd.conf

Change accordingly and then restart httpd

systemctl restart httpd

Reason Two:

Symbolink link error from private_html

“Use a symbolink link from private_html to public_html – allows for same data in http and https” instead of “Use a directory named private_html”

 

Filed Under: Digitalocean, DirectAdmin, Find & fix, Server and Hosting, VPS Management Tagged With: apache, autoindex, autoindex error, No matching DirectoryIndex

May 13, 2020 by dev Leave a Comment

DB Error: Column ‘first_name’ cannot be null

DB Error: Column ‘first_name’ cannot be null

Increase “max_input_vars” from 1000 to your desired count.

This will solve the issue.

Filed Under: Digitalocean, DirectAdmin, Server and Hosting, VPS Management Tagged With: max_input_vars

May 2, 2020 by dev Leave a Comment

How to change UID and GID? chown

UID = User ID
GID = Group ID

We can change UID and GID with command ‘chown’ login with SSH.

chown -R newuserID:newgroupID folder_name

For example, to change myfolder UID and GID

chown -R bdhostit:bdhostit myfolder

or to change maildir UID and GID. Here, “bdhostit” is account’s username.

chown -R bdhostit:mail /home/bdhostit/domains/Maildir

Filed Under: Digitalocean, DirectAdmin, Find & fix, How to, Server and Hosting, VPS Management Tagged With: chown

April 30, 2020 by dev Leave a Comment

Linux fstab File and how it works | Understanding fstab file system

Fstab is file system table your operating system. fstab file location:

/etc/fstab

In a Linux-based system, /etc/fstab file is one of the most important files. It contains all available disks, disk partitions and their options. You can open and see your fstab file system as follows

vi /etc/fstab

Check mount information of partition /dev/sdb1

lsblk -d -fs /dev/sdb1

If you add new hard disk or repartition an existing one, you’ll have to modify this file. And for every partition has been described on a separate line and each line contains six fields which provide information about its mount.

  1. Device is the first field represents disk or partition name. Most distributions specify partitions by their labels or UUIDs.
    /dev/sda1

    or

    80b496fa-ce2d-4dcf-9afc-bcaa731a67f1
  2. Mount point is the second field represents directory where the partition or disk will be mounted. And the directory should be an empty directory.
    /backup
  3. File system type the third field represents the file system type.
    ext4
  4. Options is the fourth field represents the mount options. Here, we will use default options. Default mount options sets are:
    • rw (read-write);
    • suid (respect setuid and setgid bits);
    • dev (interpret characters and block devices on the filesystem);
    • exec (allow executing binaries and scripts);
    • auto (mount the filesystem when the -a option of the mount command is used);
    • nouser (make the filesystem not mountable by a standard user);
    • async (perform I/O operations on the filesystem asynchronously).
      defaults
  5. Backup operation is the fifth field and can be either 0 or 1. ‘1’, if the dump utility should back up a partition and ‘0’, if it shouldn’t.
    1
  6. File system check order is the sixth field represents fsck checks order for device/partition errors at boot time. ‘0’ means that fsck should not check file system. Higher numbers represent the check order. The root partition have value ‘1’ and all others should have value from 2.
    2

Check mount information of partition /dev/sdb1

lsblk -d -fs /dev/sdb1

 

 

Filed Under: Digitalocean, DirectAdmin, Find & fix, Server and Hosting, VPS Management Tagged With: ext4, fstab, lsblk, mount, mount point

  • « Previous Page
  • 1
  • …
  • 8
  • 9
  • 10
  • 11
  • 12
  • …
  • 14
  • Next Page »
  • Upwork
  • Freelancer
  • Fiverr
  • Guru

www.ojsexpert.com
www.ojsdev247.com

Recent Posts

  • 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
  • PHP Anonymous Functions (or Closures)
  • PHP Variadic Functions
  • PHP nullable type hints

Categories

  • Affiliate Marketing (1)
  • 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 (87)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (4)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (5)
  • Marketplace (5)
  • Miscellaneous (31)
  • 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 (213)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (28)
      • Almalinux (13)
      • CentOS (17)
      • Debian (21)
      • Ubuntu (19)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (69)
      • AWS (37)
      • Bluehost (37)
      • Cloudcone (26)
      • Contabo (40)
      • Digitalocean (68)
      • Hetzner (3)
      • HostGator (36)
      • Hostinger (8)
      • RackNerd (10)
      • VPSDime (38)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (147)
      • aaPanel (14)
      • CentOS Web Panel (46)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (26)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Uncategorized (19)
  • Wordpress (89)
    • 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 (13)
      • 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 (2)
    • 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 (1)
  • 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 (87)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (4)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (5)
  • Marketplace (5)
  • Miscellaneous (31)
  • 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 (213)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (28)
      • Almalinux (13)
      • CentOS (17)
      • Debian (21)
      • Ubuntu (19)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (69)
      • AWS (37)
      • Bluehost (37)
      • Cloudcone (26)
      • Contabo (40)
      • Digitalocean (68)
      • Hetzner (3)
      • HostGator (36)
      • Hostinger (8)
      • RackNerd (10)
      • VPSDime (38)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (147)
      • aaPanel (14)
      • CentOS Web Panel (46)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (26)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Uncategorized (19)
  • Wordpress (89)
    • 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 (13)
      • 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 (2)
    • WP Basic Guideline (8)
  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting

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