ubuntu11.04下搭建php环境
这里只是搭建一个最基本的环境,很简单依次执行以下命令:
sudo apt-get install apache2 sudo apt-get install mysql-server sudo apt-get install php5 libapache2-mod-php5 php5-mysql
sudo ln -s /home/username/php /var/www/php
<?php phpinfo(); ?>
sudo /etc/init.d/apache2 restart
sudo apt-get install php5-gd sudo apt-get install libapache2-mod-auth-mysql sudo apt-get install mysql-client sudo apt-get install libapache2-svn // 在/etc/init.d/apache2/mods-enabled/php5.conf中添加下面一行 AddType application/x-httpd-php .php .phtml .php3