Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Ubuntu Server 14.04 installation Web server (Linux + Apache + MySQL + PHP)     - Service manager OpenBSD on rccl (Server)

- ls command: 15 Level Linux interview question (Linux)

- MariaDB 10.0.X, the dynamic column support JSON format to obtain data (Database)

- Postgres-X2 deployment steps (Database)

- File easier to compare tools under Linux (Linux)

- How to make GRub instead of the default Ubuntu software center (Linux)

- Denyhosts prevent hackers using SSH scanning (Linux)

- Linux five security TIPS (Linux)

- The method to mount the CD under Linux (Linux)

- APT-GET commonly used Linux command (Linux)

- Ubuntu users install the Download Manager software Xdman 5.0 (Linux)

- HTML5 postMessage cross-domain data exchange (Programming)

- QEMU code analysis: BIOS loading process (Linux)

- GCC library link order problems (Programming)

- Linux Basics Tutorial: create your own Vim IDE (Linux)

- RedHat Linux source code package installation process (Linux)

- Java-- get the reflection object information (Programming)

- Installation Enpass secure password manager on Ubuntu (Linux)

- To install file manager Nautilus 3.12.2 under ubuntu (Linux)

- Bitmap memory footprint of computing Android memory optimization (Linux)

 
         
  Ubuntu Server 14.04 installation Web server (Linux + Apache + MySQL + PHP)
     
  Add Date : 2017-07-22      
         
         
         
  Before over the whole CentOS, only to find the whole of the Ubuntu, Ubuntu is much simpler ~ ~ do not know how the performance compared.

In Ubtuntu 14.04, for example, set up the record about the process.

One, pay attention to the installation point

1. IP address

Do not insert the first installation cable, otherwise it will DHCP, it is also troublesome subsequent configuration

2. Hard Disk

Automatic partitioning looks like: /, swap, efiswap, / boot (200MB)
The actual two areas will suffice: swap 1 to 2 times the size of memory, and the remaining are all /

Two, IP configuration

Bahrain general remote connection, you need to configure the ip address, the following is a multi-ip configuration. (The Wizard feature when installing a IP, just copy and paste when you can modify)

vi / etc / network / interfaces
Configuration information:

 # The primary network interface
 auto em0
 iface em0 inet static
         address 192.168.1.1
         netmask 255.255.252.0
         network 192.168.1.0
         broadcast 192.168.1.255
         gateway 192.168.8.254
         # Dns- * options are implemented by the resolvconf package, if installed
         dns-nameservers 8.8.8.8 8.8.8.9
         # Dns-search 163.com

 # The second network interface
 auto em1
 iface em1 inet static
         address 192.168.1.2
         netmask 255.255.252.0
         network 192.168.1.0

Restart card (seemingly not necessarily take effect, reboot certainly)

/etc/init.d/networking restart
Three, SSH server

After the default installation vi / etc / ssh / sshd_config, modify the configuration file.
Security purposes, you can create a list of allowed:

1. Modify /etc/hosts.allow:

sshd: 192.168.1, 192.168.0:.. allow
2. Modify /etc/hosts.deny:

sshd: ALL
Four, system updates

First update source for Trusty Tahr (14.04), for example, to see other editions Profile Generator

deb http://mirrors.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
Then apt-get update

apt-get update
sudo apt-get upgrade
And then update the system and reboot

sudo apt-get install update
Five, Samba installation Network Neighborhood

The default installation apt-get install samba
Create the samba ubuntu system already existing user somebody:
smbpasswd -a somebody
You will be prompted to enter a password, which is the password to access the My Network Places folder.
3. Modify the configuration file:

cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
vi /etc/samba/smb.conf
A subsequent increase in the shared directory:

[Share]
    path = / home / somebody / samba_share
      available = yes
      browseable = yes
      public = no
      writable = yes
Restart samba can be the same as windows access
/etc/init.d/samba restart
Six, install apache2

apt-get install apache2
Installed after the visit http: // localhost you can see "It Works!"
apache2 profile /etc/apache2/apache2.conf,web directory / var / www / html

The default user is www-data, defined in the file ./envvars

Other profiles: ./ sites-enabled / * conf.

Seven, install mysql

apt-get install mysql-server mysql-client
Installation process you need to set the root password. Under Ubuntu, MySQL configuration information in / etc / mysql directory

MySQL default character set is latin1:

In order to avoid the potential of Chinese garbage problem, change the default character set utf-8, specifically refer to this article, modify /etc/mysql/my.cnf file in the appropriate location to add:

[Client]
default-character-set = utf8

[Mysql]
default-character-set = utf8

[Mysqld]
collation-server = utf8_unicode_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8

Eight, and the Apache install php5 php5 module

apt-get install php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5 -snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
OK! It Works!
     
         
         
         
  More:      
 
- Linux file permissions to modify the command: chmod (Linux)
- E: Sub-process / usr / bin / dpkg returned an error code (1) error solution (Linux)
- JavaScript basic types and type conversion (Programming)
- Asynchronous communication mechanism between the Android source code analysis thread (Programming)
- Linux Oracle environment variable is invalid Problem Solving (Database)
- Oracle 12CIN-memory in table spaces (Database)
- Solaris 10 installation configuration mrtg monitoring system (Linux)
- ls command: 15 Level Linux interview question (Linux)
- Terminal Linux command prints - echo (Linux)
- How to install Git on CentOS 7 (Linux)
- ElasticSearch - Basic Concepts (Server)
- Oracle TAF Analysis (Database)
- SolrCloud-5.2.1 cluster deployment and testing (Server)
- VNC connection VMware vSphere ESXi 5.5 (Linux)
- Hadoop + Zookeeper NameNode achieve high availability (Server)
- MySQL composite partition (Database)
- OpenGL Superb Learning Notes - Vertex Shader example (Programming)
- Install RAID 6 (Striping double distributed parity) (Linux)
- Comparison of Nginx and Nginx + (Server)
- High-performance JavaScript DOM programming (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.