Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2008
    Location
    United States
    Posts
    140

    Question How to install mbstring for PHP5?

    Hi guys,
    I'm using Apache2, MySQL5, and PHP5 with CentOS4.6, cPanel 11.
    When recompile Apache2 and PHP5 from WHM, there are no options for mbstring, so now my PHP5 doesn't has mbstring.

    I tried to install mbstring as below, but I got this message:
    root@mybox [~]# yum install php-mbstring
    Setting up Install Process
    Setting up repositories
    update 100% |=========================| 951 B 00:00
    base 100% |=========================| 1.1 kB 00:00
    addons 100% |=========================| 951 B 00:00
    extras 100% |=========================| 1.1 kB 00:00
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    No Match for argument: php-mbstring
    Nothing to do
    I also tried:
    up2date -i php-mbstring
    but no luck!

    Are there other ways to install mbstring for PHP5?

  2. #2
    Try to recompile apache in WHM, mbstring option is in there.
    PremiumReseller.com Hyper-V SSD VPS USA London Singapore
    Reseller Hosting Cpanel PURE SSD CloudLinux Softaculous
    Windows Reseller Asp.NET 4.5 MSSQL SmarterMail Enterprise

  3. #3
    Join Date
    Jan 2008
    Location
    United States
    Posts
    140
    I didn't see that option. It just a short add-on list at PHP section.

  4. #4
    Should be like this:

    Select Profile --> Customize --> Select Apache Version --> Select PHP Version --> Exhaustive Options List --> Check "Mbstring"

    It should be under:

    PHP 5.2.5 (Be sure to "harden" your PHP since PHP has many security issues)

    Should work, I'm guessing you're still in the small menu because you didn't go to the exhaustive options list.
    || ServaxNet (AS46974)
    || Server Management and Managed Hosting Experts Since 2004

  5. #5
    Join Date
    Jan 2008
    Location
    United States
    Posts
    140
    ok, I see it now. So it must need to recompile Apache, PHP to have mbstring?
    Can you please guide me how to harden PHP?

  6. #6
    Join Date
    Mar 2009
    Posts
    66
    Quote Originally Posted by Servax View Post
    Should be like this:

    Select Profile --> Customize --> Select Apache Version --> Select PHP Version --> Exhaustive Options List --> Check "Mbstring"

    It should be under:

    PHP 5.2.5 (Be sure to "harden" your PHP since PHP has many security issues)

    Should work, I'm guessing you're still in the small menu because you didn't go to the exhaustive options list.
    Where are these options?? Please help me

  7. #7
    Join Date
    May 2009
    Location
    Dhaka, Bangladesh
    Posts
    154
    login to your WHM >> EasyApache (Apache Update) >> Start customize based on your default profile >> Select Apache version >> Select PHP Version >> Select PHP Minor Version >> Select Short Option as per your needs >> Exhaustive Options List, there you will find "Mbstring" select that option(you can search by ctrl+F5 with Mbstring) >> start Rebuilding apache
    TetraHost Bangladesh
    Shared Hosting | Reseller Hosting | SSD VPS | Bangladesh and USA based Dedicated Server
    Multiple Location: USA, Singapore and Bangladesh
    Biased for true hosting experience - www.tetrahostbd.com

  8. #8
    Join Date
    Mar 2009
    Posts
    66
    i did that. I need xslt. how can i do that?

  9. #9
    Join Date
    Nov 2009
    Posts
    70
    for XSL; from http://www.webhostingtalk.com/archiv.../t-565940.html

    - - -

    Edit /home/cpapachebuild/buildapache/buildscript
    There are about a dozen lines that start with ./configure and have all of the php options as listed in my original post. add --with-xsl to the end of all of them.
    Execute this -

    sh /home/cpapachebuild/buildapache/buildscript

    yaa this is the best way to configure XSL with the PHP. I did this many times without an error. Once the build will complete check the PHP modules by using the command

    php -m

    - - -
    Larry Dougherty
    Hosting.com Server Engineer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •