PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Dell PowerEdge Servers
  #46  
Old February 14th, 2008, 08:50 PM
bfulbright bfulbright is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 5 bfulbright User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 10 sec
Reputation Power: 0
mb string fix on remote host - request for options

IF I am on a remote host, with no access to the PHP file directory, what then, are my options as you mention below.

I need to resolve this issue on a remote host. All solutions here so far have described the fix very well, including yours.

However, no one has addressed the remote host that owns the PHP dir and to which we have no access.

Thanks,

bill

Quote:
Originally Posted by trogar1971
Firstly, some people in this thread are talking about moving the libraries/dll files to the root, but this is not a good way to keep the structure of the php install so that you can find things you might need later. To enable ANY module in PHP is a fairly simple process, no matter which OS you are using because PHP is not an OS dependent protocol or language. But to do so, you will need to check directory structure and open up your php.ini to make some changes.

Firstly, you need to browse to the place where PHP is installed on your machine, regardless of platform. When you find where PHP is installed, you need to open the folder and look for a folder called ext. In that folder, you will find a bunch of modules you can enable for your specific build of PHP. This is the PHP extension directory, and if the extension does not exist there, then your PHP build did not include the extension in question, and you will have to either rebuild it or find a ready made solution with the required extensions built into it. Look in this folder to see if mbstring exists. If it does, then you are set. If not, then you will need to rebuild or find another solution as previously mentioned.

In the meanwhile, back up to the directory where PHP is installed and open the php.ini file. Scroll through that file and look for a place like follows:

Code:
; Directory in which the loadable extensions (modules) reside.


Just below that line should be a line that starts with as follows:

Code:
extension_dir = 


After that is where you put the path that tells PHP where your extension directory is located within your file structure. For example, I am running a WAMP stack (Windows, Apache, MySQL, and PHP), so what my line looks like is as follows:

Code:
extension_dir = "D:/Apache2-2-8/php5-2-5/ext/"


Note, this is a FILE PATH based on your system's drive and folder structure.

Once you have this variable set, you need to move to the long listing of extensions that are commented out. Do a search for the following:

Code:
;extension=php


This should put you in the general area where the long list of enableable extensions are located. Scroll down until you find ;extension=php_mbstring.dll and uncomment it by deleting the ";" in front of the line. Restart your server and your extensions should be loaded.

Keep in mind this is for those with their own server which they have control over. If you are on a paid host and they do not allow per directory php.ini over rides and they do not have your extension compiled in their PHP build, you will not have these options.

This is the PROPER way of enabling extensions so that when you go to upgrade your PHP installations, you have less trouble with stray files laying around where they do not belong.

Hope this helps out.

Reply With Quote
  #47  
Old February 14th, 2008, 10:02 PM
trogar1971 trogar1971 is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 4 trogar1971 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 24 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by bfulbright
IF I am on a remote host, with no access to the PHP file directory, what then, are my options as you mention below.

I need to resolve this issue on a remote host. All solutions here so far have described the fix very well, including yours.

However, no one has addressed the remote host that owns the PHP dir and to which we have no access.

Thanks,

bill


Hello Bill,

I don't know what to tell you, as with the situation you are in, you are really at the whims of your hosting service. The only other option you have is if they allow per directory php.ini access for their hosters. If not, then the only other options you really have, to my knowledge, is to either ask them to enable mbstring for you, or find another host that includes the mbstring module. I am unaware of any other solutions for changing the configuration of PHP on a hosting server any other way. I can tell you that I host with godaddy, and I have seen what seems to be an allowance of per directory php.ini when hosting with them. Sorry I couldn't be of more help.

Reply With Quote
  #48  
Old February 15th, 2008, 05:12 AM
bfulbright bfulbright is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 5 bfulbright User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 10 sec
Reputation Power: 0
Thanks so much!!

trogar1971,

Thanks very much for your very quick reply!

It was also very helpful. I suspected that might have to be the path.

I will forward the solution to them and request their assistance. Godaddy be their name. Any experience with them?

I have been working with the PHP-Nuke platform for about 3 years now, and am still learning so much. This is my first request for help, and even before your reply I thought the replies and posts were good and thoughtful.

