473,324 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

php.ini listed in phpinfo questions

I was trying to follow some instructions on installing Smarty and suddenly
found php.ini is not where phpinfo lists it to be.

1. Is /usr/local/lib the default location for the php.ini
2. In old versions of PHP, did php.ini install by default and not have to be
copied?

The thing is I've installed PHP on my own home servers for years and never
had the need to edit the php.ini file before (well I don't remember doing
so). Anyhow checking through the files, I see a file called php-config
resident in the scripts directory and it has been created (or last edited?)
when I installed PHP.

Am I correct in assuming that all I need to do is copy php-config to
/usr/local/lib and rename php.ini ?

Cheers

Phil
Oct 4 '07 #1
1 1577
On Oct 4, 1:54 am, "Phil Latio" <phil.la...@f-in-stupid.co.ukwrote:
I was trying to follow some instructions on installing Smarty and suddenly
found php.ini is not where phpinfo lists it to be.

1. Is /usr/local/lib the default location for the php.ini
2. In old versions of PHP, did php.ini install by default and not have to be
copied?

The thing is I've installed PHP on my own home servers for years and never
had the need to edit the php.ini file before (well I don't remember doing
so). Anyhow checking through the files, I see a file called php-config
resident in the scripts directory and it has been created (or last edited?)
when I installed PHP.

Am I correct in assuming that all I need to do is copy php-config to
/usr/local/lib and rename php.ini ?

Cheers

Phil
it depends on your PHP installation

run php -i | grep "php.ini" in your command shell to see where php is
looking for php.ini

Oct 4 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Shawn Wilson | last post by:
Hi, My host keeps messing things up and not telling me. I am trying to write a cron job that will test to make sure the "unusual" functions I use work and, if not, email me. I want it to send...
2
by: ChronoFish | last post by:
Hello, From my understanding, setting the ini value "html_errors" is supposed to force the output from phpinfo to be either plain text or HTML. I have setup two files. One is executes as CGI,...
2
by: John Drako | last post by:
I just updated my server to apache 1.3.33 and php 5.0.3 from apache 1.3.31 and php 4.3.9. It's running RedHat and MySQL 4.0.20. All the code that I created myself in PHP is working as it should...
1
by: Yttrium | last post by:
Hi, I'm going to compile php5 on a linux server. I would add some comments in my phpinfo(), like "Compiled by foo tuesday 15th july" Is it possible to do this, and how ? Thanks in advance. ...
1
by: Csaba Gabor | last post by:
In the code below, invoked with CLI PHP, it would make good sense to have phpinfo() include HTML tags with its output. Is there any way to effect this? My attempt using ini_set("html_errors",...
6
by: Brian Huether | last post by:
When I run phpinfo, it diaplays the same thing regardless of changes I make to php.ini. For instance, php.ini shows register globals on max upload filesize of 16M. etc, etc. But phpinfo always...
17
by: priestyuk | last post by:
Hi everyone: D, I recently purchased a very smart and ‘expensive’ template from . You have to install it on your site etc putting in your mysql details, e-mail address, license key etc. So far...
4
by: Ronald Raygun | last post by:
I have just discovered that the value reported for $_SERVER by phpinfo is different from the value I obtain when I run the following: <?php echo $_SERVER ?> My natural assumption is to assume...
7
by: eholz1 | last post by:
Hello All, I have reviewed various posts in regard to Oracle and PHP. I am running Apache 2.0.59, on Windows XP, with PHP 5.2. I would like to connect using PHP to a remote oracle db (ver. 7)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.