also I have added to /etc/php5/cgi/php.ini:
cgi.fix_pathinfo = 1
after that to start all I use as root the command:
lighttpd start -f /etc/lighttpd.conf
to check if all run well put a file info.php (in it just write: <?php phpinfo(); ?>) in wwwPHP fold and from browser type http://localhost/info.php
If it's ok, you can see a page with: PHP Verison 5.2.6-6maemo5
and all the configuration list for PHP.
As I asked to paai help about this problem, he replys me as below:
Originally Posted by paai
Originally Posted by bblue
Hi,
I'm trying to install lighttpd + php on my n900 but php isn't used by lighttpd, somethings is wrong; please can you tell me about or post/send me your configs so I can start all services and well connect to the server http:\\localhost
Many thanks in advance.
Luigi
The installaition mistakenly names some files , but I forgot which. I have made dynamic links as follows:
can someone write a little how to config lighttpd + php on N900
many thanks.
Ok,
I found myself that solution:
After installed lighttpd and php5 from repositories I edited /etc/lighttpd.conf as below:
"mod_fastcgi", //activate this option in server.modules
add:
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 1,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "8",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
)))
change:
cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl", ".php" => "/usr/bin/php-cgi" )
also I have added to /etc/php5/cgi/php.ini:
cgi.fix_pathinfo = 1
after that to start all I use as root the command:
lighttpd start -f /etc/lighttpd.conf
to check if all run well put a file info.php (in it just write: <?php phpinfo(); ?>) in wwwPHP fold and from browser type http://localhost/info.php
If it's ok, you can see a page with: PHP Verison 5.2.6-6maemo5
and all the configuration list for PHP.
As I asked to paai help about this problem, he replys me as below:
Luigi
Last edited by bblue; 2010-09-21 at 16:18.