Ubuntu 12.10 安装 PHP sudo aptitude install tasksel sudo tasksel install lamp-server 安装时会提示设置 mysql 的 root 密码。 安装完毕! 就这么简单。