Ubuntu 10.04.2 LTS 搭建LAMP 开发平台
1. 安装Apachesudo 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-adminsudo apt-get install php5-mysql 4. 安装phpmyadmin
sudo apt-get install phpmyadmin5. 修改apache配置文件
sudo vim /etc/apache2/sites-available/default 加入以下代码
Alias /phpmyadmin/ "/usr/share/phpmyadmin/"<Directory "/usr/share/phpmyadmin/">Options Indexes MultiViews FollowSymLinks AllowOverride NoneOrder 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-jresudo apt-get install sun-java6-jdk 6.2 下载Eclipse
网址:http://www.eclipse.org/
6.3 解压
sudo tar -zxvf ‘/home/hunter/下载/eclipse-php-galileo-SR2-linux-gtk.tar.gz’ 6.4 建立桌面图标
sudo gedit /usr/share/applications/eclipse.desktop Encoding=UTF-8Name=EclipseComment=Eclipse IDEExec=/home/farlee/eclipse/eclipse //改成自己安装Eclipse可执行文件的目录路径Icon=/home/farlee/eclipse/icon.xpm //改成自己的Eclipse 图标路径Terminal=falseStartupNotify=trueType=ApplicationCategories=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-frameworksudo a2enmod rewritesudo /etc/init.d/apache2 restartsudo /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/
页:
[1]