LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2010, 02:36 PM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Rep: Reputation: 46
difficulty installing lighttpd+php5+fastcgi on Ubuntu 10.04


Most tutorials do not mention anything about editing the lighttpd.conf file.

As I understand it, the following need to be modified:

The mod_fastcgi module needs to be loaded.

Code:
server.modules              = (
            "mod_access",
            "mod_alias",
            "mod_accesslog",
            "mod_compress",
            "mod_fastcgi",
#           "mod_rewrite",

And this code needs to be added - BTW: this keeps giving me an error. And most tutorials do not mention adding anything like this.
Code:
# fastcgi
fastcgi.server = ( ".php" => ((
                     "bin-path" => "/usr/bin/php-cgi",
                     "socket" => "/tmp/php.socket"
                 )))
 
Old 05-12-2010, 03:40 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What's your question? What have you done? What isn't working?
 
Old 05-13-2010, 09:46 AM   #3
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
Installed and tested lighttpd, it worked.

Code:
sudo apt-get install lighttpd
Installed php5-cgi

Code:
sudo apt-get install php5-cgi
Edited php.ini

Code:
sudo vi /etc/php5/cgi/php.ini

# put this line at the end of the file
cgi.fix_pathinfo = 1
Editited lighttpd.conf


Code:
sudo vi /etc/lighttpd/lighttpd.conf

# included mod_fastcgi

server.modules = (
“mod_access”,
“mod_alias”,
“mod_accesslog”,
“mod_fastcgi”,


# put the following code in the file
# the following seems to cause the parser error

fastcgi.server = ( “.php” => ((
“bin-path” => “/usr/bin/php5-cgi”,
“socket” => “/tmp/php.socket”
)))

Restart lighttpd,

Code:
# /etc/init.d/lighttpd restart
Duplicate config variable in conditional 0 global: fastcgi.server
2010-05-13 08:35:13: (configfile.c.907) source: /etc/lighttpd/conf-enabled/10-fastcgi.conf line: 27 pos: 1 parser failed somehow near here: (EOL) 
2010-05-13 08:35:13: (configfile.c.907) source: /usr/share/lighttpd/include-conf-enabled.pl line: 2 pos: 1 parser failed somehow near here: (EOL) 
2010-05-13 08:35:13: (configfile.c.907) source: /etc/lighttpd/lighttpd.conf line: 165 pos: 1 parser failed somehow near here: (EOL)
 
Old 05-13-2010, 09:48 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Your quotes are wrong. Use regular quotes ("") not smart quotes (“”). You also seem to have two fastcgi.server directives. Inspect /etc/lighttpd/conf-enabled/10-fastcgi.conf and perhaps remove the one in lighttpd.conf. What's around line 165 in lighttpd.conf?

Last edited by AlucardZero; 05-13-2010 at 09:50 AM.
 
Old 05-13-2010, 10:03 AM   #5
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
Never mind, I got it. I found, and followed, this tutorial.

http://amselgrunwald.wordpress.com/2...-ubuntu-10-04/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Lighttpd With PHP5 And MySQL Support On CentOS 5.4 LXer Syndicated Linux News 0 01-25-2010 09:00 AM
LXer: Installing Lighttpd With PHP5 And MySQL Support On Ubuntu 9.10 LXer Syndicated Linux News 0 01-05-2010 08:40 AM
LXer: Installing Lighttpd With PHP5 And MySQL Support On Fedora 11 LXer Syndicated Linux News 0 10-07-2009 02:20 PM
LXer: Installing Lighttpd With PHP5 And MySQL Support On OpenSUSE 11 LXer Syndicated Linux News 0 09-23-2008 06:40 PM
LXer: Installing Lighttpd With PHP5 And MySQL Support On Fedora 7 LXer Syndicated Linux News 0 10-06-2007 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration