Home  >  Article  >  Backend Development  >  How to install php environment in deepin

How to install php environment in deepin

藏色散人
藏色散人Original
2021-06-03 09:32:503000browse

How to install the php environment in deepin: 1. Install apache and php through the command "sudo apt install php"; 2. Modify the apache configuration file; 3. Install the php extension.

How to install php environment in deepin

The operating environment of this article: Windows7 system, PHP7.2 version, DELL G3 computer

deepin installation php running environment

Install apache and php

Command: sudo apt install php

After executing the above command, apache2 and php7.2 will be automatically installed.

The apache configuration file is in /etc/apache2

The php configuration file is in /etc/php/7.2/apache

The php installation directory is in /usr/lib/ php

The php extension directory is in /usr/lib/php/20170718

Enable apache rewriting

Modify the apache configuration file

File location:/etc/apache2/apache2.conf

Change AllowOverride None in the file and change None to All

<Directory />
...
    AllowOverride All
 ...
</Directory>

Install php extension

Command: sudo apt install php7.2-extension

Install mysql

Recommended study: "PHP Video Tutorial"

The above is the detailed content of How to install php environment in deepin. For more information, please follow other related articles on the PHP Chinese website!

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