You are not logged in.
So I followed the tutorial on the Wiki to set up Lighttpd and PHP, no luck. All I got was "No input file specified" error. So then I went over to http://bbs.archlinux.org/viewtopic.php?id=37306. Some luck! I changed my open_basedir to /srv/www/htdocs/:/tmp/:/usr/share/pear/ and prayed. No longer do I receive "No input file specified" errors, but now a blank page. Upon viewing the source, I can see my very simple <? phpinfo(); ?>, which I should not be seeing if it rendered the PHP right. Nuts.
I also changed cgi.fix_pathinfo from commented out to 1, which makes no difference either way.
What'd I do wrong?
I have mod_fastcgi enabled.
Relevant lines from lighttpd.conf
fastcgi.server = (
".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php-fastcgi.socket"
))
)
Newest versions of everything from pacman. Oh, what have I done?
This may or may not be important: I have 4 php-fastcgi.socket files in my /tmp/ directory. socket0,1,2,3. No regular .socket - but I figure it would throw an error if that was naughty, right?
Last edited by Intrepidus (2008-01-16 06:16:39)
Offline
Can you paste your full /etc/lighttpd/lighttpd.conf ?
Offline
you probably have php short tags disabled.
try using
<?php phpinfo(); ?>
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
you probably have php short tags disabled.
try using<?php phpinfo(); ?>
...you just made me so happy and so sad at the same time. I never even thought to try that. Or even about that. Thank you nice man. Thank you.
Offline
I disabled short tags by default to make people to not use them anymore. :-)
Offline