Windows subsystem ubuntu16.04 installs php7.0

不言
Release: 2023-03-24 18:56:01
Original
2360 people have browsed it

This article mainly introduces the installation of php7.0 in the windows subsystem ubuntu16.04. It has a certain reference value. Now I share it with you. Friends in need can refer to it

1. Install php7.0

$ sudo apt-get install php7.0

2. Install apache’s php module

$ sudo apt-get install libapache2-mod-php7.0

##3. When testing php and Apache, it works normally

$ sudo vim /etc/apache2/sites-available/000-default.conf View working directory


Add an index.php file under /var/www/html and enter

$ sudo service apache2 restart Restart apache

Browser input http://localhost/index.php The following information appears, success.


Related recommendations:

Install php 7 under centos 7

##centos7 YUM Install PHP5.6

The above is the detailed content of Windows subsystem ubuntu16.04 installs php7.0. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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