Home  >  Article  >  Backend Development  >  Windows subsystem ubuntu16.04 installs php7.0

Windows subsystem ubuntu16.04 installs php7.0

不言
不言Original
2018-04-24 13:52:102300browse

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!

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