简体   繁体   English

php 5.6.17没有php.ini

[英]php 5.6.17 has no php.ini

I'm trying to install composer to get laravel working. 我正在尝试安装composer来让laravel工作。 Composer gave me the following error: Composer给了我以下错误:

Some settings on your machine make Composer unable to work properly. 机器上的某些设置使Composer无法正常工作。 Make sure that you fix the issues listed below and run this script again: 确保您已修复下面列出的问题并再次运行此脚本:

The openssl extension is missing, which means that secure HTTPS transfers are impossible. 缺少openssl扩展,这意味着无法进行安全的HTTPS传输。 If possible you should enable it or recompile php with --with-openssl 如果可能,您应该启用它或使用--with-openssl重新编译php

According to this post I need to uncomment the openssl extension. 根据这篇文章,我需要取消注释openssl扩展。 composer not install in windows 7 作曲家无法在Windows 7中安装

The problem is I don't have a php.ini file in my php directory. 问题是我的php目录中没有php.ini文件。 There is a php.ini-development and php.ini-production. 有一个php.ini-development和php.ini-production。 Do I just rename one of them to php.ini? 我只是将其中一个重命名为php.ini吗?

This post is in regards to XAMPP, it says that the php.ini file needs to be edited and not the php.ini-development or php.ini.production. 这篇文章是关于XAMPP的,它说需要编辑php.ini文件而不是php.ini-development或php.ini.production。 Php.ini production vs development Php.ini生产与开发

I downloaded the non-thread safe php x86 from here http://windows.php.net/download/ 我从这里下载了非线程安全的php x86 http://windows.php.net/download/

Cheers 干杯

just copy paste php-development.ini and rename it to php.ini. 只需复制粘贴php-development.ini并将其重命名为php.ini。 php 7.0.3 is already out! php 7.0.3已经出来了!

use php.ini-development for your development server. 使用php.ini-development为您的开发服务器。 use php.ini-production for your production server. 使用php.ini-production为您的生产服务器。 Copy and rename it to php.ini 复制并重命名为php.ini

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM