Notices


Reply
Thread Tools
Posts: 185 | Thanked: 62 times | Joined on Sep 2010 @ Veitshöchheim, Germany
#31
ok i tried it out but as soon as i want to use your php-cgi, it always wants to download the php files and does not show them.
 
Posts: 185 | Thanked: 62 times | Joined on Sep 2010 @ Veitshöchheim, Germany
#32
ok i got it now. i just installed lighttpd from where you got the php-cgi (would be easier maybe if you put that as number one step in your tutorial)
http://talk.maemo.org/showpost.php?p...4&postcount=19

then i changed the root directory to wwwPHP/htdocs and changed the auth thing as you described it. I can now see the last calls (but no messages even if i have a lot). I can see Device Info but i have 404 @ front cam. share folder works.White page @ GPS, Photo says "MicroB cant find the server at share" and contacts is also blank page.
 
Posts: 26 | Thanked: 16 times | Joined on Dec 2009
#33
any click,show "500 - Internal Server Error" why,need ur help~
error.log
----->
2010-11-08 20:54:07: (mod_cgi.c.737) stat for cgi-handler /usr/sbin/php-cgi failed: No such file or directory
2010-11-08 20:54:08: (mod_cgi.c.737) stat for cgi-handler /usr/sbin/php-cgi failed: No such file or directory
2010-11-08 20:54:09: (mod_cgi.c.737) stat for cgi-handler /usr/sbin/php-cgi failed: No such file or directory
2010-11-08 20:54:09: (mod_cgi.c.737) stat for cgi-handler /usr/sbin/php-cgi failed: No such file or directory
2010-11-08 20:54:14: (mod_cgi.c.737) stat for cgi-handler /usr/sbin/php-cgi failed: No such file or directory
2010-11-08 20:54:21: (mod_cgi.c.737) stat for cgi-handler /usr/sbin/php-cgi failed: No such file or directory
2010-11-08 20:54:25: (mod_cgi.c.737) stat for cgi-handler /usr/sbin/php-cgi failed: No such file or directory
2010-11-08 20:54:27: (mod_cgi.c.737) stat for cgi-handler /usr/sbin/php-cgi failed: No such file or directory
2010-11-08 20:54:31: (mod_cgi.c.737) stat for cgi-handler /usr/sbin/php-cgi failed: No such file or directory
2010-11-08 20:57:47: (mod_cgi.c.737) stat for cgi-handler /usr/sbin/php-cgi failed: No such file or directory

Last edited by PUNK; 2010-11-08 at 13:05.
 
jvesiluoma's Avatar
Posts: 28 | Thanked: 58 times | Joined on Jan 2010
#34
Originally Posted by tebsu View Post
ok i got it now. i just installed lighttpd from where you got the php-cgi (would be easier maybe if you put that as number one step in your tutorial)
http://talk.maemo.org/showpost.php?p...4&postcount=19

then i changed the root directory to wwwPHP/htdocs and changed the auth thing as you described it. I can now see the last calls (but no messages even if i have a lot). I can see Device Info but i have 404 @ front cam. share folder works.White page @ GPS, Photo says "MicroB cant find the server at share" and contacts is also blank page.

Hi and sorry about taking so long to answer.

(Actually I answered to this few hours after your post but seems like that message is lost to...maybe closed browser too soon, douh..)

Hmm, I installed lighttpd from repositories, not from the source where php-cgi is from. I don't know if that version has some bugs or not.

My lighttpd version that I use:
Code:
Nokia-N900:~# lighttpd -v
lighttpd/1.4.26 - a light and fast webserver
Build-Date: Feb 17 2010 23:02:40

If you make a folowing test.php page to your web server root (in your case wwwPHP/htdocs/ ) and point your browser to it, what does it say? Does it say same 500 .. error?

Code:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>
Also, can you check that your /etc/lighttpd.conf file points to a right php-cgi file?

Code:
grep php-cgi /etc/lighttpd.conf
And check that your php-cgi file exists?
Code:
ls -lsta /usr/bin/php-cgi

Hope we get this working for you =)
__________________
JMV
www.jmv.fi
"Duct tape is like the Force. It has a light side, a dark side, and it holds the universe together...."
 
Posts: 63 | Thanked: 2 times | Joined on Mar 2010 @ United Kingdom
#35
How did you get PDO and stuff to work because i think thats what Punks Problem is and mine
 
Posts: 152 | Thanked: 58 times | Joined on Oct 2010 @ void
#36
Very nice! It seems to me this setup can do (almost) everything just on one interface, like a supercharged emacs.

I don't know PHP at all... so just some wild ideas.

I wonder if these things are possible:

- switch to desktop, launcher and windows view when needed. Can the webserver also function as a launcher? I mean with (links to) categories and programs, etc..
- simply replace desktop and automatically start up upon boot: time/clock (ntp), system info (like conky), rss, shortcuts, etc.
- function as file managers like Konqueror?
- open or create new pages and use wiki?
- be finger-friendly (with buttons, etc)
- control the farthest satellite from earth?

It would also be a perfect way to integrate other web-based programs, like tbGTD.
If I go for this I will start learning PHP
 
Posts: 38 | Thanked: 10 times | Joined on Jan 2010 @ GTA Ontario
#37
I also had error 500.
Turns out that lighttpd.conf by default expect php-cgi to be in /usr/sbin. I also added the execute flag after the copy.
Code:
chmod +x /usr/bin/php-cgi
After correction and restart all works well.
Code:
killall lighttpd
lighttpd -f /etc/lighttpd.conf
Have Fun
 

The Following User Says Thank You to gadgetChris For This Useful Post:
Posts: 51 | Thanked: 32 times | Joined on Dec 2010
#38
hi
i have a little problem. when i go to 127.0.0.0 or if adress from pc it show only this

Whats wrong?
Attached Images
 
 
Posts: 26 | Thanked: 2 times | Joined on Dec 2010
#39
Originally Posted by P4d0uch View Post
hi
i have a little problem. when i go to 127.0.0.0 or if adress from pc it show only this

Whats wrong?
Edit the lighttpd.conf and set the right base dir to:

/var/www/htdocs expect of /var/www/html. The whole application is a bit - let's call it "crazy". I would love when Nokia would not give up the Mobile Webserver Application.

If some coders are over here i would love if we'd get in Touch to redesign the Interface with more features and better look like.

Somebody?

Here's the current look:

Uploaded with ImageShack.us

Last edited by delta.br; 2010-12-23 at 16:04.
 
Posts: 12 | Thanked: 5 times | Joined on Mar 2010
#40
Hi All,
thanks for your helps, I tried to set up as described in the post, I'm able to see the server from my MicroB browser but I don't know how to see it from my pc; can someone explain me (I tried to open it with the ip address number but nothing), thanks.
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:56.