1.安装 
安装 apache2: 
sudo apt-get install apache2 
安装php模块: 
sudo apt-get install php5
2.修改,添加别名,apache2.conf文件
alias /client/ /var/www/client/directory/var/www/client/>        options indexes followsymlinks        allowoverride none        require all granteddirectory>
require all granted很重要,要根据apache的版本来决定。
3.重启 
sudo /etc/init.d/apache2 restart
4.如果php不能执行的话,考虑如下
在apache2.conf中找到 
include /etc/apache2/mods-enabled/*.load 
include /etc/apache2/mods-enabled/*.conf 
在其后面添加 
include /etc/apache2/mods-available/php5.load 
include /etc/apache2/mods-available/php5.conf
版权声明:本文为博主原创文章,未经博主允许不得转载。
                                                                    以上就介绍了ubuntu 安装简单php环境(不包含mysql),包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
   
 
   