Home > Backend Development > PHP Problem > What should I do if php fails to add environment variables?

What should I do if php fails to add environment variables?

藏色散人
Release: 2023-03-14 21:18:01
Original
3314 people have browsed it

Solution to the failure of adding environment variables to php: 1. Find the environment variable and select "Path->Edit"; 2. Add environment variables; 3. Modify the php.ini configuration; 4. Change all cmd Just close and reopen it.

What should I do if php fails to add environment variables?

The operating environment of this article: Windows 10 system, PHP version 7.3, DELL G3 computer

php failed to add environment variables what to do?

windows10 cmd command line to add php environment variable invalid problem solution

Integrated environment: phpStudy

You can also download php separately: https: //windows.php.net/downloads/releases/archives/

The first step is to configure environment variables:

Right-click on My Computer->Properties->Advanced System Settings-> ;Environment Variables->Select Path->Edit

Step 2: Add environment variables

Step 3: Modify the php.ini configuration, delete the (;) semicolon in the following two lines and save it

On windows:

extension_dir = "ext"

Part 4: Close all cmd and reopen it, try again

Recommended learning: "PHP Video Tutorial

The above is the detailed content of What should I do if php fails to add environment variables?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template