Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to quickly install and deploy LAMP and vsftpd under CentOS6.3

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of how to quickly install and deploy LAMP and vsftpd under CentOS6.3, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will get something after reading this article on how to quickly install and deploy LAMP and vsftpd under CentOS6.3. Let's take a look.

1. Installation of mysql

The software packages involved in the mysql installation:

Mysql: mysql client and underlying library files.

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

Mysql-server: mysql server side and related files.

Installation commands:

Yum intall mysql mysql-libs mysql-server

2. Installation of php

Preparatory work:

Epel software is also required to be pre-installed. This section is not installed or affected here, but some software that is not available in standard software sources may be installed in future tutorials, so installation commands are given here.

Installation commands:

Wget

Rpm-ivh epel-release-6-8.noarch.rpm

Php installation involves software packages:

Php.x86_64: server-side php program

Php-cli.x86_64: a command line tool for php

Php-common.x86_64: public files for php

Php-fpm.x86_64: php's fastcgi process management module. It is mainly used to configure nginx. If it is configured as apache, there is no word module installed.

Php-gd.x86_64: php's gd library, mainly used for image processing

Php-imap.x86_64: imap module of php

Php-ldap.x86_64: ladp module of php

Php-mbstring.x86_64: multi-byte character processing module of php

Php-snmp.x86_64: snmp protocol module of php

Php-xml.x86_64: xml module of php

Php-zts.x86_64: thread safety module for php. This is for apache and works in apache's worker mode. It is listed here only to discuss the use of the sub-module, the specific effect is unknown, and it will not be installed in the installation command. I hope someone who knows it can send me a message to discuss the working effect of this module and apache. However, since this module is provided in centos, it is believed that its stability has been verified.

Installation commands:

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

3. Installation of apache

The server I purchased has been installed by default, so there is no need to install it again

If installation is required, the command is:

Yum install httpd

4. Start the service

Service mysqld start

Service httpd start

Open the browser, type ip, and you should see the welcome page.

Install and configure vsftpd under Ali CVM-- based on centos 6.3

1. Update the yum source

I updated it directly with yum update.

2. Install vsftp

Use the yum command to install vsftpd

# yum install vsftpd-y

3. Add ftp account and directory

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

Create an account using the following command, which specifies / www/wwwroot as the home directory of the user pwftp, and you can define the account name and directory yourself:

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

Change the account password:

# passwd pwftp

Modify the permissions of the specified directory

# chown-r pwftp:pwftp / www/wwwroot

To report an error if you do this directly, 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

Unconfigure the comment symbols as follows:

Local_enable=yes

Write_enable=yes

Chroot_local_user=yes

To save the changes, press the ESC key and enter: wq

5. Modify shell configuration

Vi editor / etc/shells, if there is no / usr/sbin/nologin or / sbin/nologin in the file (depending on the current system configuration), then append it

6. Start the vsftp service and test login

Use the command to start the vsftpd service:

# service vsftpd start

Then use the account pwftp to test whether you can log in to ftp. The directory is / www/wwwroot.

Here I directly use the client software filezilla client to log in, after testing, it is completely correct.

This is the end of the article on "how to quickly install and deploy LAMP and vsftpd under CentOS6.3". Thank you for reading! I believe that everyone has a certain understanding of "how to quickly install and deploy LAMP and vsftpd under CentOS6.3". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report