Home >Backend Development >PHP Tutorial >Detailed explanation of php.ini security configuration

Detailed explanation of php.ini security configuration

WBOY
WBOYOriginal
2016-07-25 08:56:101242browse
  1. net user mysqlstart ****microsoft /add
  2. net localgroup users mysqlstart /del
Copy code

Does not belong to any group

If MYSQL is installed in d:mysql, then give mysqlstart full control permissions. Then, set the MYSQL service properties in the system service. In the login properties, select this user mysqlstart and enter the password and confirm.

Restart the MYSQL service, and then MYSQL will run with low privileges.

If apache is built on a windos platform, be sure to note that apache runs with system permissions by default. At this time, be sure to reduce the rights of apache to run:

  1. net user apache ****microsoft /add
  2. net localgroup users apache /del
Copy code

Create a user apache that does not belong to any group.

Open Computer Manager, select "Services", click on the properties of the apache service, select log on, select this account, fill in the account and password created above, and restart the apache service.

You can also set the permissions of each folder so that the apache user can only perform limited operations and create a separate read-write user for each directory.

This is about the configuration of the security options in the php.ini file. The security of the program cannot be relaxed at all. It is recommended that everyone develop good security programming habits in actual PHP programming.



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn