This hosting maintenance note, published on March 19, 2015, is titled "8 Security Settings Techniques to Ensure the Security of Apache Web Servers." The actual environments or tools involved include PHP and Apache.
Software and deployment conditions
First, you need to ensure that you have installed the latest version of Apache, along with security patches and add-ons such as CGI, Perl, and PHP scripts. For example, you can refer to the articles "Setting up PuTTY SSH to log in to a Linux VPS host using a key" and "Setting up key login in Xshell to ensure greater security for your Linux VPS and server" to configure key login.
Domain and site configuration
The default Apache installation displays port and version information on the default page; this information needs to be hidden.
Parameters recorded in the original text
- Service TypesShared hosting
Matters mentioned in the article
- First, update the system regularly.
- Second, setting up and protecting our SSH security.
- Third, disable unused services.
- Fourth, disable unnecessary Apache modules.
- Fifth, make Apache run with the specified user and group.
- Sixth, prevent information leakage.
- Seventh, hide PHP version information
- Eighth, disable the automatic indexing module.
Usage Environment
PHP, Apache.
Key points to check
Environmental verificationFirst, confirm the actual web server and PHP runtime environment used by the site. Command-line and website processes may use different configuration files; any changes should be verified through the website entry point.