macsat.com OpenWrt and ASUS WL Forum
January 08, 2009, 10:18:17 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: PHP/lighttpd Tutorial  (Read 6872 times)
0 Members and 1 Guest are viewing this topic.
pez
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: May 03, 2006, 13:31:55 PM »

Nico's testing packages seems to be no more, mbm (http://downloads.openwrt.org/people/mbm/mips/packages/) have PHP but for mips, not mipsel. (Being all new to this idea of Embedded Linux I don't know what difference there is).

It's too bad though, Rob's (older) versions are not as comprehensive compared to these. Any idea as to how/where to go to fix this?

[Must also tell you that you do great work!]

Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #1 on: May 03, 2006, 14:57:16 PM »


New url for this kind of packages is :

http://downloads.openwrt.org/backports/rc5/

I will update the tutorials as soon as possible.



Logged
pez
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: May 04, 2006, 08:19:44 AM »

Can't find a PHP-package in backports either, maybe on its merry (but slow) way? Smiley

 I've resorted to thttpd-php in the meantime. One of these days I guess I'll have to setup my own SDK and stop bother you guys Smiley
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #3 on: May 04, 2006, 08:29:46 AM »


You are quite right, the php package seem to be removed from Nico's repository.

I tried yesterday to get in contact with Nico with no luck.

I will try to get a hold of him - If I dont succeed, I will put the binaries on my downloads section.

Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #4 on: May 05, 2006, 09:35:51 AM »


php-packages are now available in the backports repository.

You can add the backports repository to your /etc/ipkg.conf file, so that all you need to do is to use ipkg install <packagename> just like with the base packages.

Your /etc/ipkg.conf file could end up looking something like:

Code:
src whiterussian http://downloads.openwrt.org/whiterussian/packages
src non-free http://downloads.openwrt.org/whiterussian/packages/non-free
src backports http://downloads.openwrt.org/backports/rc5
dest root /
dest opt /opt
dest ram /tmp
Logged
nsn
Newbie
*
Offline Offline

Posts: 46


View Profile
« Reply #5 on: July 04, 2006, 16:49:16 PM »

I tried to follow this tutorial today.. The lighttpd part is running well.
The cgi part doesn't work. I can't open the infophp.php... How come ?! I've installed all packages at the /opt. Maybe a good idea to check the tutorial again ??
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #6 on: July 27, 2006, 10:10:50 AM »


To make it work when running from /opt  plz try to do this:

Code:
cd /etc
ln -s /opt/etc/php.ini
cd /usr/lib
ln -s /opt/usr/lib/php

Then I hope it will run for you.



Logged
mdusn
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #7 on: September 16, 2006, 18:45:30 PM »

I tried to follow the tutorial for installing lighttpd/PHP.  When I try to start the lighttpd daemon with ./S80lighttpd I keep getting this error:

1999-12-31 20:24:13: (configfile.c.429) source: /etc/lighttpd.conf line: 31 pos: 18 use => for assignments in arrays
1999-12-31 20:24:13: (configfile.c.802) configfile parser failed: index-file.names

I went over everything again and everything was done according to the tutorial.  I'm not sure what is causing the error.  Any ideas?

Thanks.
Logged
mdusn
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #8 on: September 17, 2006, 00:31:04 AM »

Figured out what was wrong.  I had not erased the # from in front of the final ")" in the lighthttp.conf file where the server modules are defined.  That might be a good thing to add to the tutorial.  It states to remove the # in front of each of the modules that you are enabling but doesn't mention to remove the # in front of the last parentheses as well.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.151 seconds with 25 queries.