packages for Discuz on freebsd6.0 v1.0
[简体中文 GBK] 支持
[简体中文 UTF-8] 支持
[繁體中文 BIG5] 支持
[繁體中文 UTF-8] 支持
[English] 支持
测试地址:http://wwwgp.oicp.net/ 把它搞爆吧!
系统环境:freebsd6.0
目的:构架Discuz!环境
好处:节省安装时间,节约硬盘空间!
大家可以想想我的小机如果正常安装的话会怎么样!
配置:PMMX166 128Msd 3G硬盘 fxp网卡 电源功率79W 实际功率最多不是就一个60W灯泡!够省电!
下载地址:http://58.60.9.141/cgi-bin/dl/52 ... DiscuzONfreebsd.rar
全打包地址:http://58.60.9.141/cgi-bin/dl/52 ... cuzONfreebsdAll.rar
packages列表:
apache-2.2.0_7 Version 2.2 of Apache web server with prefork MPM.
autoconf-2.59_2 Automatically configure source code on many Un*x platforms
cclient-2004g,1 Mark Crispin's C-client mail access routines
expat-2.0.0_1 XML 1.0 parser written in C
fontconfig-2.3.2_3,1 An XML-based font configuration API for X Windows
freetype2-2.1.10_3 A free and portable TrueType font rendering engine
gettext-0.14.5_2 GNU gettext package
gmake-3.80_2 GNU version of 'make' utility
help2man-1.36.3 Automatically generating simple manual pages from program o
imake-6.9.0 Imake and other utilities from X.Org
jpeg-6b_4 IJG's jpeg compression utilities
ldconfig_compat-1.0_6 Ldconfig compatibility script
libdrm-2.0_1 Userspace interface to kernel Direct Rendering Module servi
libiconv-1.9.2_2 A character set conversion library
libtool-1.5.22_2 Generic shared library support script
libxml2-2.6.23_1 XML parser library for GNOME
linux_base-8-8.0_6 Base set of packages needed in Linux mode (only for i386)
m4-1.4.4 GNU m4
mysql-client-5.1.7 Multithreaded SQL database (client)
mysql-server-5.1.7 Multithreaded SQL database (server)
p5-gettext-1.05_1 Message handling functions
pecl-PDO-1.0.2 PHP Data Objects Interface
perl-5.8.8 Practical Extraction and Report Language
php5-5.1.2_1 PHP Scripting Language (Apache Module and CLI)
php5-ctype-5.1.2_1 The ctype shared extension for php
php5-dom-5.1.2_1 The dom shared extension for php
php5-extensions-1.0 A "meta-port" to install PHP extensions
php5-gd-5.1.2_1 The gd shared extension for php
php5-iconv-5.1.2_1 The iconv shared extension for php
php5-imap-5.1.2_1 The imap shared extension for php
php5-mysql-5.1.2_1 The mysql shared extension for php
php5-pcre-5.1.2_1 The pcre shared extension for php
php5-posix-5.1.2_1 The posix shared extension for php
php5-session-5.1.2_1 The session shared extension for php
php5-simplexml-5.1.2_1 The simplexml shared extension for php
php5-sqlite-5.1.2_1 The sqlite shared extension for php
php5-tokenizer-5.1.2_1 The tokenizer shared extension for php
php5-xml-5.1.2_1 The xml shared extension for php
php5-xmlreader-5.1.2_1 The xmlreader shared extension for php
php5-xmlwriter-5.1.2_1 The xmlwriter shared extension for php
php5-zlib-5.1.2_1 The zlib shared extension for php
pkgconfig-0.20 A utility to retrieve information about installed libraries
png-1.2.8_3 Library for manipulating PNG images
python-2.4.2 An interpreted object-oriented programming language
t1lib-5.1.0_1,1 A Type 1 Rasterizer Library for UNIX/X11
xorg-libraries-6.9.0 X11 libraries and headers from X.Org
----打包参数:--看不懂的以后慢慢学吧。
先建个packages集中管理路径:#mkdir -p /usr/ports/packages/All/
mysql51:#make WITH_CHARSET=gbk WITH_XCHARSET=all WITH_PROC_SCOPE_PTH=yes SKIP_DNS_CHECK=yes BUILD_OPTIMIZED=yes BUILD_STATIC=yes DEPENDS_TARGET=package package
apache22:#make DEPENDS_TARGET=package package
php5:#make DEPENDS_TARGET=package package
php5-extension:#make config ----默认选项+CTYPE、EXIF、GD、ICONV、IMAP、PCRE、SESSION、ZLIB。
#make DEPENDS_TARGET=package package
php5-mysql:#make DEPENDS_TARGET=package package
----打包参数。
安装方法:
安装之前请确保你的系统时间是正确的,嘿嘿!
#mkdir -p /usr/ports/packages/All/
DiscuzONfreebsd.rar解压并且上传到/usr/ports/packages/All/目录
然后
#cd /usr/ports/packages/All/
#pkg_add *.tbz
安装完后
-----不懂装FTP的朋友看:
#ee /etc/inetd.config
去掉第一个FTPD的#字。按ESC,选择保存。
打开root的ftp权:
#ee /etc/ftpusers
在root前加个#。
在/etc下添加一个文件ftpchroot:
#ee /etc/ftpchroot
编辑添加root的ftp目录
root /usr/
保存
重跑inetd使FTP生效
#/etc/rc.d/inetd restart
用root登陆ftp://你的IP。
-----不懂装FTP的朋友看。
编辑文件添加开机启动:
#ee /etc/rc.conf
apache22_enable="YES"
mysql_enable="yes"
编辑添加解决apache22启动错误问题:
#ee /boot/loader.conf
accf_http_load="yes"
配置编辑php.ini并解决空白页问题:
#cp /usr/local/etc/php.ini-recommended /usr/local/etc/php.ini
#ee /usr/local/etc/php.ini
找到141行或者short_open_tag = Off,把Off 改为 On
编辑添加apapche的php支持:
#ee /usr/local/etc/apache22/httpd.conf
找到102行或者关键字libexec/apache22/libphp5.so下面添加
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
再找到215行附近把
DirectoryIndex index.html
改为
DirectoryIndex index.php index.htm index.html
保存退出
#reboot
就完成安装了。
测试浏览一下机器ip看看运行OK不! is work!
传个探针到
/usr/local/www/apache22/data/
看看!
下面教大家安装ZendOptimizer:
到官方去下载
ZendOptimizer-3.0.0Beta3-freebsd6.0-i386.tar.gz
上传到某目录比如说/usr/ports/distfiles/:
#cd /usr/ports/distfiles/
#tar -zxvf ZendOptimizer-3.0.0Beta3-freebsd6.0-i386.tar.gz
#cd /usr/ports/distfiles/ZendOptimizer-3.0.0Beta3-freebsd6.0-i386
#./install
按照提示安装完就OK了!
最后一个提示自己注意哦。
重启apache22:
#/usr/local/sbin/apachectl restart
看看php探针内容变了没。
改root的mysql密码命令:
#mysqladmin -u root -p password '密码内容'
改密码后root的mysql登陆命令:
#mysql -u root -p
好了你现在可以体验一下discuz论坛在freebsd的速度了!
谢谢大家使用!附件上我的内核文件配置供大家参考:
machine i386
#cpu I486_CPU
cpu I586_CPU
#cpu I686_CPU
ident MYKERNEL
# To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" # Default places to look for devices.
#makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
#options SCHED_ULE # ULE scheduler
options SCHED_4BSD # 4BSD scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
#options INET6 # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
#options UFS_DIRHASH # Improve performance on big directories
#options MD_ROOT # MD is a potential root device
#options NFSCLIENT # Network Filesystem Client
#options NFSSERVER # Network Filesystem Server
#options NFS_ROOT # NFS usable as /, requires NFSCLIENT
#options MSDOSFS # MSDOS Filesystem
options CD9660 # ISO 9660 Filesystem
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
#options GEOM_GPT # GUID Partition Tables.
options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
#options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
#options KTRACE # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
#options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
#options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~128k to driver.
#options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~215k to driver.
options ADAPTIVE_GIANT # Giant mutex is adaptive.
#device apic # I/O APIC
# Bus support.
device isa
device pci
# Floppy drives
#device fdc
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
#device ataraid # ATA RAID drives
device atapicd # ATAPI CDROM drives
#device atapifd # ATAPI floppy drives
#device atapist # ATAPI tape drives
options ATA_STATIC_ID # Static device numbering
# SCSI Controllers
#device ahb # EISA AHA1742 family
#device ahc # AHA2940 and onboard AIC7xxx devices
#device ahd # AHA39320/29320 and onboard AIC79xx devices
#device amd # AMD 53C974 (Tekram DC-390(T))
#device isp # Qlogic family
#device ispfw # Firmware for QLogic HBAs- normally a module
#device mpt # LSI-Logic MPT-Fusion
#device ncr # NCR/Symbios Logic
#device sym # NCR/Symbios Logic (newer chipsets + those of `ncr')
#device trm # Tekram DC395U/UW/F DC315U adapters
#device adv # Advansys SCSI adapters
#device adw # Advansys wide SCSI adapters
#device aha # Adaptec 154x SCSI adapters
#device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
#device bt # Buslogic/Mylex MultiMaster SCSI adapters
#device ncv # NCR 53C500
#device nsp # Workbit Ninja SCSI-3
#device stg # TMC 18C30/18C50
# SCSI peripherals
#device scbus # SCSI bus (required for SCSI)
#device ch # SCSI media changers
#device da # Direct Access (disks)
#device sa # Sequential Access (tape etc)
#device cd # CD
#device pass # Passthrough device (direct SCSI access)
#device ses # SCSI Environmental Services (and SAF-TE)
# RAID controllers interfaced to the SCSI subsystem
#device amr # AMI MegaRAID
#device arcmsr # Areca SATA II RAID
#device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID
#device ciss # Compaq Smart RAID 5*
#device dpt # DPT Smartcache III, IV - See NOTES for options
#device hptmv # Highpoint RocketRAID 182x
#device iir # Intel Integrated RAID
#device ips # IBM (Adaptec) ServeRAID
#device mly # Mylex AcceleRAID/eXtremeRAID
#device twa # 3ware 9000 series PATA/SATA RAID
# RAID controllers
#device aac # Adaptec FSA RAID
#device aacp # SCSI passthrough for aac (requires CAM)
#device ida # Compaq Smart RAID
#device mlx # Mylex DAC960 family
#device pst # Promise Supertrak SX6000
#device twe # 3ware ATA RAID
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
#device psm # PS/2 mouse
device vga # VGA video card driver
device splash # Splash screen and screen saver support
# syscons is the default console driver, resembling an SCO console
device sc
# Enable this for the pcvt (VT220 compatible) console driver
#device vt
#options XSERVER # support for X server on a vt console
#options FAT_CURSOR # start with block cursor
device agp # support several AGP chipsets
# Power management support (see NOTES for more options)
#device apm
# Add suspend/resume support for the i8254.
device pmtimer
# PCCARD (PCMCIA) support
# PCMCIA and cardbus bridge support
#device cbb # cardbus (yenta) bridge
#device pccard # PC Card (16-bit) bus
#device cardbus # CardBus (32-bit) bus
# Serial (COM) ports
#device sio # 8250, 16[45]50 based serial ports
# Parallel port
#device ppc
#device ppbus # Parallel port bus (required)
#device lpt # Printer
#device plip # TCP/IP over parallel
#device ppi # Parallel port interface device
#device vpo # Requires scbus and da
# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to the sio and/or ppc drivers):
#device puc
# PCI Ethernet NICs.
#device de # DEC/Intel DC21x4x (``Tulip'')
#device em # Intel PRO/1000 adapter Gigabit Ethernet Card
#device ixgb # Intel PRO/10GbE Ethernet Card
#device txp # 3Com 3cR990 (``Typhoon'')
#device vx # 3Com 3c590, 3c595 (``Vortex'')
# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device miibus # MII bus support
#device bfe # Broadcom BCM440x 10/100 Ethernet
#device bge # Broadcom BCM570xx Gigabit Ethernet
#device dc # DEC/Intel 21143 and various workalikes
device fxp # Intel EtherExpress PRO/100B (82557, 82558)
#device lge # Level 1 LXT1001 gigabit Ethernet
#device nge # NatSemi DP83820 gigabit Ethernet
#device nve # nVidia nForce MCP on-board Ethernet Networking
#device pcn # AMD Am79C97x PCI 10/100(precedence over 'lnc')
#device re # RealTek 8139C+/8169/8169S/8110S
#device rl # RealTek 8129/8139
#device sf # Adaptec AIC-6915 (``Starfire'')
#device sis # Silicon Integrated Systems SiS 900/SiS 7016
#device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet
#device ste # Sundance ST201 (D-Link DFE-550TX)
#device ti # Alteon Networks Tigon I/II gigabit Ethernet
#device tl # Texas Instruments ThunderLAN
#device tx # SMC EtherPower II (83c170 ``EPIC'')
#device vge # VIA VT612x gigabit Ethernet
#device vr # VIA Rhine, Rhine II
#device wb # Winbond W89C840F
#device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
# ISA Ethernet NICs. pccard NICs included.
#device cs # Crystal Semiconductor CS89x0 NIC
# 'device ed' requires 'device miibus'
#device ed # NE[12]000, SMC Ultra, 3c503, DS8390 cards
#device ex # Intel EtherExpress Pro/10 and Pro/10+
#device ep # Etherlink III based cards
#device fe # Fujitsu MB8696x based cards
#device ie # EtherExpress 8/16, 3C507, StarLAN 10 etc.
#device lnc # NE2100, NE32-VL Lance Ethernet cards
#device sn # SMC's 9000 series of Ethernet chips
#device xe # Xircom pccard Ethernet
# ISA devices that use the old ISA shims
#device le
# Wireless NIC cards
#device wlan # 802.11 support
#device an # Aironet 4500/4800 802.11 wireless NICs.
#device awi # BayStack 660 and others
#device ral # Ralink Technology RT2500 wireless NICs.
#device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs.
#device wl # Older non 802.11 Wavelan wireless NIC.
# Pseudo devices.
device loop # Network loopback
device random # Entropy device
device ether # Ethernet support
#device sl # Kernel SLIP
#device ppp # Kernel PPP
#device tun # Packet tunnel.
device pty # Pseudo-ttys (telnet etc)
#device md # Memory "disks"
#device gif # IPv6 and IPv4 tunneling
#device faith # IPv6-to-IPv4 relaying (translation)
# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device bpf # Berkeley packet filter
# USB support
#device uhci # UHCI PCI->USB interface
#device ohci # OHCI PCI->USB interface
#device ehci # EHCI PCI->USB interface (USB 2.0)
#device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
#device ugen # Generic
#device uhid # "Human Interface Devices"
#device ukbd # Keyboard
#device ulpt # Printer
#device umass # Disks/Mass storage - Requires scbus and da
#device ums # Mouse
#device ural # Ralink Technology RT2500USB wireless NICs
#device urio # Diamond Rio 500 MP3 player
#device uscanner # Scanners
# USB Ethernet, requires miibus
#device aue # ADMtek USB Ethernet
#device axe # ASIX Electronics USB Ethernet
#device cdce # Generic USB over Ethernet
#device cue # CATC USB Ethernet
#device kue # Kawasaki LSI USB Ethernet
#device rue # RealTek RTL8150 USB Ethernet
# FireWire support
#device firewire # FireWire bus code
#device sbp # SCSI over FireWire (Requires scbus and da)
#device fwe # Ethernet over FireWire (non-standard!)
[ 本帖最后由 cwhsea 于 2006-4-1 15:14 编辑 ] |