Definitely a great forum, from which I hope to learn much.

Thanks for your help.

Bill F.

Reply With Quote
  #49  
Old February 22nd, 2008, 12:11 PM
bfulbright bfulbright is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 5 bfulbright User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 10 sec
Reputation Power: 0
Any known workarounds for 'mbstring' issue?

trogar1971,

do you know of any workarounds for the 'mbstring' issue?

what host would you recommend that might allow access to the php.ini dir/file?

Thanks,

Bill



Quote:
Originally Posted by trogar1971
Hello Bill,

I don't know what to tell you, as with the situation you are in, you are really at the whims of your hosting service. The only other option you have is if they allow per directory php.ini access for their hosters. If not, then the only other options you really have, to my knowledge, is to either ask them to enable mbstring for you, or find another host that includes the mbstring module. I am unaware of any other solutions for changing the configuration of PHP on a hosting server any other way. I can tell you that I host with godaddy, and I have seen what seems to be an allowance of per directory php.ini when hosting with them. Sorry I couldn't be of more help.

Reply With Quote
  #50  
Old February 22nd, 2008, 12:36 PM
trogar1971 trogar1971 is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 4 trogar1971 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 24 m 55 sec
Reputation Power: 0
PHP Info results for Godaddy

Quote:
Originally Posted by bfulbright
trogar1971,

do you know of any workarounds for the 'mbstring' issue?

what host would you recommend that might allow access to the php.ini dir/file?

Thanks,

Bill


I can tell you that Godaddy DOES, on my hosting plan, have mbstring module loaded on startup. I just verified this as fact with a phpinfo check on the root of my hosting area, and mbstring is there. The proof, as copied and pasted from the results page:

mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 3.7.1

Hope this helps. I have the mid hosting package, btw, the Deluxe plan.

Reply With Quote
  #51  
Old February 22nd, 2008, 12:54 PM
bfulbright bfulbright is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 5 bfulbright User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 10 sec
Reputation Power: 0
GREAT. what tool can I use to do the php info check? would that be 'analyze.php'?


Quote:
Originally Posted by trogar1971
I can tell you that Godaddy DOES, on my hosting plan, have mbstring module loaded on startup. I just verified this as fact with a phpinfo check on the root of my hosting area, and mbstring is there. The proof, as copied and pasted from the results page:

mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 3.7.1

Hope this helps. I have the mid hosting package, btw, the Deluxe plan.

Reply With Quote
  #52  
Old February 22nd, 2008, 01:25 PM
trogar1971 trogar1971 is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 4 trogar1971 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 24 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by bfulbright
GREAT. what tool can I use to do the php info check? would that be 'analyze.php'?


Create a blank file, insert the following code:

Code:
<?php
phpinfo( );
?>


Call it whatever you want with the .php file extension. Upload it to your server root area, then call it through your browser window, ie http://www.mysite.com/whatever.php

After you are done, DELETE it. Leaving it on the server can be a security issue.

Reply With Quote
  #53  
Old February 22nd, 2008, 01:57 PM
bfulbright bfulbright is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 5 bfulbright User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 10 sec
Reputation Power: 0
Thanks! am building file now.

I will let you know how it goes.



Quote:
Originally Posted by trogar1971
Create a blank file, insert the following code:

Code:
<?php
phpinfo( );
?>


Call it whatever you want with the .php file extension. Upload it to your server root area, then call it through your browser window, ie http://www.mysite.com/whatever.php

After you are done, DELETE it. Leaving it on the server can be a security issue.

Reply With Quote
  #54  
Old April 25th, 2008, 05:23 PM
maximus8891 maximus8891 is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 1 maximus8891 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 50 sec
Reputation Power: 0
I have been confused with this problem for a long time too.
Eventually i solved this problem by getting php_mbstring.dll of corresponding version. I've got PHP 5.2 and as long as i tried php_mbstring.dll(4.0) or eveb php_mbstring.dll(5.1) it didn't work out.
So be attentive and get correct file.

try this: kromann.info/index.php

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > mbstring configuration


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway