撒拉嘿哟木头 2011-12-30 22:20 采纳率: 100%
浏览 433
已采纳

伙计,我的 php.ini 呢?

A few years ago I installed Apache 2.2x and PHP 5.3.1 on a Linux server I maintain. I used .tar.gz's and built them as instructed (instead of rpms and what-have-you). And all was fine.

Today I need to install this which seems like a PHP library. I went through all the steps up to make install, and I find ibm_db2.so in $PHP_HOME/lib/extensions/somecomplicatedname/ibm_db2.so

The great catch is the last step is to configure php.ini but there is NO php.ini on my system. Horror of horrors. PHP works fine, except of course for this new-fangled ibm_db2 thingamagic that I want to use so somebody can use a GUI to tinker with DB2. (I tried a small php script which fails and indicates that the ibm_db2 functions are not available).

I have to deal with PHP once every few years, so please enlighten me at a very basic level about what I could do to enable web-based GUI access to DB2.

转载于:https://stackoverflow.com/questions/8684609/dude-wheres-my-php-ini

  • 写回答

11条回答 默认 最新

  • local-host 2013-06-19 07:32
    关注

    Best way to find this is: create a php file and add the following code:

    <?php phpinfo(); ?>
    

    and open it in browser, it will show the file which is actually being read!

    Updates by OP:

    1. The previously accepted answer is likely to be faster and more convenient for you, but it is not always correct. See comments on that answer.
    2. Please also note the more convenient alternative <?php echo php_ini_loaded_file(); ?> mentioned in this answer.
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(10条)

报告相同问题?

悬赏问题

  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号