![]() |
lighttpd + php on N900 for a dummie [Solved]
Hi,
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: Quote:
Quote:
Luigi |
Re: lighttpd + php on N900 for a dummie [Solved]
I found these solutions.
|
All times are GMT. The time now is 03:22. |
vBulletin® Version 3.8.8