Help: Comping php without mbstring

tmellon

Well-Known Member
Aug 15, 2001
64
0
306
Sarasota, FL
I've search all over, and don't have the slightest clue in how to go about doing it without running into problems.

So I was wondering if anyone can give me an idea in how to go about doing it ??

Do I have to edit the apache built script?

The reason I need it to be compiled without is because its affecting vBulletin -- and its a serious issue -- especially with vB3 coming out soon, elies solely on the $_POST and $_GET and $_REQUEST arrays, vB3 won't run without this fixed...and they want to start beta testing within the next couple weeks :/

So I need it compiled without.. :/

Any help? Please?!?!

Thanks in advance!!
Tonya
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:407b39515b][i:407b39515b]Originally posted by tmellon[/i:407b39515b]

I've search all over, and don't have the slightest clue in how to go about doing it without running into problems.

So I was wondering if anyone can give me an idea in how to go about doing it ??

Do I have to edit the apache built script?

The reason I need it to be compiled without is because its affecting vBulletin -- and its a serious issue -- especially with vB3 coming out soon, elies solely on the $_POST and $_GET and $_REQUEST arrays, vB3 won't run without this fixed...and they want to start beta testing within the next couple weeks :/

So I need it compiled without.. :/

Any help? Please?!?!

Thanks in advance!!
Tonya[/quote:407b39515b]


you have to run this in a root ssh session:

/scripts/easyapache

choose advanced mode

and make sure these modules are selected

* User bandwidth leech protection
* Bytes logging Module
* Frontpage Module
* Raise HARD_SERVER_LIMIT
* Rewrite Module
* SSL Module
* suEXEC Module

also select
PHP Modules --&

and uncheck whatever you want (PHP modules) i.e. mbstring
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
Hmm, I've been compiling manually because mbstring wasn;t there. What php modules are currenrtly supported? Also, I tried to re-compile manually without mbstring ( as it is causing problems ) and I got an error and apache wouldn't restart. Whats the best way to remove mbstring support?
 

tmellon

Well-Known Member
Aug 15, 2001
64
0
306
Sarasota, FL
Just do it the easyapache way -- it takes it right out.

That's the simple part -- the thing that takes the longest is apache recompiling, etc. Everything else is very simple.
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
yeah, but I also require curl and xslt. I also need it compiled without safemode ( not just turned off ). Anyone know if these features are now available in the buildapache? Last I checked ( a few months back ) they weren't.
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:7b2c998ab1][i:7b2c998ab1]Originally posted by iminteractive[/i:7b2c998ab1]

yeah, but I also require curl and xslt. I also need it compiled without safemode ( not just turned off ). Anyone know if these features are now available in the buildapache? Last I checked ( a few months back ) they weren't.[/quote:7b2c998ab1]
you can also enable or disable curl, xslt and safe mode during Apache installation

/scripts/easyapache
(What you can see with * are recommended modules) you can enable or disable under PHP Module --&
[quote:7b2c998ab1]
[ ] Attach Module (not FrontPage compatible)
[ ] MySQL Auth Module (not FrontPage or PHP compatible)
[*] ~User bandwidth leech protection
[*] Bytes logging Module
[ ] Dav Module
[ ] Expires Module
[*] FrontPage Module
[*] Raise HARD_SERVER_LIMIT
[ ] Perl Module (not required to run .cgi scripts)
Php Module --&
[*] Rewrite Module
[ ] Roaming Module (for Netscape 4.5 )
[*] SSL Module
[*] suEXEC Module
[ ] Throttle Module
[/quote:7b2c998ab1]
[quote:7b2c998ab1]
Php Module --&
[*] Php Module
(*) Bc Math
(*) Calendar Support
( ) Curl
( ) Curl SSL Support
( ) Flash
(*) FTP
(*) GD
(*) Imap Module
( ) Mb String
( ) Mcrypt
(*) Ming Support
(*) Magic Quotes
(*) Mysql Module
(*) Pear
( ) Sablot XSLT [may cause problems with chili!asp]
(*) SafeMode
(*) Sockets
(*) Track Vars
(*) TTF Support
(*) Versioning
(*) Zlib
[/quote:7b2c998ab1]

