查找PHP的配置文件
查找PHP的配置文件
先写了一个
<?php
    phpinfo();
?>
然后在浏览器中浏览一下(之前我百度说在Configuration File  这个位置看)
结果竟然显示 Loaded Configuration File none ;
让别人问了问才知道。需要把源码包中的文件复制过去才行
cp /usr/local/src/php-5.3.28/php.ini-production /usr/local/php/etc/php.ini
然后再重新启动apache,
| Loaded Configuration File | /usr/local/php/etc/php.ini | 
显示正常。另一个查看配置文件文件的方法
/usr/local/php/bin/php -i |head
phpinfo()
PHP Version => 5.3.28
System => Linux cuizhipeng 2.6.32-431.el6.i686 #1 SMP Fri Nov 22 00:26:36 UTC 2013 i686
Build Date => Jan  7 2015 23:37:31
Configure Command =>  './configure'  '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-config-file-path=/usr/local/php/etc' '--with-mysql=/usr/local/mysql' '--with-libxml-dir' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir' '--with-iconv-dir' '--with-zlib-dir' '--with-bz2' '--with-openssl' '--with-mcrypt' '--enable-soap' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-sockets' '--enable-exif' '--disable-ipv6'
Server API => Command Line Interface     //配置PHP时的参数
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/php/etc
Loaded Configuration File => /usr/local/php/etc/php.ini   //配置文件为位置
查找PHP的配置文件的更多相关文章
- Windows下MySQL5.6查找my.ini配置文件
		在DOS命令行窗口登录MySQL,输入如下命令查看MySQL的安装目录和数据存放目录,MySQL的配置文件就在数据存放目录下: 另外一种方法: 在"开始 → 所有程序 → MySQL&quo ... 
- Nginx: ubuntu系统上查找nginx.conf配置文件的路径
		问题描述:在ubuntu系统上,找到nginx.conf文件的位置. 解决方法:在终端窗口中,输入命令:nginx -t 回显中就可以看到nginx.conf文件的路径了. 参考:https://bl ... 
- 查找MySql的配置文件my.cnf所在路径
		Linux系统 linux 上可以使用 mysql --help|grep my.cnf 过滤查看 [root@localhost etc]# mysql --help|grep my.cnf ord ... 
- springboot查找配置文件路径的过程
		spring加载配置文件是通过listener监视器实现的,在springboot启动时: 在容器启动完成后会广播一个SpringApplicationEvent事件,而SpringApplicati ... 
- Spring Boot加载配置文件
		问题1:Spring如何加载配置,配置文件位置? 1.默认位置: Spring Boot默认的配置文件名称为application.properties,SpringApplication将从以下位置 ... 
- web.xml 配置文件 超详细说明!!!
		一.web.xml是什么? 首先 web.xml 是java web 项目的一个重要的配置文件,但是web.xml文件并不是Java web工程必须的. web.xml文件是用来配置:欢迎页.serv ... 
- ansible 配置文件设置
		目录 ansible 配置文件设置 一.ansible configuration settings 二.ansible 配置文件查找顺序(从上到下,依次查找) 三.附录ansible配置参数 ans ... 
- Linux修改mysql配置文件
		1.首先需要知道mysql数据库安装在什么位置 2.查找配置文件位置 然后在根据这个目录,查看配置文件在哪里了(路径后面加上 --verbose --help|grep -A 1 'Default o ... 
- 如何配置多个Spring的xml配置文件(多模块配置)
		如何使用多个Spring的xml配置文件(多模块配置) (2009-08-22 13:42:43) 如何使用多个Spring的xml配置文件(多模块配置) 在用Struts Spring Hibe ... 
随机推荐
- C++ Primer 练习7.32(C++ Primer读书笔记)
			第七章 类 练习7.32 定义你自己的Screen和Window_mgr,其中clear是Window_mgr的成员,是Screen的友元. 由于Window_mgr中含有Screen对象,所以在W ... 
- hdu 3996 (最大权闭合图)
			题意:有n个区域布局,每个区域有一些金矿,挖开金矿需要一定的费用,可以得到一定的利润,要想挖开一个金矿,必须挖开所有在这个金矿上边的金矿,求最大利益,给的数据价值太大,用64位. 分析:如果一个金矿可 ... 
- CSS- 控制图片显示指定大小 并超过大小自动缩小
			有时候利用css比较方便控制网页html中img图片的显示大小.这样也省得自己一个一个去定义. img,a img{ border:; margin:; padding:; max-width:600 ... 
- myBatis性能优化【转】
			官方doc文档 http://www.mybatis.org/mybatis-3/configuration.html#settings 最近测试发现个myBatis 有个比较严重的性能问题, 描述如 ... 
- C# 基础知识 protected 关键字
			using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace Console ... 
- matlab2013a for linux/Ubuntu 安装步骤及创建快捷方式(ubuntu14.04下安装)
			1.挂载安装镜像:sudo mount -o loop myfile.iso /media/mnt #挂载ISO文件,使用參数 -o loop mnt为已经建立好的文件夹. 2.运行安装 ... 
- [ES6] 20. Polyfills
			Polyfill is something you don't need to set up traceur but start to use es6 in today's browser.You c ... 
- Android Studio中Gradle使用详解
			一)基本配置 build配置 buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools. ... 
- 编译openjdk源码
			http://www.cnblogs.com/ACFLOOD/p/5528035.html 
- MYSQL----myownstars(102)
			http://blog.itpub.net/15480802/cid-84815-list-1/ 
