Tiny Core Extensions > TCE Talk
mbstring PHP extension
(1/1)
unforgiven:
hi, i'm using php and apache2 for web programming, nad i need the MBstring extension for php, how should i add this to php in Tinycore?
i download the source code of php 5.3.3 from repository, and see the build.sh, for enabling mbstring, i should just make a little change into the build.sh file.
but what is i don't know is, how to make tcz from that and replacing with that package i downloaded first.
any help?
p.s: sorry for my poor english
robc:
are you using the php5 or the apache2 module extension?
the php5 extension has mbstring enabled
unforgiven:
I understand now! i installed Apache2.tcz, php5.tcz and apache2-mod-php5.tcz as ondemand.
with your tips, i don't load apache2-mod-php5, and just load apache2 and php5, and use the instruction info in php5.tcz, and try to activate php5 in apache2
but i can't! :-[
when i try to request a sample php file in default htdocs ("/usr/local/apache2/htdocs/test.php") i received 500 Internal server error, and in log file i have:
--- Code: ---(13)Permission denied: exec of '/usr/local/apache2/htdocs/test.php' faild
--- End code ---
and when i try to change htdocs to some directory in my /home/tc, i still receive 500 internal server error but in log files i have:
--- Code: ---(8)Exec format error: exec of '/home/tc/htdocs/test.php' faild
--- End code ---
what is wrong with my apache and php? ???
===================================================
i found my problem, i should add this line in my every php file!:
--- Code: ---#!/usr/local/bin/php-cgi
--- End code ---
it worked, but it's not the good way!!!!, i should change permission of every file to 777!
is there any other solution to run php as apache_mod or somthing like that?
or should i download and configure and install fresh php source?
gutmensch:
I will add mbstring to the mod extension as well, just left it out before because it increased the size by about 40%, now it's at about 25% - that's reasonable ;-)
[edit]now sent in for submission[/edit]
unforgiven:
thank you very much, but i compile apache & php myself, and it's worked for me. but i'm really sure it's good apache-mod-php5 has mbstring ;D
Navigation
[0] Message Index
Go to full version