i send the code that i used for my cross compilation may be you can find some 
mistake:


************** use for php ****************************
export CROSS_COMPILE=arm-none-linux-gnueabi-
export CC=${CROSS_COMPILE}"gcc"
export CXX=${CROSS_COMPILE}"g++"
./configure --host=arm-linux --target=arm --prefix=/opt/php1 \
--disable-short-tags --disable-shared \
--without-mysql --without-pear --disable-all --disable-short-tags \
--enable-libxml \
--with-libxml-dir=/opt/libxml \
--with-zlib-dir=/opt/zlib 

/************** libxml ***********************/
export CROSS_COMPILE=arm-none-linux-gnueabi-
export CC=${CROSS_COMPILE}"gcc"
export CXX=${CROSS_COMPILE}"g++" 
./configure --host=arm-linux --target=arm --prefix=/opt/libxml1


/*************** zlib ***********************/
CC=arm-linux-gcc \
LDSHARED="arm-linux-gcc -shared -Wl,-soname,libz.so.1" \
./configure --shared --prefix=/opt/zlib 

remember my mistake.. it compiles well but at the end appearsme:
Build complete.
Don't forget to run 'make test'.

so i do..

fel...@felipe-desktop:~/Escritorio/php-5.2.13$ make test

Build complete.
Don't forget to run 'make test'.

/home/felipe/Escritorio/php-5.2.13/sapi/cli/php: 1: Syntax error: word 
unexpected (expecting ")")
make: [test] Error 2 (no tiene efecto)


this mistake its on my host machine, after this i send this compiles file to  
my target where i have install cherokee, there i modified my cherokee.conf 
adding this lines:

# AƱadida por mi##########################
vserver!1!rule!6!disabled = 0
vserver!1!rule!6!encoder!gzip = 1
vserver!1!rule!6!handler = fcgi
vserver!1!rule!6!handler!balancer = round_robin
vserver!1!rule!6!handler!balancer!source!1 = 1
vserver!1!rule!6!handler!error_handler = 1
vserver!1!rule!6!match = extensions
vserver!1!rule!6!match!extensions = php
vserver!1!rule!6!match!final = 1
vserver!1!rule!6!timeout = 30
#########################################

# Tambien ############################
source!1!env!PHP_FCGI_CHILDREN = 5
source!1!env!PHP_FCGI_MAX_REQUESTS = 490
source!1!env_inherited = 0
source!1!host = 127.0.0.1:47990
#source!1!interpreter = /usr/bin/php-cgi -b 127.0.0.1:47990
source!1!interpreter = /home/php/bin/php-cgi -b 127.0.0.1:47990
source!1!nick = PHP Interpreter
source!1!type = interpreter
#######################################


but when i go to the explorer and i tried to view a .php file appears me this:

503 service unavailable

is it well configured for read php? or is this mistake cause for the previus 
mistake about :make test?

im working on ubuntu machine and my target its arm.

I hope you can helpme this is making me crazy, i dont find good information on 
internet... HELLPP!!

Thanks....


From: [email protected]
To: [email protected]
Subject: RE: [PHP-INSTALL] problem after cross compiling php
Date: Sat, 19 Jun 2010 09:19:31 -0500








the make test mistake its on my host machine:

/home/felipe/Escritorio/php-5.2.10/sapi/cli/php: 1: Syntax error: word
 unexpected (expecting ")")
 make: [test] Error 2 (no tiene efecto)

but i send my php crosscompile application to my target machine and tested 
tring to view a .php web page but it showme this:

503 service unavailable
 so i dont know if i did a bad cross compile
 or.. if i configured wrong my webserver

Hellp......



> From: [email protected]
> Date: Fri, 18 Jun 2010 19:14:23 -0400
> Subject: Re: [PHP-INSTALL] problem after cross compiling php
> To: [email protected]
> CC: [email protected]
> 
> On Fri, Jun 18, 2010 at 18:44, andres felipe tamayo cortes
> <[email protected]> wrote:
> > HI i made a cross compilation of php but when i tested it throws me this
> > message:
> >
> > 503 service unavailable,
> >
> > it compiled well but at the it throws me this:
> >
> > uild complete.
> > Don't forget to run 'make test'.
> >
> > /home/felipe/Escritorio/php-5.2.10/sapi/cli/php: 1: Syntax error: word
> > unexpected (expecting ")")
> > make: [test] Error 2 (no tiene efecto)
> 
>     Is this on a server or your own local machine?
> 
> -- 
> </Daniel P. Brown>
> URGENT:
> THROUGH FRIDAY, 18 JUNE ONLY: $100 OFF
> YOUR FIRST MONTH, FREE CPANEL FOR LIFE
> ON ANY NEW DEDICATED SERVER.  NO LIMIT!
> [email protected] || [email protected]
> http://www.parasane.net/ || http://www.pilotpig.net/
> We now offer SAME-DAY SETUP on a new line of servers!
                                          
Explore the seven wonders of the world Learn more!                              
          
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to