Php installation (as RPM package)

This is a discussion on Php installation (as RPM package) within the PHP Language forums, part of the PHP Programming Forums category; I am using Fedora 6, with apache and php pre-installed (as RPM package). I read httpd.conf and other ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-28-2007
Ming
 
Posts: n/a
Default Php installation (as RPM package)

I am using Fedora 6, with apache and php pre-installed (as RPM
package). I read httpd.conf and other conf files, but I cannot find
where in the documents mentioned the location of php.ini.

Any hint?

thanks,
Reply With Quote
  #2 (permalink)  
Old 12-28-2007
Iván Sánchez Ortega
 
Posts: n/a
Default Re: Php installation (as RPM package)

Ming wrote:

> I am using Fedora 6, with apache and php pre-installed (as RPM
> package). I read httpd.conf and other conf files, but I cannot find
> where in the documents mentioned the location of php.ini.
>
> Any hint?


/etc/php5/

Cheers,
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Now listening to: Hooverphonic - No More Sweet Music (disc 2: No More Sweet
Music) (2005) - [8] Heartbeat (remixed by Alex Callier) (3:52) (99.092499%)
Reply With Quote
  #3 (permalink)  
Old 12-28-2007
Ming
 
Posts: n/a
Default Re: Php installation (as RPM package)

On Dec 27, 5:15 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.org> wrote:
> Ming wrote:
> > I am using Fedora 6, with apache and php pre-installed (as RPM
> > package). I read httpd.conf and other conf files, but I cannot find
> > where in the documents mentioned the location of php.ini.

>
> > Any hint?

>
> /etc/php5/
>
> Cheers,
> --
> ----------------------------------
> Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
>
> Now listening to: Hooverphonic - No More Sweet Music (disc 2: No More Sweet
> Music) (2005) - [8] Heartbeat (remixed by Alex Callier) (3:52) (99.092499%)


Where does Apache (?) says that "I am going to read the php.ini from /
etc/php5" ?
Apache only loads the libphp5.so. does all information is in this .so
file?

(by the way, in fedora 6, there is no /etc/php5 directory. php.ini is
in /etc)
Reply With Quote
  #4 (permalink)  
Old 12-28-2007
Iván Sánchez Ortega
 
Posts: n/a
Default Re: Php installation (as RPM package)

Ming wrote:

> Where does Apache (?) says that "I am going to read the php.ini from /
> etc/php5" ?


I misunderstood your question. I tought you were just looking for the
php.ini file

> Apache only loads the libphp5.so. does all information is in this .so
> file?


Yes, it is. The location of the configuration file is a compilation option,
so it is stored, hard-coded, in libphp5.so at compile time.

See "--with-config-file-path" in http://www.php.net/manual/en/configure.php

You can peek at this info by running <?php phpinfo(); ?> and looking at the
first lines.

> (by the way, in fedora 6, there is no /etc/php5 directory. php.ini is
> in /etc)


Debian here... YMMV.

Cheers,
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Proudly running Debian Linux with 2.6.22-3-amd64 kernel, KDE 3.5.8, and PHP
5.2.4-2 generating this signature.
Uptime: 03:01:08 up 35 days, 13:16, 4 users, load average: 0.94, 0.75,
0.82

Reply With Quote
  #5 (permalink)  
Old 12-28-2007
Ming
 
Posts: n/a
Default Re: Php installation (as RPM package)

On Dec 27, 6:07 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.org> wrote:
> Ming wrote:
> > Where does Apache (?) says that "I am going to read the php.ini from /
> > etc/php5" ?

>
> I misunderstood your question. I tought you were just looking for the
> php.ini file
>
> > Apache only loads the libphp5.so. does all information is in this .so
> > file?

>
> Yes, it is. The location of the configuration file is a compilation option,
> so it is stored, hard-coded, in libphp5.so at compile time.
>
> See "--with-config-file-path" inhttp://www.php.net/manual/en/configure.php
>
> You can peek at this info by running <?php phpinfo(); ?> and looking at the
> first lines.
>
> > (by the way, in fedora 6, there is no /etc/php5 directory. php.ini is
> > in /etc)

>
> Debian here... YMMV.
>
> Cheers,
> --
> ----------------------------------
> Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
>
> Proudly running Debian Linux with 2.6.22-3-amd64 kernel, KDE 3.5.8, and PHP
> 5.2.4-2 generating this signature.
> Uptime: 03:01:08 up 35 days, 13:16, 4 users, load average: 0.94, 0.75,
> 0.82


Thanks a lot!
Reply With Quote
  #6 (permalink)  
Old 12-28-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Php installation (as RPM package)

Ming wrote:
> On Dec 27, 5:15 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
> escomposlinux.-.punto.-.org> wrote:
>> Ming wrote:
>>> I am using Fedora 6, with apache and php pre-installed (as RPM
>>> package). I read httpd.conf and other conf files, but I cannot find
>>> where in the documents mentioned the location of php.ini.
>>> Any hint?

>> /etc/php5/
>>
>> Cheers,
>> --
>> ----------------------------------
>> Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
>>
>> Now listening to: Hooverphonic - No More Sweet Music (disc 2: No More Sweet
>> Music) (2005) - [8] Heartbeat (remixed by Alex Callier) (3:52) (99.092499%)

>
> Where does Apache (?) says that "I am going to read the php.ini from /
> etc/php5" ?
> Apache only loads the libphp5.so. does all information is in this .so
> file?
>
> (by the way, in fedora 6, there is no /etc/php5 directory. php.ini is
> in /etc)
>


Generally with the RPM's it's compiled into the code.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #7 (permalink)  
Old 12-28-2007
NC
 
Posts: n/a
Default Re: Php installation (as RPM package)

On Dec 27, 4:57 pm, Ming <minghu...@gmail.com> wrote:
>
> I am using Fedora 6, with apache and php pre-installed (as RPM
> package). I read httpd.conf and other conf files, but I cannot
> find where in the documents mentioned the location of php.ini.
>
> Any hint?


The location of php.ini is defined during configuration. To see this
location, run phpinfo() and look for "php.ini" in its output.

Cheers,
NC
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:24 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0