We need some PHP on an ARM board. I've successfully cross-compiled both PHP 5 and THTTPD and they both seem to run fine on the ARM board, only the.php pages are shown unprocessed (if you do 'View Source' in the web browser, you can see the PHP code). It has to be a silly configuration detail, I really feel that I am snatching defeat from the jaws of victory. Any help or smart ideas would be greatly appreciated! Code: ~ $ pwd /home/pi ~ $ mkdir thttpd ~ $ cd thttpd ~/thttpd $ wget ~/thttpd $ tar -zxf thttpd-2.25b.tar.gz ~/thttpd $ cd thttpd-2.25b ~/thttpd/thttpd-2.25b $./configure ignore 'Invalid configuration.' Warnings --- a bunch of omitted output --- ~/thttpd/thttpd-2.25b $ cd extras ~/thttpd/thttpd-2.25b/extras $ chmod 644 htpasswd.c ~/thttpd/thttpd-2.25b/extras $ vi htpasswd.c there are two places where 'getline' is found. Change 'getline' to 'getlin' in both places to avoid a global name conflict: static int getline(char *s, int n, FILE *f) { change to static int getlin(char *s, int n, FILE *f) { and while(!(getline(line,MAX_STRING_LEN,f))) { change to while(!(getlin(line,MAX_STRING_LEN,f))) { ~/thttpd/thttpd-2.25b/extras $ cd. ~/thttpd/thttpd-2.25b $ make --- a bunch of omitted output --- ~/thttpd/thttpd-2.25b $ sudo addgroup --system www Adding group `www' (GID 109). ![]() ~/thttpd/thttpd-2.25b $ sudo mkdir /usr/local/man/man1 ~/thttpd/thttpd-2.25b $ sudo make install --- a bunch of omitted output --- ~/thttpd/thttpd-2.25b $ cd ~ $ pwd /home/pi ~ $ mkdir www make a test index.html in subdirectory www: ~ $ cat www/index.html Test thttpd Hello World! 1000 lugares que ver antes de morir pdf descargar facil. EOF launch the web server: ~ $ sudo thttpd -d ~/www point your browser to the Raspberry Pi IP address (in my case and the test page should be served. Auto clicker murgge. Posted: Fri Feb 03, 2012 16:30 Post subject: Thttpd + php-mysql + mysql RTN13U.b1 problem: Hi there, I'm really mad em tired to try php-thttpd work with mysql, all servers are running well, I can see my php file and connect to mysql locally and remotelly, but I can't do php get connected to mysql. Some clue anyone? Best regards. Dec 19, 2010 - Hello all. I am trying to setup thttpd on my ubuntu 10.04 system. I run ubuntu in a vm and would like to be able to turn on and off a simple web.
0 Comments
Leave a Reply. |