Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Web security

Shulou Source: shulou.com Published: 2022-06-01 01:33:41 10月03日 Update

Browse around for all files and directories that apache users can access

Lock the range that the php module can access (cage environment)

DocumentRoot / share/1310

ServerName 10.1.1.21

ErrorLog logs/10.1.1.21-error_log

CustomLog logs/10.1.1.21-access_log common

Options Indexes FollowSymLinks

AllowOverride All

Php_admin_value open_basedir "/ share/1310:/var/lib/php/session:/tmp"

Can execute system instructions

# vim / etc/php.ini

Disable_functions = exec,shell_exec,system,passthru,popen

You can delete files that can be deleted by apache users, typically you can delete files in the website directory

You can modify the site page

The valid identity of the httpd process is apache

Suppose the website directory / var/www/html/ root:root 755

Tags: Files policies websites directories data programs initiatives code users protection reports accounts encryption compilation properties tools databases systems updates general Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MySQL Shulou Technology Redmi MariaDB