Welcome to WebmasterWorld Guest from

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Where to find PHP.ini file?

Trying to install "Zend" on my 1&1 Linux server...

1:34 am on Apr 1, 2006 (gmt 0)

New User

10+ Year Member

joined:Mar 20, 2005
votes: 0

Hey guys,

I'm trying to install "Zend Optimizer" for PHP 4.x

I have a linux server with 1and1.com, and this is what their FAQ says to do:

1. Download the Zend Optimizer from [link] (for Linux glibc 2.1)

2. Unzip the files locally on your computer. (tar -xvzf "the tar file")

3. Go to the folder where the Zend Optimizer has been unpacked. Go to "data" directory. Here you can see various folders named according to PHP versions, e.g.
4_4_1_comp. Go the the directory of your choice. The important file is "ZendOptimizer.so"

5. Upload this file into a directory of your choice within your webspace.

6. Change the php.ini file to include the following text:



I don't know how to change - or even FIND - the "php.ini" file.

I don't even know what it is.

Where do you think it would be?

Thanks in advance,


1:39 am on Apr 1, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 10, 2006
votes: 0

it should be in your ' /public_html/ ' directory (or equivalent on your syst).
See if this helps you
[php.net ]
1:52 am on Apr 1, 2006 (gmt 0)

New User

10+ Year Member

joined:Mar 20, 2005
votes: 0

That's what I would've thought too.

It's not, though.

I have no idea how to access this...


1:58 am on Apr 1, 2006 (gmt 0)


WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
votes: 0

You could try
locate php.ini
from the command line or use the
7:16 am on Apr 1, 2006 (gmt 0)

Junior Member from US 

10+ Year Member

joined:Nov 30, 2002
votes: 0

The following command will output the path to the php.ini file being used:

# php -i  grep php.ini

(make sure to fix the pipe symbol in the code above. WW breaks those just to make our lives more...interesting.)


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members