# chmod
設置開機啟動MYSQL
# vi /etc/rc
if [
/etc/rc
fi
# pkg_add
運行下面的命令使其生效
# cp /usr/local/share/examples/php
# /usr/local/sbin/phpxs
由於OPENBSD上的APACHE采用了CHROOT機制
# mkdir /var/www/tmp
# chmod
下面選擇安裝幾個PHP組件
# pkg_add
# /usr/local/sbin/phpxs
# pkg_add
# /usr/local/sbin/phpxs
# pkg_add
# /usr/local/sbin/phpxs
# pkg_add
# /usr/local/sbin/phpxs
# pkg_add
# /usr/local/sbin/phpxs
# pkg_add
# /usr/local/sbin/phpxs
# pkg_add
# /usr/local/sbin/phpxs
# pkg_add
# /usr/local/sbin/phpxs
# pkg_add
# /usr/local/sbin/phpxs
設置apache支持PHP:
# vi /var/www/conf/httpd
DirectoryIndex index
AddType application/x
AddType application/x
# vi /var/www/conf/php
doc_root=
register_globals = On
建立測試php頁面
# vi /var/www/htdocs/test
<?php phpinfo(); ?>
測試一下
# pkill httpd
# /usr/sbin/httpd
在浏覽器中輸入http://IP/test
[
From:http://tw.wingwit.com/Article/program/MySQL/201311/29660.html