enable lighttpd to use php??

Ask questions about Arch Linux ARM. Please search before making a new topic.

enable lighttpd to use php??

Postby Guest » Tue Oct 25, 2011 9:13 pm

Hello all. i need to figure out why i cant use php files with my lighttpd server on my pogoplug pro (redone with armv6l) I used pacman to install the lighttpd, and it installed with a bare config file:

<snip>
# This is a minimal example config
# See /usr/share/doc/lighttpd
# and http://redmine.lighttpd.net/projects/li ... ationOptio
ns

server.port = 80
server.username = "http"
server.groupname = "http"
server.document-root = "/srv/http"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "enable"
index-file.names = ( "index.php", "index.html" )
mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jp
g" => "image/jpeg", ".png" => "image/png" )
</snip>

So i guess I thought that it would install with option that would be a littlew more useful. Can anyone help me out, and show me whaat a REAL lighttpd.conf file might look like?

Thanks!!


Deric Stowell
Guest
 

Re: enable lighttpd to use php??

Postby Guest » Tue Oct 25, 2011 10:55 pm

UPDATE: after reading the docs i updated my /etc/lighttpd.conf file as follows:

index-file.names = ( "index.php", "index.html" )
mimetype.assign = ( ".php" => "text/x-php", ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg",$
include "conf.d/fastcgi.conf"

(the parts that are bolded are the ones i changed/added)

I also copied the /usr/share/doc/lighttpd/config/conf.d folder into /etc/lighttpd so that the server can find the fastcgi.conf file.

BUT it still does not serve any php files
Guest
 

Re: enable lighttpd to use php??

Postby shankargopal » Mon Dec 26, 2011 11:56 am

I don't know anything about lighthttpd. But shouldn't this question be posted on their forums rather than here?
shankargopal
 
Posts: 23
Joined: Fri Dec 23, 2011 12:42 pm

Re: enable lighttpd to use php??

Postby kmihelich » Mon Dec 26, 2011 5:52 pm

https://wiki.archlinux.org/index.php/Lighttpd

That explains setting up PHP as well.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 9 guests