Code:
[root@iPhone-de-hell1]# dpkg -l | grep -E "php|lighttpd|lynx"
ii lighttpd 1.4.18-6 very small, supposedly fast, webserver
ii lynx 2.8.6-4 older, better, console web browser
ii php 5.2.8-3 overly popular HTML templating language
[root@iPhone-de-hell1]# cat lighttpd.conf
server.port = 80
server.errorlog = "/tmp/lighttpd.error.log"
server.name = "www.example.org"
server.tag = "Apache 1.3.29"
server.dir-listing = "enable"
server.modules = (
"mod_cgi"
)
cgi.assign = ( ".php" => "/usr/bin/php-cgi" )
server.document-root = "/var/root"
[root@iPhone-de-hell1]# cat test.php
<?php
phpinfo();
?>
[root@iPhone-de-hell1]# lighttpd -f lighttpd.conf
[root@iPhone-de-hell1]# lynx http://127.0.0.1/test.php --dump | grep "PHP"
[1]PHP Logo
PHP Version 5.2.8
PHP API 20041225
PHP Extension 20060613
Registered PHP Streams php, file, data, http, ftp
[3]PHP Credits
PHP Core
session.name PHPSESSID PHPSESSID
safe_mode_allowed_env_vars PHP_ PHP_
PHP Variables
_SERVER["PHP_SELF"] /test.php
PHP License
under the terms of the PHP License as published by the PHP Group and
If you did not receive a copy of the PHP license, or have any questions
about PHP licensing, please contact license@php.net.
3. http://127.0.0.1/test.php?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000
Bookmarks