Php installation (as RPM package)
Php installation (as RPM package)
am 28.12.2007 01:57:01 von Ming
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,
Re: Php installation (as RPM package)
am 28.12.2007 02:15:55 von ivansanchez-alg
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%)
Re: Php installation (as RPM package)
am 28.12.2007 02:28:50 von Ming
On Dec 27, 5:15 pm, Iv=E1n S=E1nchez Ortega
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=E1n S=E1nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
>
> Now listening to: Hooverphonic - No More Sweet Music (disc 2: No More Swee=
t
> 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)
Re: Php installation (as RPM package)
am 28.12.2007 03:07:13 von ivansanchez-alg
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 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
Re: Php installation (as RPM package)
am 28.12.2007 04:03:50 von Ming
On Dec 27, 6:07 pm, Iv=E1n S=E1nchez Ortega
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 and looking at th=
e
> first lines.
>
> > (by the way, in fedora 6, there is no /etc/php5 directory. php.ini is
> > in /etc)
>
> Debian here... YMMV.
>
> Cheers,
> --
> ----------------------------------
> Iv=E1n S=E1nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
>
> Proudly running Debian Linux with 2.6.22-3-amd64 kernel, KDE 3.5.8, and PH=
P
> 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!
Re: Php installation (as RPM package)
am 28.12.2007 04:30:20 von Jerry Stuckle
Ming wrote:
> On Dec 27, 5:15 pm, Iván Sánchez Ortega
> 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
==================
Re: Php installation (as RPM package)
am 28.12.2007 18:26:04 von nc
On Dec 27, 4:57 pm, 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?
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