php -m

shows compiled in modules


P.S. F.Y.I in buildapache.sea (Oct 7 2002) Mb String module is disabled by default.
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
Sweeeet.. All went smoothly. Thanks itf :)
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
hey nick,
I just did what every is written here to get rid of mb string, but after running /scripts/easyapache i did not find the PHP module mb string, hence i selected the rest and then continued and after the compilation finished..i got ERROR

/usr/local/apache/bin/apachectl restart: httpd not running, trying to start
Syntax error on line 227 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_throttle.so into server: /usr/local/apache/libexec/mod_throttle.so: undefined symbol: shm_open
/usr/local/apache/bin/apachectl restart: httpd could not be started

Please Some one or NICK advice

Thanks
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:42c706c9b5][i:42c706c9b5]Originally posted by furquan[/i:42c706c9b5]

hey nick,
I just did what every is written here to get rid of mb string, but after running /scripts/easyapache i did not find the PHP module mb string, hence i selected the rest and then continued and after the compilation finished..i got ERROR

/usr/local/apache/bin/apachectl restart: httpd not running, trying to start
Syntax error on line 227 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_throttle.so into server: /usr/local/apache/libexec/mod_throttle.so: undefined symbol: shm_open
/usr/local/apache/bin/apachectl restart: httpd could not be started

Please Some one or NICK advice

Thanks[/quote:42c706c9b5]

run
/scripts/easyapache

then choose [b:42c706c9b5]advanced[/b:42c706c9b5]

(What you can see with * are recommended modules) you can enable or disable under PHP Module --&

[quote:42c706c9b5]
[ ] Attach Module (not FrontPage compatible)
[ ] MySQL Auth Module (not FrontPage or PHP compatible)
[*] ~User bandwidth leech protection
[*] Bytes logging Module
[ ] Dav Module
[ ] Expires Module
[*] FrontPage Module
[*] Raise HARD_SERVER_LIMIT
[ ] Perl Module (not required to run .cgi scripts)
Php Module --&
[*] Rewrite Module
[ ] Roaming Module (for Netscape 4.5 )
[*] SSL Module
[*] suEXEC Module
[ ] Throttle Module

[/quote:42c706c9b5]


[quote:42c706c9b5]

Php Module --&
[*] Php Module
(*) Bc Math
(*) Calendar Support
( ) Curl
( ) Curl SSL Support
( ) Flash
(*) FTP
(*) GD
(*) Imap Module
( ) Mb String
( ) Mcrypt
(*) Ming Support
(*) Magic Quotes
(*) Mysql Module
(*) Pear
( ) Sablot XSLT [may cause problems with chili!asp]
(*) SafeMode
(*) Sockets
(*) Track Vars
(*) TTF Support
(*) Versioning
(*) Zlib
[/quote:42c706c9b5]


php -m

shows compiled in modules


P.S. F.Y.I in buildapache.sea (Oct 9 2002) Mb String module is disabled by default.
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
got it working, BUT !!!

Hi ITf

Thanks for the reply, But i cannot see all those modules in my php section,, any way i had to disable mod_thottle entires in the httpd.conf to get it up, but i still dont know why it happend like that.

And can u tell me do i need to always keep those entires #'ed or is their a sol to it.

Thanks
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:aa002ea695][i:aa002ea695]Originally posted by furquan[/i:aa002ea695]

Hi ITf

Thanks for the reply, But i cannot see all those modules in my php section,, any way i had to disable mod_thottle entires in the httpd.conf to get it up, but i still dont know why it happend like that.

And can u tell me do i need to always keep those entires #'ed or is their a sol to it.

Thanks[/quote:aa002ea695]
During Apache installation use up and down arrow keys to see all of the options

&And can u tell me do i need to always keep those entires #'ed or is their a sol to it.

it is safe to comment out the line or even remove it from httpd.conf (mod_throttle.so)
 

mrbill

Member
Oct 23, 2002
18
0
151
Thanks ITF, your post was a life saver

Just wanted to say thanks. Appreciated your post here and in a few other locations on this forum. Keep up the good work.

Regards to all,
Bill