Upload WordPress ftp: 'Welcome to nginx!'

Discussion in 'Installation/Configuration' started by daviz_zamora, May 8, 2014.

  1. daviz_zamora

    daviz_zamora New Member

    Hello, I managed to install everything right, works databases, ftp ..

    I have accessed my ftp account to upload wordpress, I've uploaded ... but when entering the domain, I welcome nginx appears: 'Wlecome to Nginx!'

    Now what happens?
     
  2. cbj4074

    cbj4074 Member

    It sounds as though nginx's default virtual host is servicing the request. You can confirm this by examining the file contents of /usr/share/nginx/www/index.html; the message is the same as you describe.

    This can happen for a handful of different reasons. First, try disabling the default site in the nginx configuration. What happens then?
     
  3. daviz_zamora

    daviz_zamora New Member

    log here:

    2014/05/08 11:44:44 [error] 12066#0: *18 FastCGI sent in stderr: "PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client0/web3/wp-config.php) is not within the allowed path(s): (/var/www/clients/client0/web3/web:/var/www/clients/client0/web3/private:/var/www/clients/client0/web3/tmp:/var/www/dominio.com/web:/srv/www/dominio.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client0/web3/web/wp-load.php on line 31
    PHP message: PHP Warning: require_once(/var/www/clients/client0/web3/web/wp-includes/version.php): failed to open stream: No such file or directory in /var/www/clients/client0/web3/web/wp-load.php on line 43
    PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/clients/client0/web3/web/wp-includes/version.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/clients/client0/web3/web/wp-load.php on line 43" while reading response header from upstream, client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:44 [error] 12066#0: *18 open() "/var/www/dominio.com/web/error/500.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:44 [error] 12066#0: *18 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:44 [error] 12066#0: *18 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:44 [error] 12066#0: *18 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:44 [error] 12066#0: *18 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:44 [error] 12066#0: *18 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:44 [error] 12066#0: *18 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:44 [error] 12066#0: *18 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:44 [error] 12066#0: *18 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:44 [error] 12066#0: *18 rewrite or internal redirection cycle while internally redirecting to "/error/404.html", client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 FastCGI sent in stderr: "PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client0/web3/wp-config.php) is not within the allowed path(s): (/var/www/clients/client0/web3/web:/var/www/clients/client0/web3/private:/var/www/clients/client0/web3/tmp:/var/www/dominio.com/web:/srv/www/dominio.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client0/web3/web/wp-load.php on line 31
    PHP message: PHP Warning: require_once(/var/www/clients/client0/web3/web/wp-includes/version.php): failed to open stream: No such file or directory in /var/www/clients/client0/web3/web/wp-load.php on line 43
    PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/clients/client0/web3/web/wp-includes/version.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/clients/client0/web3/web/wp-load.php on line 43" while reading response header from upstream, client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 open() "/var/www/dominio.com/web/error/500.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:45 [error] 12066#0: *20 rewrite or internal redirection cycle while internally redirecting to "/error/404.html", client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:49 [error] 12066#0: *22 FastCGI sent in stderr: "PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client0/web3/wp-config.php) is not within the allowed path(s): (/var/www/clients/client0/web3/web:/var/www/clients/client0/web3/private:/var/www/clients/client0/web3/tmp:/var/www/dominio.com/web:/srv/www/dominio.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client0/web3/web/wp-load.php on line 31
    PHP message: PHP Warning: require_once(/var/www/clients/client0/web3/web/wp-includes/version.php): failed to open stream: No such file or directory in /var/www/clients/client0/web3/web/wp-load.php on line 43
    PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/clients/client0/web3/web/wp-includes/version.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/clients/client0/web3/web/wp-load.php on line 43" while reading response header from upstream, client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:49 [error] 12066#0: *22 open() "/var/www/dominio.com/web/error/500.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:49 [error] 12066#0: *22 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:49 [error] 12066#0: *22 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:49 [error] 12066#0: *22 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:49 [error] 12066#0: *22 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:49 [error] 12066#0: *22 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:49 [error] 12066#0: *22 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:49 [error] 12066#0: *22 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:49 [error] 12066#0: *22 rewrite or internal redirection cycle while internally redirecting to "/error/404.html", client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:52 [error] 12066#0: *24 FastCGI sent in stderr: "PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client0/web3/wp-config.php) is not within the allowed path(s): (/var/www/clients/client0/web3/web:/var/www/clients/client0/web3/private:/var/www/clients/client0/web3/tmp:/var/www/dominio.com/web:/srv/www/dominio.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client0/web3/web/wp-load.php on line 31" while reading response header from upstream, client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:52 [error] 12066#0: *24 open() "/var/www/dominio.com/web/error/500.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:52 [error] 12066#0: *24 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:52 [error] 12066#0: *24 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:52 [error] 12066#0: *24 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:52 [error] 12066#0: *24 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:52 [error] 12066#0: *24 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:52 [error] 12066#0: *24 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:52 [error] 12066#0: *24 open() "/var/www/dominio.com/web/error/404.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    2014/05/08 11:44:52 [error] 12066#0: *24 rewrite or internal redirection cycle while internally redirecting to "/error/404.html", client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"

    000..= my ip
    dominio.com = my domain

    Thanks!!!
     
  4. daviz_zamora

    daviz_zamora New Member

    if I write: 'dominio.com / whatever' does not give 404 error not found, always 'Welcome to nginx!'
     
  5. cbj4074

    cbj4074 Member

    I don't think you need to worry about this one; this is just WordPress trying to "guess" your configuration:

    Code:
    2014/05/08 11:44:44 [error] 12066#0: *18 FastCGI sent in stderr: "PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client0/web3/wp-config.php) is not within the allowed path(s): (/var/www/clients/client0/web3/web:/var/www/clients/client0/web3/private:/var/www/clients/client0/web3/tmp:/var/www/dominio.com/web:/srv/www/dominio.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client0/web3/web/wp-load.php on line 31
    
    This one is strange, though:

    Code:
    PHP message: PHP Warning: require_once(/var/www/clients/client0/web3/web/wp-includes/version.php): failed to open stream: No such file or directory in /var/www/clients/client0/web3/web/wp-load.php on line 43
    PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/clients/client0/web3/web/wp-includes/version.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/clients/client0/web3/web/wp-load.php on line 43" while reading response header from upstream, client: 000000000000, server: dominio.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    
    What is output when you execute the following in the terminal?

    Code:
    stat /var/www/clients/client0/web3/web/wp-includes/version.php
    
     
  6. daviz_zamora

    daviz_zamora New Member

    hello, thanks for the reply, here:

    File: `/var/www/clients/client0/web3/web/wp-includes/version.php'
    Size: 648 Blocks: 8 IO Block: 4096 regular file
    Device: 91c9h/37321d Inode: 20215472 Links: 1
    Access: (0644/-rw-r--r--) Uid: ( 5004/ web3) Gid: ( 5005/ client0)
    Access: 2014-05-08 15:31:30.735816362 -0400
    Modify: 2014-05-08 15:27:55.340613670 -0400
    Change: 2014-05-08 15:27:55.340613670 -0400
    Birth: -
     
  7. cbj4074

    cbj4074 Member

    Hmm, so PHP says the file isn't there, but the operating system begs to differ. Strange.

    Several additional questions for you at this time:

    1.) Which PHP Mode are you using for the website in questions? PHP-FPM?

    2.) Which web-server? Apache or NGINX?

    3.) Have you added any rewrite rules to the web-server configuration? Typically, WordPress requires rewrite rules for clean-URL support; just wondering if you've added any, and if so, what they are.

    4.) Strange, too, are all of these type of entries in your log:

    Code:
    2014/05/08 11:44:49 [error] 12066#0: *22 open() "/var/www/dominio.com/web/error/500.html" failed (2: No such file or directory), client: 000000000000, server: dominio.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web3.sock:", host: "dominio.com"
    
    Is the "Own Error-Documents" box checked for this website in ISPConfig?
     

Share This Page