How to install Cent OS 7 v1511?
1. Insert CENTOS installer
2. Select “Install CentOS 7”
3. Press “Enter”
4. Select language and click Continue
5. Software Selection and select
“Server with GUI”
Server with GUI Add-ons for
Selected Environment:
1. Hardware Monitoring Utilities
2. Performance Tools
3. Security Tools
6. Click “Done”
7. Selection Destination
8. Done (Note: Applicable only for Automatic Configure Partitioning)
Manual Partition configuration:
1. Select “I will configure partitioning”
2. Done
3. Select “Click Here to Create them Automatically”
4. Click “+” to ADD and “-” to REMOVE mount point
/home = 40 GiB
/boot = 1 GiB
Swap = (Depends on hardware memory multiply by 2)
Sample 2GiB ram= 2GiB x 2 = 4GiB
/root = Automatic
9. Update Settings
10. Done
11. Accept Changes
12. Begin Installation
13. User Settings Configuration
- Root Password (Use standard password)
- Done
- User Creation (Use standard username and password)
- Done
14. After CentOS installation
Open Terminal:
1. su root
2. provide password
3. yum –y update (Reminder: must be connected to internet)
4. If this error occur during yum update “Another app is currently holding the yum
lock” “State :Sleeping, pid:xxx” (Note: xxx represent a number of pid)
Fix: kill xxx
How to connect network automatically?
1. Select “Wired Settings”
2. Click “Settings icon”
3. Select “Identify”
4. Check “Connect Automatically”
5. Click “Apply”
How to install Virtual Box?
Download VirtualBox for CentOS 7
https://www.virtualbox.org/wiki/Linux_Downloads
Oracle Linux 7 ("OL7") / Red Hat Enterprise Linux 7 ("RHEL7") / CentOS 7 AMD64
Open TERMINAL:
1. su root
2. provide password
3. cd Desktop
4. Type: yum install VirtualBox
5. Press tab
6. Enter
7. Done
Where to find Virtual Box application?
1. Open “Applications”
2. Select “System Tools”
3. Click “Oracle VM VirtualBox”
Note: If error occur while opening VirtualBox
Reminder: Must be connected to internet
OPEN TERMINAL
1. su root
2. provide password
3. /sbin/vboxconfig
4. yum install gcc make
5. yum install kernel –devel -3.10.0-
327.el7.x86_64
6. yum install kernel –devel
7. /sbin/vboxconfig
8. Open Oracle VM VirtualBox again
9. Done
How to Setup Web Server on VirtualBox using CentOS Minimal Installation?
1. Press New
2. Fill in:
Name: Web Server
Type: Linux
Version: Red Hat (64-bit)
3. Memory Size
(Minimum 1Gib or 1024Mib)
- Next
4. Hard disk
Create a virtual hard disk now
- Next
5. Hard disk file type
VDI (Default)
- Next
6. Storage on physical hard disk
Dynamic allocated (Default)
- Next
7. File location and size
Minimum 8Gib
- Create
8. Done
Oracle VM VirtualBox Configuration:
Click on Settings
and follow image below:
Click on “Storage”
Under the Storage Tree:
Click on Empty
Under on the Attributes:
Dropdown arrow beside on
Optical Drive and select an
Installation Media where
you stored or save your
installer
Click on “Network”
Check on Enable Network
Adapter
Change on Attached to:
Bridged Adapter
Click “Ok”
Next
Next
Create
Next
Next
Create
Begin Cent OS Minimal installation
How to configure network in Oracle VM VirtualBox?
Open Oracle VM VirtualBox
Open Terminal
1. Login user as root
2. Provide password
3. Type nmtui
and press
Enter
4. Select Edit and press Enter
5. Change IPv4 CONFIGURATION
from Automatic to Manual
6. Select Show and press Enter
7. Supply value base on
Network IP series
8. Arrow down and select
Ok then press Enter
9. vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
10. Press Shift + I to edit
ONBOOT=yes
IPADDR=192.168.7.219 (supply value base on network IP series)
PREFIX=24
DNS=192.168.7.1 (supply value base on network IP series)
GATEWAY=192.168.7.1 (supply value base on network IP series)
NETMASK=255.255.255.0 (supply value base on network IP series)
11. Press esc to escape after editing
12. Press Shift + “ : ” and type “wq”
How to install Vesta CP on CentOS Minimal Desktop?
Open Terminal:
1. curl -O http://vestacp.com/pub/vst-install.sh
2. bash vst-install.sh --nginx yes --phpfpm yes --apache no --vsftpd yes --proftpd no --exim no -
-dovecot no --spamassassin no --clamav no --named no --iptables yes --fail2ban yes --mysql
no --postgresql yes --remi yes --quota no --hostname nexen.server.net --email
[email protected] Note: If error occur while installing bash vst-install.sh xxx. . .
(Example: admin already exist)
3. userdel -admin
4. Run script again
5. After installation, note for the following software will be installed on your system:
- Nginx Web Server
- PHP-FPM Application Server
- PostgreSQL Database Server
- Vsftpd FTP Server
- Iptables Firewall * FailBan
6. Press y and enter
7. Hostname:
nexen.server.net
How to install FileZilla on CentOS Server w/ GUI?
OPEN TERMINAL
1. Login as root
2. Provide password
3. yum install epel-release -y
4. yum install filezilla -y
5. to start fileZilla goto: Applications->Internet->FileZilla
Start transferring web files to your web directory
1. Host: sftp:// (use your VPS IP as host)
2. Username: provide system username
3. Password: provide system password
4. Port: 22 (standard port for file transfer using ftp)
5. Click: Quickconnect
How to upload your files to the server via SFTP?
Drag and drop
Simply navigate into your local directory (in your computer) and locate where you stored all your
websites files. You can do that in the left pane. Once done, simply drag-and-drop it to the left
pane which is the pane where you browse your server directories.
Destination path folder for Minimal Server:
1. home
2. web
3. nexen.server.net
4. public_html
5. Drag and drop files
How to Change File Permission?
Step 1 – Right-click on the file / folder you wish to change its permission.
Step 2 – Then click on the “File Permissions” option as shown above.
Step 3 – Another popup window will appear allows you to change and set what kind of
permissions the file will have it.
Step 4 – You can set the permissions one by one or simply just typing its numeric value and all
the permissions will automatically adjusted according the value (e.g: 755, 777, etc). Once done
hit OK.