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...


chris surfrider

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

10+ Year Member

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)

5+ Year Member

it should be in your ' /public_html/ ' directory (or equivalent on your syst).
See if this helps you
[php.net ]

chris surfrider

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

10+ Year Member

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

You could try
locate php.ini
from the command line or use the


7:16 am on Apr 1, 2006 (gmt 0)

10+ Year Member

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.)


Featured Threads

Hot Threads This Week

Hot Threads This Month