1. 安装Apache
sudo apt-get install apache2
2. 安装PHP
sudo apt-get install libapache2-mod-php5 php5
3. 安装Mysql
sudo apt-get install mysql-server mysql-common mysql-admin sudo apt-get install php5-mysql
4. 安装phpmyadmin
sudo apt-get install phpmyadmin
5. 修改apache配置文件
sudo vim /etc/apache2/sites-available/default
加入以下代码
Alias /phpmyadmin/ "/usr/share/phpmyadmin/" <Directory "/usr/share/phpmyadmin/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory>
重启apache服务器
/etc/init.d/apache2 restart
6. PDT 的安装
6.1 安装 JDK或JRE
JRE 与JDK 的区别: JRE 是个运行环境,JDK 是个开发环境。因此写Java程序的时候需要JDK ,而运行 Java程序的时候就需要JRE
sudo apt-get install sun-java6-jre sudo apt-get install sun-java6-jdk
6.2 下载Eclipse
6.3 解压
sudo tar -zxvf ‘/home/hunter/下载/eclipse-php-galileo-SR2-linux-gtk.tar.gz’
6.4 建立桌面图标
sudo gedit /usr/share/applications/eclipse.desktop
[Desktop Entry] Encoding=UTF-8 Name=Eclipse Comment=Eclipse IDE Exec=/home/farlee/eclipse/eclipse //改成自己安装Eclipse可执行文件的目录路径 Icon=/home/farlee/eclipse/icon.xpm //改成自己的Eclipse 图标路径 Terminal=false StartupNotify=true Type=Application Categories=Application;Development;
6.5 安装Zend Framework,SVN
点击菜单 Help>Install New Software
添加一个本地库
http://downloads.zend.com/studio-eclipse/updates/8_0
选中 Zend Studio Feature下的以下两项
“Zend Studio CE Feature” (for project perspective) and
“Zend Debugger Feature” (fro debugging if you like it)
点击菜单 Help>Install New Software
添加一个本地库
http://subclipse.tigris.org/update_1.6.x
7. 安装 Zend Framework
sudo apt-get install zend-framework sudo a2enmod rewrite sudo /etc/init.d/apache2 restart sudo /etc/php5/apache2/php.ini
参考文档:
How to work with SVN and Zend Framework in Eclipse PDT
http://inchoo.net/tools/how-to-work-with-svn-and-zend-framewrok-in-eclipse-pdt/