简体   繁体   English

在Ubuntu上使用Wordbress Nginx感到麻烦

[英]Troubling with wordbress nginx on ubuntu

I installed nginx, php5, and wordpress on ubuntu 12.04 (as well as other services). 我在ubuntu 12.04(以及其他服务)上安装了nginx,php5和wordpress。

I followed step by step digitalocean's tutorial, somewhere in the middle of the process i realised i want to switch from root user to 'foo' user and i chown-ed all relevant files and directories. 我逐步遵循了digitalocean的教程,在过程的某个中间,我意识到我想从root用户切换为'foo'用户,并且整理了所有相关文件和目录。

I finished the tutorials and straggling for many hours trying to figure why i get 403 forbidden error. 我完成了教程,并花了很多小时来试图弄清楚为什么我得到403禁止错误。

i launch the service with foo user using sudo. 我使用sudo与foo用户一起启动服务。 all the workers are running under foo apart from the master which is running from root. 除了从根目录运行的主机之外,所有工人都在foo下运行。

Update: 更新:

It seems i have a problem with the landing page which doesn't recognise it should look for index.php, when i type xxx.xxx.xxx.xxx/index.php (as full path to the php file) i get this error: 似乎我的登陆页面有问题,无法识别它应该寻找index.php,当我输入xxx.xxx.xxx.xxx/index.php(作为php文件的完整路径)时,出现此错误:

The page you are looking for is temporarily unavailable. 你正在寻找的页面暂时不可用。 Please try again later. 请稍后再试。

This error pops only on php files, on regular html / txt it works fine. 此错误仅在php文件上弹出,在常规html / txt上可以正常工作。

any suggestions why: 任何建议为何:

  1. default landing is not directed to index.php 默认登陆未定向到index.php
  2. can not open php files 无法打开PHP文件

Update: 更新:

So apparently the tutorial in digitalocean had a minor misleading line, i solved the 2nd problem with this nice article: http://www.queryadmin.com/921/connect-unix-var-run-php5-fpm-sock-failed/ 因此,很明显,digitalocean中的教程有一个小小的误导性之处,我用这篇不错的文章解决了第二个问题: http : //www.queryadmin.com/921/connect-unix-var-run-php5-fpm-sock-failed/

for some reason a few lines in the vhost file were commented out. 由于某种原因,vhost文件中的几行被注释掉了。 rest of issues were solved as described above updates 如上所述,其余问题已解决

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM