Apache2 PHP5 Mysql4 ServU5
1、Apache2 修改%Apache2%\conf\httf.conf
a)添加PHP模块,如下 LoadModule php5_module "%PHP5%/php5apache2.dll" PHPIniDir %PHP5% AddType application/x-httpd-php .php b)修改网页目录 DocumentRoot "%Webroot%/htdocs" 2、PHP5
a)修改%PHP5%\php.ini include_path = ".;%PHP5%\PEAR" extension_dir = "%PHP5%/ext/" extension=php_mysql.dll b)从%PHP5%下拷贝 php5apache2.dll libmysql.dll 到%WINDIR%\system32 *测试,Apache2+PHP5安装完毕 %Apache2%\bin\apache.exe -k install net start apache2
3、MySQL4
a)拷贝my.ini到%WINDIR% b)修改my.ini datadir=%DATA_LOC%
4、Serv-U5
a)在Mysql下创建数据库%SERVU_DB% 在 %SERVU_DB% 下执行CreateServUTables.sql b)安装MyODBC-standard-3.51.9-win.exe c)在 管理工具->数据源(ODBC)->系统DSN 添加 MyODB C3.51.9驱动 "DATA Source Name" 填写%SERVU_DRIVE% "Database Name" 填写 %SERVU_DB% d)修改%SERVU_DIR%\ServUDaemon.ini [DOMAINS] Domain1=%LOCALHSOT_IP%||21|NPPL|2|0|1 [Domain1] CacheTTL=60 ODBCSource=%SERVU_DRIVE%|| ODBCTables=useraccounts|groupaccounts|userdiraccess|groupdiraccess|useripaccess|groupipaccess ODBCColumns=Name|Password|SKeyValues|HomeDir|LogMesFile|Access|Disable|NeedSecure|RelPaths|HideHidden|AlwaysLogin|ChangePass|QuotaEnable|MaxIP|MaxSpeedUp|MaxSpeedDown|MaxUsers|IdleTimeOut|SessionTimeOut|RatioUp|RatioDown|RatioCredit|QuotaCurrent|QuotaMax|Expiration|Privilege|PassType|RatioType|Groups|Notes|Index EncryptPasswords=0
CreateServUTables.sql文件
# phpMyAdmin SQL Dump # version 2.5.3 # http://www.phpmyadmin.net # #
# --------------------------------------------------------
# # Structure of the `groupaccounts` table #
DROP TABLE IF EXISTS `groupaccounts`; CREATE TABLE `groupaccounts` ( `Name` varchar(50) NOT NULL default '', `Notes` varchar(255) default NULL, PRIMARY KEY (`Name`) ) TYPE=MyISAM;
# --------------------------------------------------------
# # Structure of the `groupdiraccess` table #
DROP TABLE IF EXISTS `groupdiraccess`; CREATE TABLE `groupdiraccess` ( `Index` smallint(5) unsigned NOT NULL default '0', `Name` varchar(50) NOT NULL default '', `Access` varchar(200) default NULL, PRIMARY KEY (`Index`,`Name`) ) TYPE=MyISAM;
# --------------------------------------------------------
# # Structure of the `groupipaccess` table #
DROP TABLE IF EXISTS `groupipaccess`; CREATE TABLE `groupipaccess` ( `Index` smallint(5) NOT NULL default '0', `Name` varchar(50) NOT NULL default '', `Access` varchar(80) default NULL, PRIMARY KEY (`Index`,`Name`) ) TYPE=MyISAM;
# --------------------------------------------------------
# # Structure of the `useraccounts` table #
DROP TABLE IF EXISTS `useraccounts`; CREATE TABLE `useraccounts` ( `Name` varchar(50) NOT NULL default '', `Password` varchar(50) default NULL, `SKeyValues` varchar(50) default NULL, `HomeDir` varchar(200) NOT NULL default '', `LogMesFile` varchar(80) default NULL, `Disable` tinyint(1) default NULL, `NeedSecure` tinyint(1) default NULL, `RelPaths` tinyint(1) default NULL, `HideHidden` tinyint(1) default NULL, `AlwaysLogin` tinyint(1) default NULL, `ChangePass` tinyint(1) default NULL, `QuotaEnable` tinyint(1) default NULL, `MaxIP` smallint(5) default NULL, `MaxSpeedUp` int(10) default NULL, `MaxSpeedDown` int(10) default NULL, `MaxUsers` smallint(5) default NULL, `IdleTimeOut` int(10) default NULL, `SessionTimeOut` int(10) default NULL, `RatioUp` smallint(2) default NULL, `RatioDown` smallint(2) default NULL, `RatioCredit` float(16,9) default NULL, `QuotaCurrent` bigint(20) default NULL, `QuotaMax` bigint(20) default NULL, `Expiration` datetime default NULL, `Privilege` tinyint(3) default NULL, `PassType` tinyint(3) default NULL, `RatioType` tinyint(3) default NULL, `Groups` varchar(80) default NULL, `Notes` varchar(255) default NULL, PRIMARY KEY (`Name`) ) TYPE=MyISAM;
# --------------------------------------------------------
# # Structure of the `userdiraccess` table #
DROP TABLE IF EXISTS `userdiraccess`; CREATE TABLE `userdiraccess` ( `Index` smallint(5) unsigned NOT NULL default '0', `Name` varchar(50) NOT NULL default '', `Access` varchar(200) default NULL, PRIMARY KEY (`Index`,`Name`) ) TYPE=MyISAM;
# --------------------------------------------------------
# # Structure of the `useripaccess` table #
DROP TABLE IF EXISTS `useripaccess`; CREATE TABLE `useripaccess` ( `Index` smallint(5) unsigned NOT NULL default '0', `Name` varchar(50) NOT NULL default '', `Access` varchar(80) default NULL, PRIMARY KEY (`Index`,`Name`) ) TYPE=MyISAM;

|