Aliyun Server CentOS 6.3 Quickly install a method to deploy LAMP, VSFTPD environment _linux

Source: Internet
Author: User
Tags fpm install php imap ldap mysql client snmp centos aliyun

Aliyun Forum resources are very rich, check the installation lamp environment, a lot of basic things have been built, such as firewall configuration and port open, all do not need to do operation, so the installation is also very simple:

1, the installation of MySQL

MySQL installation involves the package:

Mysql:mysql client and underlying library files.

Mysql-libs:mysql the library files required by the client.

Mysql-server:mysql server side and related files.

Install Command:

Yum intall MySQL mysql-libs mysql-server

2, the installation of PHP

Preparatory work:

You also need to install Epel software beforehand. This is not installed and does not affect this section, but in some future tutorials you may install some software that is not provided in the standard software source, so the installation command is given here.

Install Command:

wget http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
RPM-IVH epel-release-6-8.noarch.rpm

PHP installation involves software packages:

PHP.X86_64: Server-side PHP program

php-cli.x86_64:php command-line tools

Common Files for php-common.x86_64:php

Php-fpm.x86_64:php's fastcgi process Management module. Mainly used in configuration Nginx, if configured as Apache, not the word module

php-gd.x86_64:php GD Library, mainly for image processing

PHP-IMAP.X86_64:PHP's IMAP module

Php-ldap.x86_64:php's LADP module

php-mbstring.x86_64:php Multi-byte character processing module

php-snmp.x86_64:php SNMP Protocol Module

php-xml.x86_64:php XML Module

Php-zts.x86_64:php's thread-safe module. This is for Apache, working in Apache's worker mode. This column is only for discussion of the use of the child module, the effect is unknown, the installation command will not be installed. I hope someone who knows can send me a message. I discuss this module's work with Apache. However, since this module is provided in CentOS, it is believed that its stability has been validated.

Install Command:

Yum install php php-cli php-common php-fpm php-gd php-imap php-ldap php-mbstring php-snmp

3, the Apache installation

The server I purchased is installed by default and does not need to be installed again

If you need to install, the command is:

Yum Install httpd

4, start the service

Service mysqld Start
Service httpd Start

Open the browser, input IP should be able to see the Welcome page at this time.

Aliyun Server Installation configuration vsftpd--based on CentOS 6.3

1. Update Yum Source

I was yum update directly.

2. Installation Vsftp

Install VSFTPD using the Yum command

#yum Install Vsftpd-y

3, add FTP account and directory

Check the position of the nologin first, usually under/usr/sbin/nologin or/sbin/nologin.

Use the following command to create an account that specifies the home directory of/www/wwwroot as the user pwftp you can define your own account name and directory:

#useradd-D/www/wwwroot-s/sbin/nologin pwftp

Modify the account password:

#passwd pwftp

Modify permissions for the specified directory

#chown-R Pwftp:pwftp/www/wwwroot

This is the right way to make an error, to do the following before executing this command:

mkdir www
CD www
mkdir wwwroot

4. Configure Vsftp

Edit the VSFTPD configuration file with the following command:

#vi/etc/vsftpd/vsftpd.conf

Change "Anonymous_enable=yes" to "Anonymous_enable=no" in the configuration file

Remove the annotation symbol before the following configuration:

Local_enable=yes
Write_enable=yes
Chroot_local_user=yes

Save changes, press ESC, enter: WQ

5. Modify Shell Configuration

VI Edit/etc/shells, if there is no/usr/sbin/nologin or/sbin/nologin in the file (see the current system configuration) append it

6. Start vsftp Service and test login

To start the VSFTPD service with a command:

#service vsftpd Start

Then use the Account PWFTP test whether can log on FTP. The directory is/www/wwwroot.

Here I directly with client software FileZilla clients login, tested, completely correct.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.