您现在的位置是:网站首页> 编程资料编程资料
Ubuntu10.10 Zend FrameWork配置方法及helloworld显示 _Ubuntu/Debian_操作系统_
2023-03-28
628人已围观
简介 Ubuntu10.10 Zend FrameWork配置方法及helloworld显示 _Ubuntu/Debian_操作系统_
一、大概思路
1.1、

(备注:安装Zend Framework,其附带apache2和php5)
1.2、

二、Zend Framework配置
2.1、安装Zend Framework
在ubuntu10.10的软件中心安装zf.

2.2、激活apache的rewrite模块
命令行输入:sudo a2enmod rewrite
2.3、配置PHP5路径
配置include_path路径信息,修改/etc/php5/con.d目录下的zend-framework.ini
终端输入:sudo gedit /etc/php5/conf.d/zend-framework.ini

2.4、创建firstProject项目
终端输入:zf create project firstProject
(其路径默认为 Ubuntu主文件目录下)

2.5、在Apache2建立firstProject项目配置文件
因为apache默认的web目录是在/var/www下,为了能够让 apache自动定位到指定目录下的web应用,这里我们在/etc/apache2/conf.d中创建一个关于firstProject的配置文件,称为 firstProject.conf。
终端输入:sudo gedit /etc/apache2/conf.d/firstProject.conf
文件的内容是:
Alias /firstProject "/home/administrator/firstProject/public/"
Allow from all
RewriteEngine on
RewriteBase /firstProject
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !\.(css|js|jpg|gif|png|swf|flv)$ index.php
Options FollowSymlinks MultiViews
AllowOverride All
2.6、修改项目firstProject的public文件下的.htaccess
增加一行RewriteBase /firstProject
(.htaccess默认是隐藏的,可按快捷键Ctrl+H显示出来)
相关内容
- 一个Debian装机脚本代码_Ubuntu/Debian_操作系统_
- Ubuntu 搭建LNMP环境图文教程 安装MySQL数据库_Ubuntu/Debian_操作系统_
- Ubuntu系统中防火墙UFW设置(-ufw-iptables)_Ubuntu/Debian_操作系统_
- Ubuntu/Debian上安装Nginx+php环境详细教程_Ubuntu/Debian_操作系统_
- Ubuntu默认防火墙安装、启用、配置、端口、查看状态相关信息_Ubuntu/Debian_操作系统_
- squid的dns配置问题_Ubuntu/Debian_操作系统_
- 将ubuntu的最小化,最大化,关闭按钮改回右边的步骤_Ubuntu/Debian_操作系统_
- 用国内软件源为Ubuntu的apt-get提速方法_Ubuntu/Debian_操作系统_
- Ubuntu下基于格式化命令 格式化U盘的方法 _Ubuntu/Debian_操作系统_
- 在Ubuntu Server是配置iptables防火墙_Ubuntu/Debian_操作系统_
