1

Not working at all.

<?php phpinfo(); ?>

Returns blank. I googled for help, but still had no luck. I'm on Ubuntu 10.10, nginx/0.7.67. I used this guide to set it up. My error log has nothing useful. Does anyone have any ideas?

2
  • Did you add to php.ini cgi.fix_pathinfo = 1? Also check nginx log there can be some valuable informations. Commented Feb 20, 2011 at 18:59
  • Make sure error reporting is turned on AND display errors is turned on in your php.ini. Last time I had to install PHP with Apache I forgot that display_errors is set to off by default and I couldn't work out why my pages were broken (ended up being because somebody else had used short tags which I purposefully had turned off but the errors weren't showing up). Commented Feb 20, 2011 at 19:05

1 Answer 1

3

Why didn'nt you use the packages in the regular 10.10 repos? I think you've followed the wrong how-to - that one is from 2010-02-08, i.e. before Ubuntu 10.10. I'm on 10.10, and I can see the following packages, I think these are the ones you need:

$ apt-cache search --names-only php5-fpm
php5-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
$ apt-cache search --names-only nginx
nginx - small, but very powerful and efficient web server and mail proxy
Sign up to request clarification or add additional context in comments.

1 Comment

I got it! It was my fault. Apparently I can't run php in a .html file. Making a phpinfo.php in the same directory solved everything.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.