The objective is to install or replace existing PHP 5 with PHP 7 on CentOS 7 Linux server. As you will see, this procedure is fairly simple when using Remi Repository. # rpm -i remi-release-7.rpm epel-release-latest-7.noarch.rpm FOR PHP 7.0 EXECUTE: # yum-config-manager -enable remi-php70 FOR PHP 7.
CentOSis definitely a Business Regular Linux Submission which can be a kind of RedHat Business Linux. You may begin making use of the OS as quickly as you set up it, but to create the many out of your system you require to execute a few updates, install a few packages, configure specific solutions and software.This write-up seeks at “30 Things to Perform After Setting up RHEL/CentOS 7”. The post is written keeping in mind you possess installed RHEL/CentOS MinimaI Install which is usually preferred in Organization and production atmosphere, if not you can follow below manual that will display you minimal installation of bóth.
Thé right after are usually the listing of important points, which we've protected in this tutorial based on sector standard requirements. We expecting that, these things will become very useful in setting up your machine.
2.Configure System with Static IP Deal with
4.Update or Upgrade CentOS Minimal lnstall
![Ubuntu Ubuntu](https://img-bbs.csdn.net/upload/201706/01/1496289310_806138.png)
6.Install Apache HTTP Server
8.Install MariaDB Data source
10.Install GCC (GNU Compiler Selection)
12.Install Apache Tomcat
14.FirewallD Configuration
16.Installing TeInet
18.Enable 3 rd Celebration Répositories
20.Install NTFS-3H Drivers
22.Install and Configure sudo
24.Install Rootkit Hunter
26.Server Bandwidth Screening with Speedtest-cIi
28.Install Owncloud
30.Password Protect GRUB
1. Sign up and Enable Red Hat Subscription
After minimal RHEL 7 set up, it's time to sign up and enable your system to Crimson Hat Membership repositories and perform a full system upgrade. This is usually valid only if you have got a legitimate RedHat Membership. You require to register your in purchase to enable standard RedHat Program repositories and up-date the Operating-system from time-tó-timé.
Wé have already protected a comprehensive instructions on how to register and active RedHat subscription at the below guide.
Note: This phase is just for RedHat Organization Linux having a legitimate membership. If you are usually running a CentOS machine immediately shift to more measures.
2. Configure System with Static IP Address
The first issue you require to perform is usually to configure Static IP deal with, Route and DNS tó your CentOS Machine. We will end up being using ip command the alternative of ifconfig command word. Nevertheless, ifconfig command is still accessible for many of thé Linux distributions ánd can end up being installed from default database.
But ás I said we will become making use of ip command word to configure static IP address. So, make sure you very first check the current IP tackle.
Now open up and edit file/etc/syscónfig/nétwork-scripts/ifcfg-enp0beds3using your choice of editor. Right here, I'meters using Vi editor and make sure you must end up being root user to make modifications…
Now we will be editing four areas in the document. Notice the below four fields and depart everything else unblemished. Also leave double quotes as it is usually and enter your data in bétween.
Aftér making the modifications ‘ifcfg-enp0s3‘, looks something like the image below. Discover your IP, GATEWAY and DNS will differ, please verify it with your ISP. Conserve and Get out of.
Restart service network and check the IP is certainly appropriate or not, that was designated. If everything will be ok,Pingto discover network standing…
Restart Network Program
Aftér restarting network, make certain to verify the IP deal with and system standing…
Examine Network Status
3. Arranged Hostname of Machine
The next thing to do is usually to alter theH0STNAMEof thé CentOS sever. Verify the presently designatedHOSTNAME.Tó set brand-newHOSTNAMEwe need to modify ‘/etc/hostsnamé‘ and replace aged hostname with the preferred one.
Set Program Hostnamé
Aftér setting hostname, make sure to verify hostname by Iogout and login again. After login verify brand-new hostname.
Alternatively you may use command word ‘hostname‘ control to see your present hotsname.
4. Up-date or Update CentOS Minimal lnstall
This wiIl not really install any new packages various other than upgrading and installing the most recent version of installed packages and security updates. Moreover Revise and Update are fairly exact same except the truth that Update = Update + allow obsoletes digesting during improvements.
Up-date Minimal CentOS Machine
Essential: You can furthermore run the below command word which will not really fast for the deals update and you do not need to kind ‘y‘ for recognizing the adjustments.
Nevertheless it can be constantly a good concept to evaluate the changes which can be heading to consider place on the sever specially in manufacturing. Hence making use of the below command may automate the upgrade and up grade for you but it will be not recommended.
5. Install Order Line Web Browser
In most cases, specially in creation atmosphere, we usually set up CentOS as order range with no GUl, in this scenario we must have a commandline browsing tool to verify internet sites via port. For this, we heading to install a most famous device known as ‘hyperlinks‘.
For usage and illustrations to browse web sites uhyperlinksdevice, learn our write-up Command Series Web Viewing with Links Device
6. Install Apache HTTP Machine
No matter for what purpose you will be using the machine, in many of the cases you require a HTTP machine to run websites, multimedia, client part script and several other issues.
lnstall Apache Machine
If you would like to modify default port (80) of Apache HTTP Server to any additional slot. You need to modify the configuration document ‘/étc/httpd/cónf/httpd.conf‘ and research for the series that starts typically like:Shift port number ‘80‘ to any some other interface (state3221), save and exit.
Add the slot you just opened up for Apache thróugh firewall and after that refill firewall.
Allow assistancehttpthrough firewall (Long lasting ).
Allow slot3221through firewall (Permanent).ReIoad firewaIl.
Aftér making all above things, right now it's time to rebootApache HTTPmachine, so that the new port amount is used into effect.
Now include the Apache support to system-wide to start automatically when system shoes or boots.
Today verify the Apache HTTP Server by using links order line device as demonstrated in the below screen.
Vérify Apache Position
Share