你的位置:国外/美国服务器租用 技术文档 LinuxVPS使用教程 正文
美国服务器出租
  1. 1美国独立服务器10G独享带宽不限流量,欧洲1G带宽独享,不限流量
  2. 2美国100M独享,洛杉矶 32GB内存 英特尔至强CPU,特价:1699元/月
  3. 3美国加州机房100M独享E3-1270,32G内存/96G内存,送KVM,1399元/月
  4. 4美国云服务器,8G内存,服务器CPU,4核心,特价699元/月,16G内存1299元
  5. 5美国G口抗攻击服务器,G口1000M独享带宽抗DDOS攻击服务器(至强Xeon E3 1230)
  6. 6国外G口带宽独享服务器,美国G口独享,欧洲G口独享服务器租用
  7. 7美国圣安娜KT服务器,加州KT服务器租用,KT独立服务器出租(特价799元/月)
  8. 8加州洛杉矶机房,中国访问速度最快的美国机房之一,999元/月,4G内存20M独享
  9. 9美国1G独享带宽,欧洲1G独享带宽租用(视频等大流量网站解决方案)
  10. 10凤凰城机房Phoenix服务器租用:7个机房4核I3,8G内存,30M独享带宽,首月999元
美国VPS主机
  1. 1美国SSD VPS租用,美国西海岸加州洛杉矶SSD VPS服务器,Linux/Windows
  2. 2内华达州VPS,拉斯维加斯VPS,拉斯维加斯服务器,内华达州服务器租用
  3. 3美国东海岸VPS,纽约服务器,曼哈顿云服务器,纽约VPS租用
  4. 4外贸VPS服务器,仿牌空间,仿牌主机,抗投诉VPS(外贸英文商城VPS)SSL证书安装服务
  5. 5美国Psychz电信直连VPS,中国访问速度最快的美国VPS,Psychz机房VPS
  6. 6Camforg专用VPS,美国Camforg多视频聊天软件VPS,Camforg服务器租用
  7. 7美国加州VPS,洛杉矶WebNX机房VPS,加州WN机房Windows VPS
  8. 8美国西雅图VPS,西雅图机房VPS,支持试用的VPS,VPS试用10元/天
  9. 9合租美国服务器,国外服务器合租,高端VPS服务器,完胜低配独立服务器的VPS
  10. 10抗攻击Windows VPS,不怕DDOS攻击的VPS,有攻击不关机,无攻击后2小时内恢复
Unable to initialize module的php错误PHP Startup: mhash: Unable to initialize module
  • Unable to initialize module的php错误的原因通常是因为模块和php的版本不一致导致的。例如下面错误:

    [[email protected]]# php -v
    PHP Warning:  PHP Startup: mhash: Unable to initialize module
    Module compiled with module API=20050922, debug=0, thread-safety=0
    PHP    compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
     in Unknown on line 0
    PHP 5.2.17 (cli) (built: Feb 19 2011 11:52:47)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
        with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
        with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
    [[email protected]]# yum list installed | grep php-mhash
    php-mhash.i386                              5.1.6-15.el5.centos.1      installed

    明显,mhash模块版本5.1.6和php的版本5.2.17不一致

    解决办法,吧mhash模块升级到对应的php版本

    [[email protected]]#  yum --enablerepo=webtatic --exclude=php*5.3* update -y php-mhash
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirror.steadfast.net
     * extras: mirrors.gigenet.com
     * updates: mirror.ubiquityservers.com
    webtatic                                                                                                                                                  |  951 B     00:00    
    webtatic/primary                                                                                                                                          |  42 kB     00:00    
    webtatic                                                                                                                                                                 229/229
    Excluding Packages in global exclude list
    Finished
    Setting up Update Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-mhash.i386 0:5.2.17-1.1.w5 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved

    =================================================================================================================================================================================
     Package                                    Arch                                  Version                                        Repository                                 Size
    =================================================================================================================================================================================
    Updating:
     php-mhash                                  i386                                  5.2.17-1.1.w5                                  webtatic                                   20 k

    Transaction Summary
    =================================================================================================================================================================================
    Install       0 Package(s)
    Upgrade       1 Package(s)

    Total download size: 20 k
    Downloading Packages:
    php-mhash-5.2.17-1.1.w5.i386.rpm                                                                                                                          |  20 kB     00:00    
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating       : php-mhash                                                                                                                                                 1/2
      Cleanup        : php-mhash                                                                                                                                                 2/2

    Updated:
      php-mhash.i386 0:5.2.17-1.1.w5                                                                                                                                                

    Complete!

  • 点这里复制本页地址发送给您QQ/MSN上的好友