Book Mark

Ike.ninja

Linux Fun
  • Home
  • How to
  • Reference Links
  • Categories
    • Releases
    • Plesk
    • Community
    • CMS
    • security
    • MYSQL
    • cPanel
  • Tools
    • IP Checker
    • Byte Converter
RSS

Creating a Database in cPanel

Aug16
by Ike on August 16, 2012 at 6:12 am
Posted In: CMS, cPanel, How to, MYSQL

Creating a Database in cPanel has a couple of steps to it.  After creating the database, you will also need to create a user and then add that user to the database.  The last 2 steps are commonly missed. Remember if you want cPanel to recognize the database, you will need to create it from cPanel. If you create the database from command line, it will still work, however cPanel will know nothing about it.

First you will need to:

  1. Login to the sites cPanel
  2. Go to MYSQL databases.

Now that you are her you can do all three steps on 1 pages.

  1. Create the database
  2. Create the User and Password

Now you will need to add them together at the bottom

  1. Choose the correct database and user and click Add
  2. You will now be given a chance to grant the privileges to the user for that specific database.

Once you have added the permissions, and saved it, you should be all set to plug those credentials into your site. To confirm that everything is correct you can look at the main MYSQL databases page to look at the list of databases. If you have a user with the database, then everything was setup properly.

You can alter the privileges by clicking on the user name in the Database list. If you go to the bottom you will see the user list. If you click on the user here, it will prompt you to change the users password. If you don’t have the correct old password, I have found it best and fastest to remove the user, then re-add it with the new password.

└ Tags: cPanel, Hosting, Howto, MYSQL
 Comment 

Setting up name servers on your cPanel server

Aug16
by Ike on August 16, 2012 at 5:35 am
Posted In: cPanel, Development, DNS, How to

Using the name servers on your server can make things a bit easier when it comes to editing your DNS settings. When using the name servers built into cPanel, you can add sub-domains with out having to make any changes to the zone file. You can also setup SPF and domain keys with a couple clicks. This setup is ideal for small servers only hosting a few sites. If you are hosting a large number of sites it may be in your best interest   to setup a separate name server to ensure the name server won’t be overloaded taking your sites down. They do offer DNS clustering that works great between as many servers as you like. This is the best bet as you would have 4 -10 name servers for each domain.

 

Setting up your name servers is fairly simple, if you set up the name servers right off the bat.  Setting them up after the fact isn’t an issue if you plan to use what is set by default. If you want to change them from the default, you may have to edit the zone files for the domains that already exist on the server. To use the name name servers for a current domain, you would need to adjust the NS records and the authoritative  name server record at the top of the zone file.

You need:

  • WHM Access
  • 2 IP addresses (can use the main IP for both but not suggested.)
  • A domain name to use for the name server names (default is ns1/ns2.hostname.tld)
  • Access to the registrar for name server domain.

To setup your name server you need to log into WHM:

  1. The very first link on the left is “Basic cPanel & WHM Setup”
  2. Once you are in there go all the way to the bottom, for the name server setup area.

If you plan on using the defaults they should already be in place. Now you need to add an IP address to each name server. If you plan on using 1 IP address you will need to go into “Tweak Settings” and search for name server. You will need to allow the name servers to share same IP.

  1. Click add IP next to each name server
  2. When the dialog box pops up make sure you hit add IP for each one.
  3. Remember the IPs as you will need them soon
  4. After you add the IPs MAKE SURE YOU SAVE at the bottom of the page.


You will now need to add A records for each name server. If you will be hosting the DNS for the name servers domain then you can do it here with the “add an A record” button. If not you will need to add the A records to your zone file for the domain. This part can cause issues. Sometimes it will create separate zone files for each name server. This should work as long as the main domain does not also have a zone file. If a main zone file exists for the domain the name server will look in there first, then not find anything as the records are not there.

You can check this by going to “Edit DNS zone” and checking to see if the name servers are listed in the list. If that happens to you it’s not that big of a deal. All you have to do it edit the main Zone file for the domain, and add the A records there. Once you have added the A records you can remove the extra Zone file for each name server, to avoid confusion

Now that you have the IP addresses of the name servers, you need to tell the registrar where they are. You will need to log into your registrar for the domain, then register the name server with their IPs. Once this is done you will now be able to use the name servers as the registrar will point them in the correct direction.

When changing over to the new name servers for a existing domain, just make sure that their NS records match in the zone file. This can cause loops and confusion if they are not correct. Any domain that you add after this will use the name servers that you have specified in the basic setup.

To check your work you can go to name server IPs in WHM. If the name servers and the IPs are listed you should bet all set. New zones will be created when you setup a new domain automagically.

 

Trouble Shooting

1. Nothing shows up in name server IPs.

  • You may have forgotten to save in the basic settings, after adding the IPs.
  • You must have at least one zone using the name servers to show up there
  • You name servers don’t have A records

2. The name server show but the IPs don’t

  • You name servers don’t have A records
  • You may have forgotten to save in the basic settings, after adding the IPs

3. How do I know the name servers are working?

  • In a terminal, you can run the command “dig domain.com @ns1.hostname.tld”. If this return the correct IP then you should be all set.
  • You can Browse to the site in a browser.

