ApachePhpMysql
h may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/libexec/apache22/libphp5.so
/usr/local/bin/php
/usr/local/bin/php-cgi
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
doc.guandang.net
现在请把这个配置增加到httpd.conf
b2sun.com#ee /usr/local/etc/apache22/httpd.conf
在第106行之后加入
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
然后保存退出。
Options for php5 5.2.5 │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │[X] CLI Build CLI version │ │
│ │[X] CGI Build CGI version │ │
│ │[X] APACHE Build Apache module │ │
│ │[X] DEBUG Enable debug │ │
│ │[X] SUHOSIN Enable Suhosin protection system (not for jails) │ │
│ │[X] MULTIBYTE Enable zend multibyte support │ │
│ │[X] IPV6 Enable ipv6 support │ │
│ │[X] MAILHEAD Enable mail header patch │ │
│ │[X] REDIRECT Enable force-cgi-redirect support (CGI only) │ │
│ │[X] DISCARD Enable discard-path support (CGI only) │ │
│ │[X] FASTCGI Enable fastcgi support (CGI only) │ │
│ │[X] PATHINFO Enable path-info-check support (CGI only)
[ OK ] Cancel
────────────────────────────────────────────────────────────────────┐
重新启动APACHE22
hare# kldload accf_data
hare# kldload accf_http
hare# apachectl start
b2sun.com#apachectl restart
编写一个测试文档
b2sun.com#ee /usr/local/www/apache22/data/phpinfo.php
<php>
保存退出。
在WEB查看器上录入:
doc.guandang.net
如果出现PHP5的信息就证明您解析成功了。恭喜您
参考出现的提示信息如下:
PHP Version 5.2.5
System FreeBSD hare 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Build Date Jun 28 2008 22:29:39
Configure Command './configure' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--enable-debug' '--enable-zend-multibyte' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/
apache+php_mysql配置图文详解_计算机软件及应用_IT/计算机_专业资料。Windows 下搭建 PHP 开发环境 PHP 集成开发环境有很多,如 XAMPP、AppServ...只要一键安装就...
apache+php+mysql配置(绝对可靠)_计算机软件及应用_IT/计算机_专业资料。这是我到网上找了许多资料,看了一些视频,然后总结出来的,希望能给你带来一定的帮助!...
Apache+php+mysql安装整合_IT/计算机_专业资料。Apache+php+mysql安装整合Apache 的安装 1 点击 apahce 安装包 2 接受协议 3 下面 3 项随便填即可 apache ...
Apache+PHP+MySQL+phpMyAdmin详细配置教程_IT/计算机_专业资料。Apache,PHP,MySQL,phpMyAdmin,详细配置Apache+PHP+MySQL+phpMyAdmin 超详细配置教程首先解决大家的几...
apache+php+mysql移植步骤_互联网_IT/计算机_专业资料。apache+php+mysql嵌入式linux操作系统移植步骤经过了接近三个星期的研究,查阅了太多资料,编译的过程中出了...
Apache+php+mysql 在 windows 下的安装与配 置图解一、安装 Apache,配置成功一个普通网站服务器 运行下载好的“apache_2.0.55-win32-x86-no_ss...
apache+php+mysql 在 win2003 下架设多站教程 1. 所需工具:PC_webserver2007 可以到网上下载,这个工具是傻瓜式 apache+php+mysql 安装环境工具, 下载双击安装,...
搭建PHP+mysql+apache环境_计算机软件及应用_IT/计算机_专业资料。PHP、mysql、apacheWIN7 下搭建 PHP 环境注意: 本文章里的代码在复制出的时候有可能会导致编码...
Linux+Apache+Mysql +Php 配置 (终极方法,汇集了 N 多资料,配置了上十次环境总结出来的) 环境: centos5.5+apache2.2.11+mysql5.0.22+php5.3.8 安装 ...
apache+php+mysql服务器配置_工学_高等教育_教育专区。apache+php+mysql服务器详细配置配置Apache HTTP Sever+ PHP +MySql 的安装与配置 的安装与配置一、安装并...
热门文档