在webmin安装statusnet微博程序,首先需要安装virtualmin:如何安装Virtualmin/Webmin在centos5上(一行命令安装virtualmin面板),然后需要升级webmin的php版本和mysql版本:Centos5.4(webmin)中Yum升级mysql5.1和php5.2(禁止php5.3),然后我们开始安装statusnet微博程序。
错误提示: 需要 dom 和 xml 扩展库,解决办法如下:
[root@vps113 backup]# yum --enablerepo=webtatic --exclude=php*5.3* update -y php-xml
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: yum.singlehop.com
* base: mirror.nexcess.net
* epel: mirror.vcu.edu
* extras: mirrors.netdna.com
* updates: dist1.800hosting.com
Excluding Packages in global exclude list
Finished
Setting up Update Process
Package(s) php-xml available, but not installed.
No Packages marked for Update
[root@vps113 backup]# yum --enablerepo=webtatic --exclude=php*5.3* install -y php-xml
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: yum.singlehop.com
* base: mirror.nexcess.net
* epel: mirror.vcu.edu
* extras: mirrors.netdna.com
* updates: dist1.800hosting.com
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-xml.i386 0:5.2.13-1 set to be updated
--> Processing Dependency: libexslt.so.0 for package: php-xml
--> Processing Dependency: libxslt.so.1 for package: php-xml
--> Running transaction check
---> Package libxslt.i386 0:1.1.17-2.el5_2.2 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
php-xml i386 5.2.13-1 webtatic 112 k
Installing for dependencies:
libxslt i386 1.1.17-2.el5_2.2 base 485 k
Transaction Summary
====================================================================================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 597 k
Downloading Packages:
(1/2): php-xml-5.2.13-1.i386.rpm | 112 kB 00:00
(2/2): libxslt-1.1.17-2.el5_2.2.i386.rpm | 485 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------
Total 435 kB/s | 597 kB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libxslt 1/2
Installing : php-xml 2/2
Installed:
php-xml.i386 0:5.2.13-1
Dependency Installed:
libxslt.i386 0:1.1.17-2.el5_2.2
Complete!
还有错误提示:说pcre不支持Unicode ! 如下图,解决办法如下:
[root@vps113 backup]# pcretest -C
PCRE version 6.6 06-Feb-2006
Compiled with
UTF-8 support
No Unicode properties support
Newline character is LF
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
[root@vps113 backup]# ls
www.ctohome.com
[root@vps113 backup]# cd www.ctohome.com/
[root@vps113 www.ctohome.com]# ls
epel-release-5-3.noarch.rpm remi-release-5-7.el5.remi.noarch.rpm ZendOptimizer-3.3.3-linux-glibc23-i386 zend.sh
install.sh unrar-3.6.8-1.el5.rf.i386.rpm ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
[root@vps113 www.ctohome.com]# wget http://gaarai.com/wp-content/uploads/2009/01/pcre-6.6-2.7.i386.rpm
--2010-04-13 11:28:53-- http://gaarai.com/wp-content/uploads/2009/01/pcre-6.6-2.7.i386.rpm
Resolving gaarai.com... 74.53.81.82
Connecting to gaarai.com|74.53.81.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 241253 (236K) [text/plain]
Saving to: `pcre-6.6-2.7.i386.rpm'
100%[==========================================================================================>] 241,253 602K/s in 0.4s
2010-04-13 11:28:53 (602 KB/s) - `pcre-6.6-2.7.i386.rpm' saved [241253/241253]
[root@vps113 www.ctohome.com]# rpm -Uvh pcre-6.6-2.7.i386.rpm
Preparing... ########################################### [100%]
1:pcre ########################################### [100%]
[root@vps113 www.ctohome.com]# pcretest -C
PCRE version 6.6 06-Feb-2006
Compiled with
UTF-8 support
Unicode properties support
Newline character is LF
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
重启apache,可以正常安装了:
[root@vps113 www.ctohome.com]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
要支持fancy urls需要修改 .htaccess 文件