You are not logged in.

#1 2008-01-16 06:05:59

Intrepidus
Member
Registered: 2007-02-08
Posts: 54

Lighttpd + php = sad Archlinux user

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

#2 2008-01-16 10:09:44

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: Lighttpd + php = sad Archlinux user

Can you paste your full /etc/lighttpd/lighttpd.conf ?

Offline

#3 2008-01-16 16:12:42

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Lighttpd + php = sad Archlinux user

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

#4 2008-01-16 17:18:02

Intrepidus
Member
Registered: 2007-02-08
Posts: 54

Re: Lighttpd + php = sad Archlinux user

cactus wrote:

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

#5 2008-01-16 17:46:39

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Lighttpd + php = sad Archlinux user

I disabled short tags by default to make people to not use them anymore. :-)

Offline

Board footer

Powered by FluxBB