4. What file is the name server IP information in?

  • /etc/nameserverips
  • You need to run /scripts/updatenameserverips after altering the file for the changes to be seen
  • Proper syntax is:   000.123.456.789=ns1.domain.tld

5. Where is the configuration for the name server?

  • /etc/named.conf
  • It is a good idea to disable or limit DNS recursion as this can cause security issues if your name servers are attacked

If your still having issues feel free to leave a comment asking a question so I can the answer into this post.

└ Tags: Command line, cPanel, Hosting, Howto, setup
 Comment 

Ubuntu: 1530-1: Linux kernel (OMAP4) vulnerabilities

Aug16
by Ike on August 16, 2012 at 1:13 am
Posted In: Uncategorized

(Aug 10) Several security issues were fixed in the kernel.

└ Tags: Linux
 Comment 

Ubuntu: 1531-1: Linux kernel vulnerabilities

Aug16
by Ike on August 16, 2012 at 1:13 am
Posted In: Uncategorized

(Aug 10) Several security issues were fixed in the kernel.

└ Tags: Linux
 Comment 

Plesk 11.0 is Stable since the Micro-Update #8 !

Aug15
by Ike on August 15, 2012 at 7:01 am
Posted In: Plesk, Releases

The Plesk Service team is pleased to announce that Plesk 11.0 has entered into the Stable state. Thank all who helped us in identifying Plesk bugs and drawbacks.

To get Plesk 11.0 in Stable you have to install the 11.0.9 MU#8 (or later) which delivers more than 50 fixes in total.

 Comment 
  • Page 2,858 of 2,984
  • « First
  • «
  • 2,856
  • 2,857
  • 2,858
  • 2,859
  • 2,860
  • »
  • Last »

What’s New?

  • Fedora 42: mingw-libsoup Critical Out-of-Bounds Read CVE-2025-11021
  • Fedora 42: mingw-python3 Critical Denial Service Fix CVE-2025-12084
  • Fedora 42 pgadmin4 Critical Remote Code Exec Fix 2025-b08763f674
  • Fedora: Gobuster Critical Update Released for CVE-2025-58188 Advisory
  • Debian: Rails Severe Command Manipulation DSA-6090-2 CVE-2025-24294
  • Debian Trixie WordPress Security Advisory DSA-6091-1 for CVE-2025-58246
  • Debian: Chromium Important Code Exec and Info Disclosure DSA-6089-1
  • Debian Trixie: php8.4 Important DoS Memory Disclosure DSA-6088-1
  • Fedora 42: uriparser CVE-2025-67899 Fix for Unbounded Recursion Issue
  • Fedora 42: util-linux Critical Buffer Overflow CVE-2025-14104 Advisory
  • Fedora 42: mqttcli Update 0.2.8 Critical Integer Overflow Issues
  • Fedora 42: Chromium High CVE-2025-14765 Out of Bounds Security Risks
  • Debian: Roundcube Important XSS and Information Leak Fix DSA-6087-1
  • Debian: MediaWiki DSA-6085-1 Security Updates for DoS and XSS
  • Debian: Urgent Vulnerability in Dropbear DSA-6086-1 CVE-2025-14282
  • Plesk 2025: A Year in Review
  • Ubuntu 24.04: Linux Xilinx Important Kernel Security Fix USN-7931-4
  • Ubuntu 22.04 LTS: Linux Kernel Critical Fix for Raspberry Pi USN-7928-4
  • Ubuntu 18.04 LTS – Oracle Kernel Critical Security Flaws USN-7922-3
  • Ubuntu 24.04: Advisory USN-7921-2 for Real-time Kernel CVE-2025-39946
  • Debian Trixie: c-ares Critical Denial of Service Advisory DSA-6084-1
  • Debian: webkit2gtk Important Memory Corruption Issues DSA-6083-1
  • Fedora 42: brotli 1.2.0 Critical DoS Fix FEDORA-2025-9e233a4e22
  • Fedora 42: perl-Alien-Brotli Faces Critical Denial-of-Service Risk
  • Fedora 42: CUPS Critical Local DoS Issue FEDORA-2025-c09b980696

Search

Translator

Tags

Business and industry code Community cPanel CVE Debian Debian Linux Distribution - Security Advisories Development Events Fedora Fedora Linux Distribution - Security Advisories General Hosting Important Advisory Linux Moderate Advisory Month in WordPress news Parallels Plesk Parallels Plesk Panel Performance PHP Plesk news and announcements Plesk Panel Podcast ProdDevSec Product and technology Products Project Release News Red Hat Red Hat Linux Distribution - Security Advisories Releases security Security Centre sensitive site Ubuntu Ubuntu Linux Distribution - Security Advisories update updates Various vulnerability Web Server Survey Wordpress wp-briefing

Posts

Helpful Links

  • Liquidweb.com
  • MYSQL Dev Documentation
  • Plugins
  • Source forge SED command
  • Themes
  • WordPress Documentation
  • You Tube
December 2025
M T W T F S S
« Nov    
1234567
891011121314
15161718192021
22232425262728
293031  
  • Google
  • Yahoo
  • Liquid Web
  • Storm
  • YouTube

©1999-2025 Ike.ninja | Powered by WordPress with Easel | Subscribe: RSS | Back to Top ↑

50 queries. 8.75 mb Memory usage. 0.265 seconds.