PLEASE UPDATE YOUR BROWSER

1 Reason Agency

Insurance and Real Estate

  • About
    • Meet Our Agents
    • Partner Insurance Companies
  • Personal Insurance
    • Car Insurance Quote for Personal Auto
    • Boat Insurance
    • Home Owners Insurance
    • Life Insurance Quotes
    • Motorcycle Insurance
    • Personal Umbrella Insurance
    • Renters Insurance
    • RV Camper Insurance
    • Snowmobile Insurance
  • Business Insurance
    • Commercial Auto Insurance
    • What is General Liability Insurance
    • Rental or Vacant Properties
    • Workers Compensation in Wisconsin
  • Blog
  • Contact
    • Contribute As Guest Author
  • About
    • Meet Our Agents
    • Partner Insurance Companies
  • Personal Insurance
    • Car Insurance Quote for Personal Auto
    • Boat Insurance
    • Home Owners Insurance
    • Life Insurance Quotes
    • Motorcycle Insurance
    • Personal Umbrella Insurance
    • Renters Insurance
    • RV Camper Insurance
    • Snowmobile Insurance
  • Business Insurance
    • Commercial Auto Insurance
    • What is General Liability Insurance
    • Rental or Vacant Properties
    • Workers Compensation in Wisconsin
  • Blog
  • Contact
    • Contribute As Guest Author
Home > SuiteCRM Insurance CRM > Webmin Easy Install Script for Centos

Webmin Easy Install Script for Centos

Posted on: March 12, 2018 By: robert

This is really for myself, as I need to install Webmin from time to time and hate looking up this easy script to install it automatically.

If you use the following, please let me know in the comments and I'll maintain and update as required for others too.

Oh, and to be clear, I didn't write the script, I just became tired of having to search for it online.

 

(echo "[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1" >/etc/yum.repos.d/webmin.repo
rpm --import http://www.webmin.com/jcameron-key.asc
yum -y install webmin)

 

Video for webmin on ubuntu  – > https://www.youtube.com/watch?v=eDGWmLLJp-I

 

From Webmin regarding firewalls—

http://www.webmin.com/firewall.html

Many operating systems block access to port 10000 by default, as they have a firewall activated as part of the installation process. This may prevent you from logging into http://yourserver:10000/ from another system on your network or over the Internet.

The simplest way to open up port 10000 is to use one of the Webmin firewall management modules, such as Linux Firewall, BSD Firewall or IPFilter Firewall. However, to access this you'll need to run a brower on the same system as Webmin, and access it via the URL http://localhost:10000/.

The alternative is to login as root via SSH, and manually edit the firewall configuration file. On Redhat and derived systems, this is /etc/sysconfig/iptables, while on Debian it is/var/lib/iptables. The line you need to add is :

-A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT

It should be added in the file just after similar lines which grant access to ports 80, 22 and so on.

Once this line has been added, you will need to apply the firewall configuration. This is typically done with the command /etc/init.d/iptables restart .

 

Add PHPMyAdmin to Centos 7

Step 1: Add the EPEL Repository

phpMyAdmin is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we’ll install the EPEL repository:

rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Step 2: Install phpMyAdmin

First, you’ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.

yum -y update

Then it’s a matter of just running one command for installation via apt-get:

yum -y install phpmyadmin

Step 3: Find Your IP Address

Find your IP address with any of the following sites:

  • What’s My IP Address?
  • What Is My IP?
  • My IP Address

Step 4: Basic Configuration for phpMyAdmin

To secure phpMyAdmin we should lock down access to a specific IP address. When the phpMyAdmin package is installed, an Apache Virtual Host file is added to configure web access. Let’s edit that file:

vim /etc/httpd/conf.d/phpMyAdmin.conf

The default phpMyAdmin configuration only allows access from the server on which it is installed (local host). Locate the following sections and adjust the IP address(es) to the appropriate IP you found in Step 3, or another IP address that will be connecting to phpMyAdmin remotely:

Require ip 127.0.0.1

Allow from 127.0.0.1

Require ip 127.0.0.1

Allow from 127.0.0.1

-exit and save using the command :wq .

Restart Apache:

systemctl restart httpd

Check if phpMyAdmin is running by visiting http://your_server_IP/phpmyadmin. Example: http://1.2.3.4/phpmyadmin

 

For installing phpmyadmin on ubuntu – > https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04

Comments

comments

Categories: SuiteCRM Insurance CRM Tags: Webmin Install

Categories

  • Bookkeeping
    • Business Taxes
  • Business Marketing
  • Car Insurance
  • Commercial Auto
  • Commercial Insurance
  • Court Cases
  • Cyber Liability Insurance
  • Employment Opportunities
  • Employment Practices
  • Flood Insurance
  • Home Ownership
  • Homeowner's Insurance
  • Insurance Companies
    • Insurance News
  • Insurance Terms
  • Investing
    • Finance & Insurance News
  • Life Insurance
  • Non Emergency Medical Transportation
  • Payroll
  • Pinewood Derby
  • Real Estate News
  • Rental Property Insurance
  • Retirement & Estate Planning
  • RV Insurance
  • Starting A Business
  • Stock Dividends
  • SuiteCRM Insurance CRM
  • Tips & Advice
  • Travel
  • Uncategorized
  • Webhosting
  • Worker's Compensation

Recent Posts

  • Vornado Completes $525 Million Refinancing of One Park Avenue
  • Landmark Infrastructure Partners LP Announces 2020 K-1 Tax Package Availability
  • FRP Holdings, Inc. Announces Release Date for Its Fourth Quarter and Year Ended December 31, 2020 Earnings and Details for the Earnings Conference Call
  • Ryman Hospitality Properties, Inc. Reports Fourth Quarter and Full Year 2020 Results
  • Leading InsurTech Company TypTap Raises $100 Million from Centerbridge
  • Newly formed digital business unit to lead transformative tech-led strategy for Beazley
  • Park Hotels & Resorts Inc. Reports Fourth Quarter and Full Year 2020 Results
  • Homepie Becomes California’s Hottest Brokerage for Savings