couldn't find php.ini

free2seek

Verified User
Joined
Jun 20, 2003
Messages
8
I was trying to find where is the php.ini file but with no success. Please help.

thanks
 
If it's not there, type this from your shell:

cp -f /usr/local/directadmin/scripts/packages/php-4.3.0/php.ini-recommended /usr/local/lib/php.ini
 
I still couldn't find it using the directory giving by both of you

I got the error message >>> cp:missing destination file
 
Are you preforming the copy as root?

I've confirmed that Mark's method works - so you've gotta be hitting the wrong keys :p.
 
root is the login I used.

By the way, I have try to locate it but all I got was just

/usr/local/directadmin/scripts/packages/php-4.3.0/php.ini-dist

/usr/local/directadmin/scripts/packages/php-4.3.0/php.ini-recommended

/usr/local/directadmin/scripts/packages/php-4.3.0/pear/tests/php.ini

no php.ini in either one of the directory stated by above
:confused:


then i try to locate using the phpinfo script
http://free2seek.com/php.php

It stated it in /usr/local/lib


but is no there, all i got is the php directory.


help :eek:
 
If it does not exist, you need to create it by doing what Mark said:

cp -f /usr/local/directadmin/scripts/packages/php-4.3.0/php.ini-recommended /usr/local/lib/php.ini

That's all.
 
What you want to do is take this on your system:

/usr/local/directadmin/scripts/packages/php-4.3.0/php.ini-recommended

And make a copy of that file, rename it to php.ini, and copy it to usr/local/lib. How you do it doesn't really matter. :)

Please remember that the command I gave you is all one line.

Mark
 
thx

actually, I though of it but just wasn't sure

thx for a prompt and fast response.

DA is the best after all I love it more than cpanel.


:) :)
 
funny my default php.ini is at
/usr/local/Zend/etc/php.ini

is that normal? do i need to copy it to
/usr/local/lib/php.ini

edit: i just did locate php.ini and found so many
/usr/local/lib/php.ini
/usr/local/lib/php.ini-zend_optimizer.bak
/usr/local/lib/php.ini.backup
/usr/local/resources/ZendOptimizer-2.1.0a-Linux_glibc21-i386/zui_files/php.ini
/usr/local/directadmin/customapache/php-4.3.5/pear/tests/php.ini
/usr/local/directadmin/customapache/php-4.3.5/php.ini-recommended
/usr/local/directadmin/customapache/php-4.3.5/php.ini-dist
/usr/local/directadmin/customapache/ZendOptimizer-2.1.0a-Linux_glibc21-i386/zui_files/php.ini
/usr/local/Zend/etc/php.ini

which is which? :confused:

2nd edit:
my phpinfo related to /usr/local/Zend/etc/php.ini , is that okay?
how to change it to /usr/local/lib/php.ini?
 
Last edited:
Hello,

They should be the same file. When you install Zend it moves the file and creates a symbolic link from the old location:

/usr/local/lib/php.ini -> /usr/local/Zend/etc/php.ini

John
 
Back
Top