windows下安装laravel简单步骤以及碰到的问题
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
=========================================================================
最新文章
- Android 隐藏关闭软键盘
- 2016弱校联盟十一专场10.2---Around the World(深搜+组合数、逆元)
- Mysql数据库的通用安装方法
- July 25th, Week 31st Monday, 2016
- Configure the AD FS server for claims-based authentication -zhai zi wangluo
- The version of CocoaPods used to generate the lockfile (*) is higher than the version of the current executable (*). Incompatibility issues may arise.
- BufferedOutputStream
- java.io.FileNotFoundException: /exapp/hadoop/name/current/VERSION (Permission denied)
- SharePoint2013基于Form(FBA)的AD认证登陆
- 简谈-如何使用Python和R组合完成任务
- Linux-进程描述(5)之进程环境
- iOS中多种方式实现打电话、发短信、写邮件
- C# 获取 串口 设备名称 与 串口号 ManagementObjectSearcher类
- Node.js 串口通讯 node-serialport 使用说明
- linux下maven的安装
- 和 (DFS)
- BZOJ3932[CQOI2015]任务查询系统——主席树
- Go语言规格说明书 之 类型(Types)
- js获取n分钟(或n小时或n个月)后(或前)的时间(日期)
- jdk1.8配置环境变量
热门文章
- input type=file 标签禁止让用户手动输入
- paper 54 :图像频率的理解
- paper 23 :Kullback–Leibler divergence KL散度(2)
- sql except 用法,找两个表中非共同拥有的
- CCS3属性之text-overflow:ellipsis;的用法和注意之处
- 【转】转换到 COFF 期间失败: 文件无效或损坏
- wghd的git代码仓库分支管理说明【转】
- Java URLClassLoader和ClassLoader
- C# Community Projects
- settings.xml