Skip to content
Fix Code Error

Where can I find php.ini?

March 13, 2021 by Code Error
Posted By: Anonymous

A few years ago I installed Apache 2.2x and PHP 5.3.1 on a Linux server I maintain. I used .tar.gz’s and built them as instructed (instead of rpms and what-have-you). And all was fine.

Today I need to install this which seems like a PHP library. I went through all the steps up to make install, and I find ibm_db2.so in $PHP_HOME/lib/extensions/somecomplicatedname/ibm_db2.so

The great catch is the last step is to configure php.ini but there is NO php.ini on my system. Horror of horrors. PHP works fine, except of course for this new-fangled ibm_db2 thingamagic that I want to use so somebody can use a GUI to tinker with DB2. (I tried a small php script which fails and indicates that the ibm_db2 functions are not available).

I have to deal with PHP once every few years, so please enlighten me at a very basic level about what I could do to enable web-based GUI access to DB2.

Solution

Best way to find this is:
create a php file and add the following code:

<?php phpinfo(); ?>

and open it in browser, it will show the file which is actually being read!

Updates by OP:

  1. The previously accepted answer is likely to be faster and more convenient for you, but it is not always correct. See comments on that answer.
  2. Please also note the more convenient alternative <?php echo php_ini_loaded_file(); ?> mentioned in this answer.
Answered By: Anonymous

Related Articles

  • error LNK2005: ✘✘✘ already defined in…
  • Problems Installing CRA & NextJS from NPM…
  • Error 'Map', but got one of type 'Null' flutter web…
  • Can't install via pip because of egg_info error
  • Rails wrong number of arguments error when…
  • Plugin…
  • Name [jdbc/mydb] is not bound in this Context
  • Exception in thread "JobGenerator"…
  • Docker compose fails to start a service with an…
  • 'block in draw' rails 6 routes
  • Failed to execute goal…
  • Non-resolvable parent POM for Could not find…
  • incompatible character encodings: ASCII-8BIT and UTF-8
  • Ukkonen's suffix tree algorithm in plain English
  • gzip: stdin: not in gzip format tar: Child returned…
  • Postgres could not connect to server
  • Neither BindingResult nor plain target object for…
  • How to install the Raspberry Pi cross compiler on my…
  • Why am I getting a "401 Unauthorized" error in Maven?
  • "Non-resolvable parent POM: Could not transfer…
  • File to import not found or unreadable: compass
  • PySpark 3 - UDF to remove items from list column
  • java.lang.ClassNotFoundException: HttpServletRequest
  • How are zlib, gzip and zip related? What do they…
  • Problems using Maven and SSL behind proxy
  • Tomcat 7 "SEVERE: A child container failed during start"
  • How to set level logging to DEBUG in Tomcat?
  • Sorting A Table With Tabs & Javascript
  • PG::ConnectionBad - could not connect to server:…
  • Gradle error: Execution failed for task…
  • getting error while updating Composer
  • How do you list volumes in docker containers?
  • configure: error: C compiler cannot create executables
  • How to add Typescript to a Nativescript-Vue project?
  • Login with facebook android sdk app crash API 4
  • How can I find the product GUID of an installed MSI setup?
  • Install php-opcache for PHP installed via Remi's repository
  • Running a simple JSF webapp on TOMEE-9.0 PLUS cannot…
  • A fatal error has been detected by the Java Runtime…
  • Laravel: PDOException: could not find driver
  • Exception in thread "main"…
  • Content is not allowed in Prolog SAXParserException
  • How do I install Java on Mac OSX allowing version switching?
  • The APR based Apache Tomcat Native library was not…
  • VUE Error when run test unit
  • apache server reached MaxClients setting, consider…
  • coercing to Unicode: need string or buffer, NoneType…
  • How do SO_REUSEADDR and SO_REUSEPORT differ?
  • Error: Can't set headers after they are sent to the client
  • getaddrinfo: nodename nor servname provided, or not known
  • When I'm testing a web app by JUnit and Mockito I…
  • ActiveMQ Artemis in Docker shows empty screen
  • What's causing my java.net.SocketException:…
  • What are the calling conventions for UNIX &…
  • How to install JSTL? The absolute uri:…
  • HTTP Status 500 - org.apache.jasper.JasperException:…
  • Is this very likely to create a memory leak in Tomcat?
  • @import not working for my "application.css.scss"…
  • Vaadin Spring Boot - There was an exception while…
  • Spring 3.0: Unable to locate Spring NamespaceHandler…
  • org.gradle.api.tasks.TaskExecutionException:…
  • I am getting the following error while creating the…
  • Integrating Discogs disconnect node module in…
  • PHP7 : install ext-dom issue
  • No Spring WebApplicationInitializer types detected…
  • Error message "Forbidden You don't have permission…
  • java.lang.RuntimeException: Unable to instantiate…
  • How can I initialize a MySQL database with schema in…
  • How to avoid "module not found" error while calling…
  • Error: the entity type requires a primary key
  • how to integrate selenium driver for chrome and…
  • Maven does not find JUnit tests to run
  • Error: free(): invalid next size (fast):
  • Downloading Java JDK on Linux via wget is shown…
  • Could not calculate build plan: Plugin…
  • Launching Spring application Address already in use
  • Web Application Problems (web.config errors) HTTP…
  • Mismatch Detected for 'RuntimeLibrary'
  • download & install openshift cli command not working
  • Logging best practices
  • Error creating bean with name
  • How to add fade animation for this tab
  • Unable to Build using MAVEN with ERROR - Failed to…
  • Virtual Memory Usage from Java under Linux, too much…
  • Why did Servlet.service() for servlet jsp throw this…
  • java.lang.UnsupportedClassVersionError Unsupported…
  • Spring schemaLocation fails when there is no…
  • How can I install Apache Ant on Mac OS X?
  • Tar a directory, but don't store full absolute paths…
  • How to extract filename.tar.gz file
  • Can't install laravel installer via composer
  • Runing vue/cli app under docker simple index.html is opened
  • Trusting all certificates using HttpClient over HTTPS
  • Requested bean is currently in creation: Is there an…
  • Create a tar.xz in one command
  • Maven2: Missing artifact but jars are in place
  • Emberjs: Change in query-param not reflecting in…
  • Can Windows Containers be hosted on linux?
  • How do I resolve `The following packages have unmet…
  • javax.el.PropertyNotFoundException: Property 'foo'…

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

Post navigation

Previous Post:

Split string with multiple delimiters in Python

Next Post:

Finding the number of days between two dates

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

.net ajax android angular arrays aurelia backbone.js bash c++ css dataframe ember-data ember.js excel git html ios java javascript jquery json laravel linux list mysql next.js node.js pandas php polymer polymer-1.0 python python-3.x r reactjs regex sql sql-server string svelte typescript vue-component vue.js vuejs2 vuetify.js

  • you shouldn’t need to use z-index
  • No column in target database, but getting “The schema update is terminating because data loss might occur”
  • Angular – expected call-signature: ‘changePassword’ to have a typedeftslint(typedef)
  • trying to implement NativeAdFactory imports deprecated method by default in flutter java project
  • What should I use to get an attribute out of my foreign table in Laravel?
© 2022 Fix Code Error