b90220208
2005-06-20, 09:19 PM
如題,
我簡單列出將 PHP 以 APACHE 的靜態模組來安裝的過程:
----------------------------------------------------------------------
1. cd apache_1.3.x
2. ./configure
3. cd php-4.x.y
4. ./configure --with-mysql --with-apache=../apache_1.3.x
5. make
6. make install
7. d apache_1.3.x
8. ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
9. make
(you should now have an httpd binary which you can copy to your Apache bin
dir if it is your first install then you need to "make install" as well)
----------------------------------------------------------------------
第 9 步的描述提到 -- 將所產生的 httpd binary file 複製到 APACHE 安裝位置的
bin 目錄中.
若非首次安裝 APACHE ,可不用執行 make install 了.
:confused:Q1:
請問,為何若非首次安裝 APACHE,就無須作 make install 呢?
關於將 PHP 以 APACHE 的動態共享物件(DSO)安裝的 --with-apxs ,其提到:
----------------------------------------------------------------------
Note: Make sure you specify the installed version of apxs when
using --with-apxs=/path/to/apxs. You must NOT use the apxs version
that is in the apache sources but the one that is actually
installed on your system.
----------------------------------------------------------------------
:confused:Q2:
我不大懂其要我於安裝 PHP 時在作 --with-apxs 前須注意什麼事?
關於 httpd.conf 中的 user 及 group 設定,
PHP 的安裝文件中有一處寫到:
----------------------------------------------------------------------
Note: Apache's default httpd.conf currently ships with a section
that looks like this:
User nobody
Group "#-1"
Unless you change that to "Group nogroup" or something like that
("Group daemon" is also very common) PHP will not be able to open
files.
----------------------------------------------------------------------
:confused:Q3:
其中的 Group "#-1" 是否可換成任意一個群組呢?
這裡的使用者與群組設定為何會與 PHP 有關呢?
我簡單列出將 PHP 以 APACHE 的靜態模組來安裝的過程:
----------------------------------------------------------------------
1. cd apache_1.3.x
2. ./configure
3. cd php-4.x.y
4. ./configure --with-mysql --with-apache=../apache_1.3.x
5. make
6. make install
7. d apache_1.3.x
8. ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
9. make
(you should now have an httpd binary which you can copy to your Apache bin
dir if it is your first install then you need to "make install" as well)
----------------------------------------------------------------------
第 9 步的描述提到 -- 將所產生的 httpd binary file 複製到 APACHE 安裝位置的
bin 目錄中.
若非首次安裝 APACHE ,可不用執行 make install 了.
:confused:Q1:
請問,為何若非首次安裝 APACHE,就無須作 make install 呢?
關於將 PHP 以 APACHE 的動態共享物件(DSO)安裝的 --with-apxs ,其提到:
----------------------------------------------------------------------
Note: Make sure you specify the installed version of apxs when
using --with-apxs=/path/to/apxs. You must NOT use the apxs version
that is in the apache sources but the one that is actually
installed on your system.
----------------------------------------------------------------------
:confused:Q2:
我不大懂其要我於安裝 PHP 時在作 --with-apxs 前須注意什麼事?
關於 httpd.conf 中的 user 及 group 設定,
PHP 的安裝文件中有一處寫到:
----------------------------------------------------------------------
Note: Apache's default httpd.conf currently ships with a section
that looks like this:
User nobody
Group "#-1"
Unless you change that to "Group nogroup" or something like that
("Group daemon" is also very common) PHP will not be able to open
files.
----------------------------------------------------------------------
:confused:Q3:
其中的 Group "#-1" 是否可換成任意一個群組呢?
這裡的使用者與群組設定為何會與 PHP 有關呢?