Set up FTP server and Apache server on Ubuntu

Source: Internet
Author: User
Setting up an FTP server on Ubuntu10.0.4 is very simple: 1. Download and install vsftpd: Open the terminal and enter sudoapt-getinstallvsftpd. At this time, multiple ftp folders are added under the home directory. Installation is complete. 2. Then, start the ftp server: sudo/etc/init. d/vsftpdstart. At this time, a simple ftp server is set up. However, you can access it anonymously or

Setting up an FTP server on Ubuntu 10.0.4 is very simple:

1. Download and install vsftpd:

Open the terminal and enter

Sudo apt-get install vsftpd

In this case, an ftp folder is added to the home directory.

Installation is complete.

2. Then, start the ftp server:

Sudo/etc/init. d/vsftpd start

In this case, a simple ftp server is set up. However, the password can be accessed anonymously or through an ftp user name. To add a user and extend the function, you need to set/etc/vsftpd. conf.

Vftpd has three types of users. The first category is anonymous users, the second category is local users, and the third category is guest users. A local user is a logon user on a linux server. The third type of guest is an external account that needs to be allocated separately.

In vftpd. conf, you can easily set these users and their permissions, and set to lock the main directory, download rate, upload rate, and so on. Each setting has a more detailed explanation. If the English is good, there is no problem.

Setting up an apache server on ubuntu is also very simple:

1. Download and install apache2

Open the terminal and enter

Sudo apt-get install apache2

2. After installation, start the apache2 server.

Sudo/etc/init. d/apache start

3. The home page of the default server is located in/var/www.

To install php,

Then sudo apt-get install libapache2-mod-php5

4. Put a php file in var/www to test whether php is successfully installed.

Phpinfo is a function in php used to display environment information.

Sudo sh-c "echo' '>/Var/www/info. php"

Open the browser and enter localhost/info. php. If the php and environment information is displayed, the installation is successful.

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.