LinuxQuestions.org
Review your favorite Linux distribution.
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 03-17-2007, 04:24 PM   #1
walidaly
Member
 
Registered: Mar 2007
Posts: 64

Rep: Reputation: 15
PHP5 under lighttpd with fcgi


I installed everything and it works fine but editing php.ini has no effect on anything!
'whereis php' gives 'php: /usr/local/bin/php /usr/local/lib/php /usr/local/lib/php.ini'
 
Old 03-17-2007, 05:20 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
Are you sure that php.ini is not for cli? For example, if you have installed both cli and cgi php, you have a different php.ini for each.
 
Old 03-17-2007, 06:38 PM   #3
walidaly
Member
 
Registered: Mar 2007
Posts: 64

Original Poster
Rep: Reputation: 15
I removed PHP4 before compiling and installing PHP5 then 'cp /root/downloads/php-5.2.1/php.ini-dist /usr/local/lib/php.ini' and edited php.ini with no effect! I found the old /etc/php.ini and deleted it but no effect either
php -v gives
PHP 5.2.1 (cgi-fcgi) (built: Mar 14 2007 18:18:17)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
 
Old 03-17-2007, 07:30 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
To find what php.ini you’re actually using, try the phpinfo() function.
 
Old 03-17-2007, 08:17 PM   #5
walidaly
Member
 
Registered: Mar 2007
Posts: 64

Original Poster
Rep: Reputation: 15
I did it's 'Configuration File (php.ini) Path /usr/local/lib'
I'm on CentOS 4.4

Last edited by walidaly; 03-17-2007 at 08:20 PM.
 
Old 03-17-2007, 11:57 PM   #6
walidaly
Member
 
Registered: Mar 2007
Posts: 64

Original Poster
Rep: Reputation: 15
got it sorry!
I was adding some options from the example
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/local/bin/php -c /usr/local/lib/php.ini",
"socket" => "/tmp/php.socket",
"max-procs" => 2,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
)))
I removed the extras and it worked fine
fastcgi.server = ( ".php" => (( "bin-path" => "/usr/local/bin/php",
"socket" => "/tmp/php.socket" )))
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem installing lighttpd bambam43410 Linux - Software 1 08-06-2009 12:37 PM
lighttpd startup script Feinom Slackware 0 06-19-2006 03:28 PM
stopping lighttpd viniosity Debian 2 02-28-2006 06:44 PM
Apache2 php5 (cgi-fcgi). hgb Linux - Software 2 11-16-2005 10:51 AM
PHP5.0.4 FCGI Process maxing resources neocookie Linux - Software 2 11-02-2005 08:23 AM

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

All times are GMT -5. The time now is 04:28 AM.

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