LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Package for php.ini file (https://www.linuxquestions.org/questions/programming-9/package-for-php-ini-file-645279/)

bkcreddy17 05-28-2008 06:18 AM

Package for php.ini file
 
hi,
I am using fedora9 with php and mysql. i replaced php.ini file from /etc with rhel5 server's php.ini which should not be done. Of course i saved it at another location. When i am not getting index.php, i replaced original and configured it. Even though i am not getting index.php. Can any body tell me what package provides php.ini or what shall i do?

Wim Sturkenboom 05-29-2008 02:43 AM

What do you mean by 'not getting index.php'?
What does http://yourdomain give you?
What does http://yourdomain/index.php give you?

Some ideas where to look (taken from my Slackware 12 webserver). It might be completely different in FC, so it's only posted as ideas. You can use e.g. grep to find keywords.

Code:

#WimS: add index.php
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

The above line(s) from my httpd.conf make that apache will look for index.html and if not found for index.php in the document root if you enter http://yourdomain in the address bar of your browser.

Code:

#WimS: enable PHP
Include /etc/httpd/mod_php.conf

The above line from my httpd.conf will enable php. mod_php.conf contains the following two lines:
Code:

LoadModule php5_module lib/httpd/modules/libphp5.so
AddType application/x-httpd-php .php


PS I've reported your post as it's not really a programming question. A moderator might move it.

bkcreddy17 05-30-2008 02:34 AM

Thank you,
The problem is solved. I just want to know When we install which package, we get /etc/php.ini file?

seraphim172 05-30-2008 04:45 PM

/etc/php.ini is installed by the PHP package.

May I ask how you expected to benefit from replacing Fedora's php.ini with that from RHEL?

Linux Archive


All times are GMT -5. The time now is 07:28 PM.