Active Topics

 



Notices


Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Mar 2010
#1
Hey there, i just wanted to set on a small html/php webserver on my n900, so i can edit/watch php/hmtl files everywhere.
I installed lighttpd and it works great for html files, but if i put a index.php file in wwwPHP, i just get a "500 - Internal Server Error" in my browser..i heard that i need a php-cgi, but i never found it (google and this forum..)
What do i need to "run" php files and where can i find it?
I hope someone can help me :/
 
Posts: 219 | Thanked: 94 times | Joined on Nov 2009 @ Helsinki, Finland
#2
You need e.g. mod_fastcgi.

http://redmine.lighttpd.net/wiki/1/T...LighttpdAndPHP

No idea whether any one has tried to compile it for Maemo5.
__________________
Ham > Turkey
 
Posts: 3 | Thanked: 0 times | Joined on Mar 2010
#3
so nobody have installed a php webserver on his n900 yet? :/
could any "bored" programmer port the fastcgi module please? :x
 
Posts: 3 | Thanked: 0 times | Joined on Mar 2010
#4
lets try a push :/
 
Posts: 13 | Thanked: 5 times | Joined on Jan 2010
#5
I have successfully installed php, apache and mysql in easy debian. I would prefer to use lighttpd and sqlite and php directly from maemo. Hopefully, we can get php installed outside of easy debian. Any updates?
 
Posts: 5 | Thanked: 0 times | Joined on Apr 2012
#6
I installed PHP (cgi/cli/sqlite/libcURL) with lighthttpd and also received the same issues. I fixed them with a few changes.

I uninstalled the broken(?) sqlite and libcURL modules. I'll mess with them later.

Create a directory with the proper permissions:

$mkdir /home/user/public_html
$chmod 644 /home/user/public_html

I had to edit /etc/lighttpd.conf as root:

Change this line to your newly created directory:

server.document-root = "/home/user/public_html/"

Change the CGI line to:

cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl", ".php" => "/usr/bin/php" )

Then stop/start the daemon:

#/etc/init.d/lighttpd stop
#/etc/init.d/lighttpd start

Then I uninstalled the PHP modules throwing errors (sqlite and libcURL) and deleted the .ini files inside of /etc/php5/conf.d

I then created a simple Hello World sorta PHP file in my public_html/ and it worked.
Attached Files
File Type: txt lighttpd.txt (6.1 KB, 214 views)
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:47.