tar -zvxf mysql-5.1.62-linux-x86_64-glibc23.tar.gz mkdir -p /usr/local/mysql cp -r mysql-5.1.62 /usr/local/mysql |
groupadd mysql useradd -g mysql mysql |
chown -R root /usr/local/mysql chgrp -R mysql /usr/local/mysql chown -R mysql /usr/local/mysql/data |
/usr/local/mysql/scripts/mysql_install_db --user=mysql& //啓動mysql服務 /usr/local/mysql/bin/mysqld_safe --user=mysql& |
tar -zvxf httpd-2.4.1.tar.gz
mkdir -p /usr/local/apache2
./configure --prefix=/usr/local/apache2 --enable-modules=all --enable-so --enable-rewrite
make
make install
/usr/local/apache2/bin/apachectl -k start //啓動apahce
用瀏覽器查看http://localhost,獲得it works,說明apache已經配置成功了.
# /usr/local/apache2/bin/apachectl -k stop //中止apache php
A:修改LocalLocalSettings.php在文件最後添加以下:
require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array( "tuniu-inc");
$wgLDAPServerNames = array( "tuniu-inc"=>"1.1.1.1");
$wgLDAPUseLocal = false;
$wgLDAPEncryptionType = array( "tuniu-inc"=>"clear");
$wgLDAPPort = array( "tuniu-inc"=>389);
$wgLDAPSearchStrings = array("tuniu-inc"=>"TUNIU-INC\USER-NAME");
$wgLDAPBaseDNs = array("tuniu-inc"=>"dc=tuniu-inc,dc=com");
$wgLDAPGroupBaseDNs = array("tuniu-inc"=>"ou=途牛,dc=tuniu-inc,dc=com");
$wgLDAPUserBaseDNs = array("tuniu-inc"=>"ou=途牛,dc=tuniu-inc,dc=com");
$wgLDAPPreferences = array("tuniu-inc"=>array( "email"=>"mail","realname"=>"displayname","nickname"=>"cn","language"=>"preferredlanguage"));
$wgLDAPDebug = 99;
$wgDebugLogGroups["ldap"] = "/tmp/twikidebug.log";html
http://www.mediawiki.org/wiki/Extension:LDAP_Authentication#Installation
http://www.mediawiki.org/wiki/Extension:LDAP_Authentication/Requirements
http://www.mediawiki.org/wiki/Extension:LDAP_Authentication/Configuration
http://clin003.com/wiki/mediawiki-geshi-generic-syntax-highlighter-1418/
http://www.mediawiki.org/wiki/Extension:GeSHiHighlight#MediaWiki_and_GeSHi
http://linux.chinaunix.net/techdoc/database/2008/03/04/981250.shtmlmysql