1.下载并安装composer
http://pkg.phpcomposer.com/

=========================================================================

命令行中如果无法运行php等命令,请确保对应目录已添加到环境变量中。

=============================================================
2.新建站点目录,在站点目录中使用如下命令下载lavarel
composer create-project --prefer-dist laravel/laravel learnlaravel5

=========================================================================

如果出现The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.
这个错误。使用以下命令关闭错误:composer config -g -- disable-tls true

=========================================================================

安装laravel过程中需要用到git
git下载地址:http://git-scm.com/download/win
git安装时选择git bash和windows command 同时支持运行。

=========================================================================
-----出现Could not find package lavarel/laravel with stability stable .错误,其实是输错了名称导致。另外不排除php版本的问题,中间装了一下php5.6。lavarel5.2要求php5.5以上。

=========================================================================
windows8下运行php Composer出现ssl报错的问题:
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: SSL
operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed
Failed to enable crypto
failed to open stream: operation failed
----类似以上错误

这是没有安装CA证书导致的!!!

CA证书下载地址:http://curl.haxx.se/docs/caextract.html

然后修改php.ini文件

openssl.cafile= D:/wamp/php/verify/cacert.pem

=========================================================================

最新文章

  1. Android 隐藏关闭软键盘
  2. 2016弱校联盟十一专场10.2---Around the World(深搜+组合数、逆元)
  3. Mysql数据库的通用安装方法
  4. July 25th, Week 31st Monday, 2016
  5. Configure the AD FS server for claims-based authentication -zhai zi wangluo
  6. The version of CocoaPods used to generate the lockfile (*) is higher than the version of the current executable (*). Incompatibility issues may arise.
  7. BufferedOutputStream
  8. java.io.FileNotFoundException: /exapp/hadoop/name/current/VERSION (Permission denied)
  9. SharePoint2013基于Form(FBA)的AD认证登陆
  10. 简谈-如何使用Python和R组合完成任务
  11. Linux-进程描述(5)之进程环境
  12. iOS中多种方式实现打电话、发短信、写邮件
  13. C# 获取 串口 设备名称 与 串口号 ManagementObjectSearcher类
  14. Node.js 串口通讯 node-serialport 使用说明
  15. linux下maven的安装
  16. 和 (DFS)
  17. BZOJ3932[CQOI2015]任务查询系统——主席树
  18. Go语言规格说明书 之 类型(Types)
  19. js获取n分钟(或n小时或n个月)后(或前)的时间(日期)
  20. jdk1.8配置环境变量

热门文章

  1. input type=file 标签禁止让用户手动输入
  2. paper 54 :图像频率的理解
  3. paper 23 :Kullback–Leibler divergence KL散度(2)
  4. sql except 用法,找两个表中非共同拥有的
  5. CCS3属性之text-overflow:ellipsis;的用法和注意之处
  6. 【转】转换到 COFF 期间失败: 文件无效或损坏
  7. wghd的git代码仓库分支管理说明【转】
  8. Java URLClassLoader和ClassLoader
  9. C# Community Projects
  10. settings.xml