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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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%) |
|
|||
|
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) |
|
|||
|
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 |
|
|||
|
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! |
|
|||
|
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 ================== |
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|