jxwjq 发表于 2015-8-2 07:18:01

->ubuntu的lamp(apache+php+mysql+phpmyadmin)环境配置过程:

  ->ubuntu的lamp(apache+php+mysql+phpmyadmin)环境配置过程:
  
  最好以管理员root 账户登入(刚安装好,没有root账户,可通过命令:sudo passwd root ;新建root账户,并设置密码)
  sudo apt-get update                     //更新软件包
  sudo apt-get install mysql-client mysql-server        //安装Mysql (30M大小) (安装过程提示输入mysql的管理员root的密码:)
  sudo apt-get install apache2                 //安装Apache2 (16M大小)
  sudo apt-get install php5 libapache2-mod-php5       //安装PHP (8868KB大小)
  sudo /etc/init.d/apache2 restart               //重新启动Apache服务 (此时可在 /var/www/ 服务器根目录下创建:info.php,对其编辑:; 打开浏览器,      
  输入 localhost/info.php 如果看到php的标识,就说明php安装成功)
  sudo apt-get install php5-mysql               //php与mysql关系
  /*额外服务,可根据需要选择安装*/
  sudo apt-get install php5-curl
  sudo apt-get install php5-gd
  sudo apt-get install php5-idn
  sudo apt-get install php-pear
  sudo apt-get install php5-imagick   
  sudo apt-get install php5-imap
  sudo apt-get install php5-mcrypt
  sudo apt-get install php5-memcache
  sudo apt-get install php5-ming
  sudo apt-get install php5-ps
  sudo apt-get install php5-pspell
  sudo apt-get install php5-recode
  sudo apt-get install php5-snmp
  sudo apt-get install php5-sqlite
  sudo apt-get install php5-tidy
  sudo apt-get install php5-xmlrpc
  sudo apt-get install php5-xsl
  sudo apt-get install php5-common
  
  sudo apt-get install phpmyadmin                   //安装phpmyadmin 安装过程选择:apache2
页: [1]
查看完整版本: ->ubuntu的lamp(apache+php+mysql+phpmyadmin)环境配置过程: