Home > Backend Development > PHP Tutorial > Ubuntu上安装php环境

Ubuntu上安装php环境

WBOY
Release: 2016-06-13 13:24:34
Original
931 people have browsed it

Ubuntu下安装php环境
   安装 Apache2:

  sudo apt-get install apache2

  安装PHP模块:

  sudo apt-get install php5

  安装Mysql

  sudo apt-get install mysql-server

  其他模块安装:

  sudo apt-get install libapache2-mod-php5

  sudo apt-get install libapache2-mod-auth-mysql

  sudo apt-get install php5-mysql

  sudo apt-get install php5-gd

安装成功之后,使用localhost 测试下就可以了
然后新建了一个test.php里面调用phpinfo()  也测试成功。

原本以为linux下安装php会很麻烦,现在看来也不是特别复杂。

很多时候,人总是被表象所吓到!~要尝试, 要体验!

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