PHP无法在ubuntu上与Nginx配合使用? [英] PHP not working with nginx on ubuntu?

查看:108
本文介绍了PHP无法在ubuntu上与Nginx配合使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根本不工作.

<?php phpinfo(); ?>

返回空白.我在Google上寻求帮助,但仍然没有运气. 我使用的是Ubuntu 10.10,nginx/0.7.67. 我使用了本指南设置它. 我的错误日志没有任何用处. 有人有什么想法吗?

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?

推荐答案

您为什么不在常规的10.10仓库中使用软件包?我认为您遵循了错误的操作方法-那是2010年2月8日,即Ubuntu 10.10之前的操作.我在10.10上,可以看到以下软件包,我认为这些是您需要的:

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

这篇关于PHP无法在ubuntu上与Nginx配合使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