Results 1 to 9 of 9
-
01-17-2008, 09:25 PM #1WHT Addict
- Join Date
- Jan 2008
- Location
- United States
- Posts
- 140
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
up2date -i php-mbstring
Are there other ways to install mbstring for PHP5?
-
01-17-2008, 09:36 PM #2Web Hosting Master
- Join Date
- Jan 2005
- Posts
- 3,403
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
-
01-17-2008, 09:54 PM #3WHT Addict
- 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.
-
01-17-2008, 11:03 PM #4Aspiring Evangelist
- Join Date
- Mar 2005
- Posts
- 402
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.
-
01-17-2008, 11:40 PM #5WHT Addict
- 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?
-
11-23-2009, 08:15 AM #6Junior Guru Wannabe
- Join Date
- Mar 2009
- Posts
- 66
-
11-23-2009, 09:22 AM #7WHT Addict
- 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
-
11-23-2009, 09:28 AM #8Junior Guru Wannabe
- Join Date
- Mar 2009
- Posts
- 66
i did that. I need xslt. how can i do that?
-
11-23-2009, 10:12 AM #9Junior Guru Wannabe
- 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