Apache 2.2 Install
==================
cd /usr/ports/www/apache22
make install
MySQL5.0 Install
================
cd /usr/ports/databases/mysql50-server
make install
หรือ
make WITH_CHARSET=tis620 WITH_XCHARSET=all \
WITH_COLLATION=tis620_thai_ci install
(เพื่อให้ MySQL Server รองรับ charset tis-620 ครับ)
pico /etc/rc.conf
เพิ่มคำสั่ง mysql_enable="YES"
** โดยปกติบน Apache 2.2 จะไม่รองรับ web ของ user ครับ
แก้ไขปัญหานี้ได้โดย
1. cd /usr/local/etc/apache22/Includes
2. pico user_dir.conf
แล้วเพิ่มคำสั่งเหล่านี้เข้าไปนะ
<IfModule mod_userdir.c>
UserDir public_html
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</IfModule>
# The configuration files in the etc/apache22/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.
# Server-pool management (MPM specific)
#Include etc/apache22/extra/httpd-mpm.conf
# Multi-language error messages
#Include etc/apache22/extra/httpd-multilang-errordoc.conf
# Fancy directory listings
#Include etc/apache22/extra/httpd-autoindex.conf
# Language settings
#Include etc/apache22/extra/httpd-languages.conf
# User home directories
#Include etc/apache22/extra/httpd-userdir.conf
# Real-time info on requests and configuration
#Include etc/apache22/extra/httpd-info.conf
# Virtual hosts
#Include etc/apache22/extra/httpd-vhosts.conf
# Local access to the Apache HTTP Server Manual
#Include etc/apache22/extra/httpd-manual.conf
# Distributed authoring and versioning (WebDAV)
#Include etc/apache22/extra/httpd-dav.conf
# Various default settings
#Include etc/apache22/extra/httpd-default.conf
# Secure (SSL/TLS) connections
#Include etc/apache22/extra/httpd-ssl.conf
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
แอดมินพอกะเทิน
Comment : 6
maha
Posted : 2006-07-23 21:39:48 IP : (58.147.101.157)