Jump to content

php.ini is not recognized


sid2006

Recommended Posts

I have been trying to get the php.ini file to be recognized by phpinfo and have had no luck.

PHP Version 4.3.4
Solaris 2.8
GCC compiler 3.3.2

Initially, when I ran configure I used these options:

./configure
--with-mysql
--with-apxs2=/usr/local/apache2.0.54/bin/apxs
--with-gd
--with-png-dir=/usr/local/lib
--with-jpeg-dir=/usr/local/lib
--with-zlib-dir=/usr/local/lib

The Config file piece of the ouput of the phpinfo page is:

Configuration File (php.ini) Path /usr/local/lib/


CLI actually shows the path and file name:

# ./original.php -i|more
phpinfo()
PHP Version => 4.3.4

System => SunOS umgwww4 5.8 Generic_108528-29 sun4u
Build Date => Feb 28 2006 19:20:00
Configure Command => './configure' '--with-mysql' '--with-apxs2=/usr/local/apache2.0.54/bin/apxs' '--with-gd' '--with-png-dir=/usr/
local/lib' '--with-jpeg-dir=/usr/local/lib' '--with-zlib-dir=/usr/local/lib' '
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/lib/php.ini
PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20021010
Debug Build => no
Thread Safety => disabled
Registered PHP Streams => php, http, ftp, compress.zlib

I have another system that is identical and works fine. I tried copying over the php CLI and entire /usr/local/lib/php directories and the libphp4.so apache module and then restarted. Still didn;t work

I then tried a compile with:

--with-config-file-path=/usr/local/lib/php.ini (even though you are only suppose to use the path)

Still didn't work.

Any ideas?

thanks,
sid




Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.