亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12
最近訪問板塊 發(fā)新帖
樓主: BugsMusic
打印 上一主題 下一主題

[OpenBSD] 求助:在OpenBSD下安裝php的問題 [復(fù)制鏈接]

論壇徽章:
0
11 [報告]
發(fā)表于 2008-07-25 04:55 |只看該作者
我也是在OpenBSD下用packages安裝了php 而apache是用默認的
httpd.conf里
改 #AddType application/x-httpd-php .php



  AddType application/x-httpd-php .php

  AddType application/x-httpd-php-source .phps

改 DirectoryIndex index.html

  DirectoryIndex index.php index.html
并把php5-gd-5.....等擴展也都裝了

為何打開php網(wǎng)頁老提示保存

論壇徽章:
0
12 [報告]
發(fā)表于 2008-07-25 08:40 |只看該作者
原帖由 zhht 于 2008-7-25 04:55 發(fā)表
我也是在OpenBSD下用packages安裝了php 而apache是用默認的
httpd.conf里
改 #AddType application/x-httpd-php .php



  AddType application/x-httpd-php .php

  AddType application/x-h ...


安裝完php后應(yīng)該有個符號連接的,你做了沒?
沒做,php模塊沒有生效,等于沒有安裝

論壇徽章:
0
13 [報告]
發(fā)表于 2008-07-25 16:40 |只看該作者

論壇徽章:
0
14 [報告]
發(fā)表于 2008-07-26 00:31 |只看該作者
httpd.conf不做修改 別的都不用動?(openbsd4.3+php5.2.5+postgresql8.2.6)這是新組合的好處。。
cp /var/www/conf/modules.sample/php5.conf ../modules
俺也解決了

[ 本帖最后由 zhht 于 2008-7-26 02:27 編輯 ]

論壇徽章:
0
15 [報告]
發(fā)表于 2008-07-26 08:34 |只看該作者
yes !
Perhaps this will seem silly to most, but I've had a problem for the last couple of days that I just couldn't solve... I've solved it, and will include the information here in case others find themselves in the same situation.

I installed php-core via packages on a pretty-fresh 4.3 generic installation.
It is a slightly different installation from 4.2, but it's pretty straight forward.

I made the mistake of uncommenting the following lines in httpd.conf, thinking this was helpful/necessary-



AddType application/x-httpd-php .php
AddHandler php5-script .php
AddType text/html .php

With these lines uncommented, I thought I was on my way... but I couldn't get httpd to actually execute any php files (like phpinfo.php, for instance.) There were no errors in /var/www/logs/error_log, and /var/www/logs/access_log showed nothing but a 304... which I couldn't discern as anything. A 'php -v' worked fine, further confusing me.

After re-installing php-core a couple of times, comparing the installation to a 4.2 installation, and googling my butt off, I re-examined the lines that are in /var/www/conf/modules/php5.conf ... and found that I had similar lines in httpd.conf. Thinking that mentioning the same directives twice could possibly be contributing to the problem, I decided to comment them back out of httpd.conf.

And that was the fix.

[ 本帖最后由 BugsMusic 于 2008-7-26 08:38 編輯 ]

論壇徽章:
0
16 [報告]
發(fā)表于 2008-07-26 09:42 |只看該作者
原帖由 wpppl 于 2008-7-15 20:14 發(fā)表
建議寫個全面的教程!方便后來人嗎?

同意九樓朋友的說法.

論壇徽章:
0
17 [報告]
發(fā)表于 2008-07-29 10:46 |只看該作者
4.2的php 4.3的pgsql安裝我都寫過了 其實看看提示就能解決的問題啊 另外如果你有l(wèi)inux安裝php的經(jīng)驗 這些問題都是小兒科
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP