• Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
logo logo
  • Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
ENEN
  • 简体简体
  • 繁體繁體
Client Area

Apache for Newbie: Set up Apache with mod_status

December 17, 2023

Apache for Newbie: Set up Apache with mod_status

Apache is one of the most popular web servers in the world, known for its stability, flexibility, and security. If you are new to Apache and want to learn how to set it up with mod_status, this article is for you. Mod_status is an Apache module that provides detailed information about the server’s performance and current connections. It can be a valuable tool for monitoring and troubleshooting your Apache server.

Step 1: Install Apache

The first step is to install Apache on your server. If you are using a VPS hosting service like Server.HK, you can easily install Apache using the package manager provided by your operating system. For example, on a Ubuntu server, you can run the following command:

sudo apt-get update
sudo apt-get install apache2

Once the installation is complete, you can start Apache using the following command:

sudo systemctl start apache2

You can also enable Apache to start automatically on boot:

sudo systemctl enable apache2

Step 2: Enable mod_status

Mod_status is not enabled by default in Apache. To enable it, you need to edit the Apache configuration file. On Ubuntu, the configuration file is located at /etc/apache2/apache2.conf. Open the file using a text editor:

sudo nano /etc/apache2/apache2.conf

Scroll down to the end of the file and add the following lines:

ExtendedStatus On

    SetHandler server-status
    Require all granted

Save the file and exit the text editor. Then, restart Apache for the changes to take effect:

sudo systemctl restart apache2

Step 3: Access mod_status

Now that mod_status is enabled, you can access it using a web browser. Open your browser and enter the following URL:

http://your-server-ip/server-status

Replace your-server-ip with the IP address or domain name of your server. If everything is set up correctly, you should see a page with detailed information about your Apache server’s performance and current connections.

Conclusion

Setting up Apache with mod_status can be a useful way to monitor and troubleshoot your Apache server. By following the steps outlined in this article, you should now have mod_status up and running on your server. If you are interested in VPS hosting solutions, consider checking out Server.HK. They offer reliable and secure VPS hosting services with excellent customer support.

Recent Posts

  • CN2 GIA vs BGP vs CN2 GT: What’s the Real Difference for China Connectivity?
  • Top 5 Use Cases for a Hong Kong Dedicated Server in 2026
  • Hong Kong VPS vs Japan VPS: Head-to-Head for Asia-Pacific Deployments in 2026
  • Hong Kong VPS vs Singapore VPS: Which Is Better for Your Asia Business in 2026?
  • How to Migrate from CentOS 8 to AlmaLinux or Rocky Linux Safely

Recent Comments

No comments to show.

Knowledge Base

Access detailed guides, tutorials, and resources.

Live Chat

Get instant help 24/7 from our support team.

Send Ticket

Our team typically responds within 10 minutes.

logo
Alipay Cc-paypal Cc-stripe Cc-visa Cc-mastercard Bitcoin
Cloud VPS
  • Hong Kong VPS
  • US VPS
Dedicated Servers
  • Hong Kong Servers
  • US Servers
  • Singapore Servers
  • Japan Servers
More
  • Contact Us
  • Blog
  • Legal
© 2026 Server.HK | Hosting Limited, Hong Kong | Company Registration No. 77008912
Telegram
Telegram @ServerHKBot