WAMPserver,两个php.ini文件 [英] WAMPserver, two php.ini files

查看:124
本文介绍了WAMPserver,两个php.ini文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种方法来更改phpmyadmin(mysql导入)中的最大文件大小.在发现有两个php.ini文件后,我就解决了该问题.:考虑到默认的安装路径,一个文件位于C:\ wamp \ bin \ apache \ Apache2.4.4 \ bin,而另一个文件位于C:\ wamp \ bin \ php \ php5.4.16.

I was looking for a way to change the max file size in phpmyadmin (mysql imports). I solved it after discovering there were two php.ini files: one is located at C:\wamp\bin\apache\Apache2.4.4\bin considering the default install path, while the other one is at C:\wamp\bin\php\php5.4.16.

这里有趣的方面是,当我想更改变量时,我应该注意apache/-位于的php.ini文件,而不是php/-位于的文件.

The funny aspect here is that, when I want to change variables, I should pay attention to the apache/-located php.ini file, instead of the php/-located one.

这是我的问题:为什么?为什么有两个php.ini文件而不是一个?我什至必须查看两个文件,具体取决于我需要更改的内容(而且我永远都不确定应该看哪个文件,但要反复试验).目的是什么,什么时候应该看这两个文件?

And here comes my question: why? Why are there two php.ini files instead of one? I must even look at both files, depending on what do I need to change (and I'm NEVER sure what file should I look, but by trial and error). What's the purpose, and when should I look either file?

推荐答案

Apache文件夹中的一个用于Web,PHP文件夹中的一个用于CLI.

The one from Apache folder is used for the web and the one from the PHP folder is used for the CLI.

如果要在php.ini上更新与问题/网络上的改进相关的内容,则应更新Apache文件夹中的内容.

If you want to update something on your php.ini related to a problem / an improvement on the web, you should update the one inside the Apache folder.

如果您需要对使用PHP的CLI版本启动的任务进行一些微调,则应更新PHP文件夹中的任务.

If you need some fine tuning on a task, which is launched using the CLI version of PHP, you should update the one in the PHP folder.

这篇关于WAMPserver,两个php.ini文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