- 1 pear安装
- php5.2 安装pear总是出错
- 到http://snaps.php.net/下载最新的php5.2包
- 安装这个包(覆盖原本的php5)
- 开始>>运行
- >>cmd
- >>go-pear
- 选择 system方式
- 回车
- 然后安装
- 中间选择y覆盖php.ini文件
- 在php5目录下生成一个PEAR_ENV.reg
- 双击将其加入注册表中。
- >>pear info pear验证pear的安装
- 2 symfony安装
- cmd
- 将symfony频道加入到pear中
- D:/php5>>pear channel-discover pear.symfony-project.com
- 查看可用的symfony列表
- D:/php5>>pear remote-list -c symfony
- CHANNEL SYMFONY AVAILABLE PACKAGES:
- ===================================
- PACKAGE VERSION
- pake 1.1.4
- sfEzpdo -n/a-
- symfony 1.1.4
- 安装最新稳定版的symfony
- D:/php5>pear install symfony/symfony、
- downloading symfony-1.1.4.tgz ...
- Starting to download symfony-1.1.4.tgz (2,133,163 bytes)
- ..................done: 2,133,163 bytes
- install ok: channel://pear.symfony-project.com/symfony-1.1.4
- 验证symfony的安装
- D:/php5>symfony -V
- symfony version 1.1.4 (D:/php5/PEAR/symfony)
- 将symfony添加到环境变量的Path里面
- ;d:/php5/
- symfony.bat所在的目录就是
- 重启计算机
- 建立项目
- D:/www>mkdir mysymfony
- D:/www>cd mysymfony
- D:/www/mysymfony>D:/www>cd mysymfony
- D:/www/mysymfony>symfony init-project mysymfony
- >> dir+ D:/www/mysymfony/apps
- >> dir+ D:/www/mysymfony/cache
- >> dir+ D:/www/mysymfony/config
- >> file+ D:/www/mysymfony/config/databases.yml
- >> file+ D:/www/mysymfony/config/ProjectConfiguration.class.php
- >> file+ D:/www/mysymfony/config/propel.ini
- >> file+ D:/www/mysymfony/config/properties.ini
- >> file+ D:/www/mysymfony/config/rsync_exclude.txt
- >> file+ D:/www/mysymfony/config/schema.yml
- >> dir+ D:/www/mysymfony/data
- >> dir+ D:/www/mysymfony/doc
- >> dir+ D:/www/mysymfony/lib
- >> dir+ D:/www/mysymfony/log
- >> dir+ D:/www/mysymfony/plugins
- >> file+ D:/www/mysymfony/symfony
- >> dir+ D:/www/mysymfony/test
- >> dir+ D:/www/mysymfony/test/bootstrap
- >> file+ D:/www/mysymfony/test/bootstrap/functional.php
- >> file+ D:/www/mysymfony/test/bootstrap/unit.php
- >> dir+ D:/www/mysymfony/test/functional
- >> dir+ D:/www/mysymfony/test/unit
- >> dir+ D:/www/mysymfony/web
- >> file+ D:/www/mysymfony/web/.htaccess
- >> dir+ D:/www/mysymfony/web/css
- >> file+ D:/www/mysymfony/web/css/main.css
- >> dir+ D:/www/mysymfony/web/images
- >> dir+ D:/www/mysymfony/web/js
- >> file+ D:/www/mysymfony/web/robots.txt
- >> dir+ D:/www/mysymfony/web/uploads
- >> dir+ D:/www/mysymfony/web/uploads/assets
- >> tokens D:/www/mysymfony/config/propel.ini
- >> tokens D:/www/mysymfony/config/properties.ini
- >> tokens D:/www/mysymfony/config/ProjectConfiguration.class.php
- >> chmod 777 D:/www/mysymfony/cache
- >> chmod 777 D:/www/mysymfony/log
- >> chmod 777 D:/www/mysymfony/web/uploads
- >> chmod 777 D:/www/mysymfony/symfony
- >> chmod 777 D:/www/mysymfony/web/uploads/assets
- 在项目中建立应用程序
- D:/www/mysymfony>symfony init-app myapp
- >> dir+ D:/www/mysymfony/apps/myapp/config
- >> file+ D:/www/mysymfony/apps/myapp/config/app.yml
- >> file+ D:/www/mysymfony/apps/myapp/con...licationConfiguration.class.php
- >> file+ D:/www/mysymfony/apps/myapp/config/cache.yml
- >> file+ D:/www/mysymfony/apps/myapp/config/factories.yml
- >> file+ D:/www/mysymfony/apps/myapp/config/filters.yml
- >> file+ D:/www/mysymfony/apps/myapp/config/routing.yml
- >> file+ D:/www/mysymfony/apps/myapp/config/security.yml
- >> file+ D:/www/mysymfony/apps/myapp/config/settings.yml
- >> file+ D:/www/mysymfony/apps/myapp/config/view.yml
- >> dir+ D:/www/mysymfony/apps/myapp/i18n
- >> dir+ D:/www/mysymfony/apps/myapp/lib
- >> file+ D:/www/mysymfony/apps/myapp/lib/myUser.class.php
- >> dir+ D:/www/mysymfony/apps/myapp/modules
- >> dir+ D:/www/mysymfony/apps/myapp/templates
- >> file+ D:/www/mysymfony/apps/myapp/templates/layout.php
- >> tokens D:/www/mysymfony/apps/myapp/config/settings.yml
- >> file+ D:/www/mysymfony/web/index.php
- >> file+ D:/www/mysymfony/web/myapp_dev.php
- >> tokens D:/www/mysymfony/web/index.php
- >> tokens D:/www/mysymfony/web/myapp_dev.php
- >> rename D:/www/mysymfony/apps/myapp/con...ig/myappConfiguration.class.php
- >> tokens D:/www/mysymfony/apps/myapp/config/myappConfiguration.class.php
- >> chmod 777 D:/www/mysymfony/cache
- >> chmod 777 D:/www/mysymfony/log
- >> chmod 777 D:/www/mysymfony/web/uploads
- >> chmod 777 D:/www/mysymfony/symfony
- >> chmod 777 D:/www/mysymfony/web/uploads/assets
- >> dir+ D:/www/mysymfony/test/functional/myapp
- 结果是在apps里面建立了一个应用程序文件夹框架
symfony安装笔记
最新推荐文章于 2024-08-13 14:54:57 发布