LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-28-2008, 07:18 AM   #1
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Unhappy 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?
 
Old 05-29-2008, 03:43 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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.

Last edited by Wim Sturkenboom; 05-29-2008 at 03:47 AM. Reason: Added PS
 
Old 05-30-2008, 03:34 AM   #3
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Original Poster
Rep: Reputation: 15
Thank you,
The problem is solved. I just want to know When we install which package, we get /etc/php.ini file?
 
Old 05-30-2008, 05:45 PM   #4
seraphim172
Member
 
Registered: May 2008
Posts: 101

Rep: Reputation: 15
/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

Last edited by seraphim172; 06-25-2008 at 05:46 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP won't recognize my Configuration File (php.ini) path kriezo Programming 4 02-14-2008 03:31 AM
editing a php.ini file ilustrate Linux - General 4 07-13-2005 01:16 PM
Question about php.ini file. jon_k Linux - Software 0 08-07-2004 06:52 AM
PHP.ini Troubles on conf file Gerardoj Linux - General 3 03-24-2004 09:03 PM
php.ini and file uploads gblue Linux - Newbie 0 02-29-2004 06:28 PM


All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration