PALMisLIFE 討論區

標題: 【求助】Apache 2.0.35 不能裝 php4? [列印本頁]

作者: 小酒蟲    時間: 2002-5-6 16:12
標題: 【求助】Apache 2.0.35 不能裝 php4?
話說小酒蟲藉下午 server 整個重灌之便,把 Apache 1.3.24 換成了Apache 2.0.35。結果要裝 php 4.1.2 時才發現不能啟動 php4?(用 Apache module mode)
  
這是那一部份出錯?還是小酒蟲在自己耍笨?
  
之前要換上 php 4.2.0 時也怪怪的。原本在 4.1.2 可用的留言版程式在換上 php 4.2.0 之後按鈕全部失效,只好再換回 4.1.2。
作者: 小酒蟲    時間: 2002-5-6 20:00
標題: Re:【求助】Apache 2.0.35 不能裝 php4?
依據在 www.php.net 上看來的方法:
  
If you're trying to use Apache 2.0.x and PHP, you'll need to do the following:
  
First, make sure that when you configure PHP you use the --with-apxs2 option, like so: --with-apxs2=/path/to/apache2/apxs. You need to use this instead of --with-apxs. Second, when you edit your httpd.conf, instead of adding the AddType line, add the following:
  
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
  
to where you would normally add the AddType line. This works for me using
PHP 4.1.2 and Apache 2.0.28. YMMV.
  
How to use PHP 4.2 with Apache/2.0.35 on Windows:
- Follow the general installation instructions
- Open "httpd.conf" of Apache 2
- Add the following lines:
  
LoadModule php4_module %PATH_TO_PHP%\experimental\apache2filter.dll
AddType application/x-httpd-php .php .phtml .php3
  
For Apache2.0 do not only use the experimental/apache2filter.dll but also be sure (as mentioned in the installation documentation) to move php4ts.dll to the windows/system (for Windows 9x/Me) or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any older file.
  
都還是沒法把 php4 餵給 Apache 2 吃....
作者: TsuNaMi    時間: 2002-5-6 20:26
標題: Re:【求助】Apache 2.0.35 不能裝 php4?
小酒蟲兄,你架在什麼作業系統上面?
作者: cclien    時間: 2002-5-6 20:32
標題: Re:【求助】Apache 2.0.35 不能裝 php4?
it seems like win32..
作者: TsuNaMi    時間: 2002-5-6 21:00
標題: Re:【求助】Apache 2.0.35 不能裝 php4?
WinXP or 2000?
  
我目前有聽到像您類似情況的……
是架在FreeBSD上……
其他的我就不知道嘍~~
而且,到目前依然沒有解決……
作者: 小酒蟲    時間: 2002-5-6 23:54
標題: Re:【求助】Apache 2.0.35 不能裝 php4?
Windows 2000 Pro....
看來得等他們再改版才行。
  
在 2000 上灌了 Apache、php、MySQL、Perl、FTPd、Mail server....
會不會太過虐待 M$ 了?
作者: cclien    時間: 2002-5-7 03:22
標題: 回覆: Re:【求助】Apache 2.0.35 不能裝 php4?
小酒蟲 wrote:
Windows 2000 Pro....
看來得等他們再改版才行。
  
在 2000 上灌了 Apache、php、MySQL、Perl、FTPd、Mail server....
會不會太過虐待 M$ 了?

  
學學 bbs 上 mac 版好了...
  
get a FreeBSD!
作者: krisher    時間: 2002-5-7 04:07
標題: Re:【求助】Apache 2.0.35 不能裝 php4?
Get a Linux  
作者: 小酒蟲    時間: 2002-5-9 17:39
標題: Re:【求助】Apache 2.0.35 不能裝 php4?
之前用過一陣子 CLE 的版本,
後來因為人懶,就全都換成 Windows 2000 了....
  
還好這類軟體都有 port 到 Windows 上頭來。
  
Apache 2.0.36 出了,有沒有人要試試?




歡迎光臨 PALMisLIFE 討論區 (http://f.pil.tw/) Powered by Discuz! X2.5