In today's internet era, building personal websites and FTP servers is no longer the exclusive domain of technical professionals. With the built-in IIS (Internet Information Services) manager in Windows, ordinary users can easily set up their own websites and FTP servers on personal computers. This article will detail how to create a simple website and FTP service through the IIS manager, enabling file sharing and site management.
1. Install and Enable IIS#
Step 1: Enable IIS Service
- Open Control Panel -> Programs -> Turn Windows features on or off.
- Find Internet Information Services (IIS), check all related options, especially Web Management Tools and FTP Server.
- Click OK and wait for the installation to complete.
Step 2: Start IIS Manager
- Search for IIS Manager in the Start Menu and click to enter. You can now manage your website and FTP services through the IIS Manager.
2. Build a Website Using IIS Manager#
Step 1: Create a Site Folder
- Create a folder on your hard drive to store your website files, such as
C:\MyWebsite
. - Place the HTML files, images, CSS, JavaScript, and other resources you want to publish into this folder.
- Right-click on the folder, select properties, click the "Sharing" tab -> Advanced Sharing, share this folder, and set permissions to read.
Step 2: Configure the Website in IIS
- In the left tree view of the IIS Manager, right-click on Sites, and select Add Website.
- Site Name: Enter your site name (e.g., "MyWebsite").
- Physical Path: Select the folder you just created
C:\MyWebsite
. - Binding Settings: Choose an IP address or use
All Unassigned
, keep the port as the default 80, and if you want to access it with a specific domain name, enter your domain in the Host Name field. - Click OK, and the website will immediately appear in IIS.
Step 3: Start the Site
- In the IIS Manager, right-click on the website you just created and select Start.
- You can now access your personal website by visiting
http://localhost
(or the bound IP/domain).
3. Set Up an FTP Server Using IIS#
Step 1: Create FTP Root Directory
- Create a directory on your hard drive to serve as the root directory for the FTP server, such as
C:\MyFTP
.
Step 2: Configure the FTP Site
- In the IIS Manager, right-click on FTP Sites under the Sites section, and select Add FTP Site.
- Site Name: Enter the name of your FTP site (e.g., "MyFTP").
- Physical Path: Select
C:\MyFTP
as the FTP root directory. - Binding and SSL Settings: Set the IP address to
All Unassigned
, and choose port 21 (the default FTP port). If a secure connection is not needed, select No SSL. - Click Next.
Step 3: Authentication and Authorization
- Authentication: Select Basic.
- Authorization: Choose user groups and permissions. You can opt to provide read and write permissions for all users or customize permissions as needed.
- After completing the settings, click Finish, and the FTP site will be successfully created.
Step 4: Configure User Accounts
- Open Control Panel -> User Accounts -> Manage other accounts, add a local user or use an existing local account to access FTP.
- Return to IIS Manager, select FTP Authentication, enable Basic Authentication, and set the appropriate user permissions.
4. Testing and Usage#
Test the Website
- Enter
http://localhost
or the bound domain/IP in your browser to check if your personal website displays correctly.
Test the FTP Server
- In Windows Explorer, enter
ftp://localhost
, then log in using the account name and password you set. - You can upload and download files using an FTP client (like FileZilla) or the built-in Windows Explorer.
Summary#
Through the IIS Manager, Windows users can easily set up websites and FTP servers on their personal computers. While this is a simple local solution, it is suitable for personal learning, testing, and small-scale file sharing. If you wish to deploy larger-scale websites or FTP services, consider using professional servers or cloud hosting services.
(This article was assisted by Chat GPT)