atmoner / php-pastebin-v3

Php pastebin tool
110 stars 56 forks source link

Login error 404 #50

Open Owned67 opened 9 years ago

Owned67 commented 9 years ago

I can't connect: localhost/pastebin/zone-login.html ERROR 404

My vhost: server { listen 80; server_name localhost; root /var/www/pastebin; index index.html index.php index.htm;

access_log /var/log/nginx/pastebin.access_log combined;
error_log /var/log/nginx/pastebin.error_log notice;

#location / {
#    try_files \$uri \$uri/ /index.php?\$args;
#}

location / {
    if (!-e $request_filename){
        rewrite ^/(.*)\.html$ /?page=$1 break;
    }
    rewrite "^/([[:alnum:]]{8})/*$" /?page=paste&id=$1 break;
    rewrite ^/([^-]*)/([^-]*)/$ /?page=$1&act=$2 break;
}
location /search {
    rewrite ^/search/([^-]*)$ /?page=last-pastes&searchPaste=$1 break;
}
location ~ \.php$ {
     #try_files \$uri =404;
     fastcgi_split_path_info ^(.+\.php)(/.+)$;
     fastcgi_pass unix:/run/php5-fpm.sock;
     fastcgi_index index.php;
     fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
     include fastcgi_params;
}

}

ls -all /home/serveur/www/pastebin total 44 drwxr-xr-x 7 root root 4096 mai 16 07:54 . drwxr-xr-x 3 www-data www-data 4096 mai 16 07:45 .. drwxrwxrwx 3 root root 4096 mai 16 07:45 cache -rw-r--r-- 1 root root 317 mai 16 07:45 .htaccess.1 -rw-r--r-- 1 root root 5658 mai 16 07:45 index.php drwxr-xr-x 10 root root 4096 mai 16 07:54 libs drwxr-xr-x 3 root root 4096 mai 16 07:45 pages drwxr-xr-x 4 root root 4096 mai 16 07:45 plugins -rw-r--r-- 1 root root 2571 mai 16 07:45 README.md drwxr-xr-x 3 root root 4096 mai 16 07:45 themes root@free4funs:/etc/init.d# ls -all /home/serveur/www/pastebin/pages total 60 drwxr-xr-x 3 root root 4096 mai 16 07:45 . drwxr-xr-x 7 root root 4096 mai 16 07:54 .. -rw-r--r-- 1 root root 0 mai 16 07:45 404.php -rw-r--r-- 1 root root 2152 mai 16 07:45 account.php drwxr-xr-x 2 root root 4096 mai 16 07:45 admincp -rw-r--r-- 1 root root 3033 mai 16 07:45 edit.account.php -rw-r--r-- 1 root root 151 mai 16 07:45 index.php -rw-r--r-- 1 root root 1819 mai 16 07:45 last-pastes.php -rw-r--r-- 1 root root 1959 mai 16 07:45 login.php -rw-r--r-- 1 root root 1318 mai 16 07:45 logout.php -rw-r--r-- 1 root root 2435 mai 16 07:45 main.php -rw-r--r-- 1 root root 2314 mai 16 07:45 paste.php -rw-r--r-- 1 root root 5009 mai 16 07:45 premium.php -rw-r--r-- 1 root root 2445 mai 16 07:45 registration.php -rw-r--r-- 1 root root 1799 mai 16 07:45 user.php root@free4funs:/etc/init.d# ls -all /home/serveur/www/pastebin/pages/admincp total 32 drwxr-xr-x 2 root root 4096 mai 16 07:45 . drwxr-xr-x 3 root root 4096 mai 16 07:45 .. -rw-r--r-- 1 root root 2339 mai 16 07:45 admincp.index.php -rw-r--r-- 1 root root 2114 mai 16 07:45 admincp.pastes.php -rw-r--r-- 1 root root 3309 mai 16 07:45 admincp.plugins.php -rw-r--r-- 1 root root 3101 mai 16 07:45 admincp.settings.php -rw-r--r-- 1 root root 2515 mai 16 07:45 admincp.users.php -rw-r--r-- 1 root root 151 mai 16 07:45 index.php root@free4funs:/etc/init.d# ls -all /home/serveur/www/pastebin/themes total 12 drwxr-xr-x 3 root root 4096 mai 16 07:45 . drwxr-xr-x 7 root root 4096 mai 16 07:54 .. drwxr-xr-x 5 root root 4096 mai 16 07:45 bootstrap -rw-r--r-- 1 root root 0 mai 16 07:45 index.php root@free4funs:/etc/init.d# ls -all /home/serveur/www/pastebin/themes/bootstrap total 124 drwxr-xr-x 5 root root 4096 mai 16 07:45 . drwxr-xr-x 3 root root 4096 mai 16 07:45 .. -rw-r--r-- 1 root root 1064 mai 16 07:45 404.html -rw-r--r-- 1 root root 4806 mai 16 07:45 account.html -rw-r--r-- 1 root root 5752 mai 16 07:45 admincp.pastes.html -rw-r--r-- 1 root root 2643 mai 16 07:45 admincp.plugins.html -rw-r--r-- 1 root root 5720 mai 16 07:45 admincp.settings.html -rw-r--r-- 1 root root 7380 mai 16 07:45 admincp.users.html -rw-r--r-- 1 root root 1708 mai 16 07:45 admin.sidebar.html -rw-r--r-- 1 root root 3456 mai 16 07:45 edit.account.html -rw-r--r-- 1 root root 1448 mai 16 07:45 error.html -rw-r--r-- 1 root root 234 mai 16 07:45 footer.html -rw-r--r-- 1 root root 5506 mai 16 07:45 header.html drwxr-xr-x 3 root root 4096 mai 16 07:45 img -rw-r--r-- 1 root root 4909 mai 16 07:45 index.html -rw-r--r-- 1 root root 0 mai 16 07:45 index.php drwxr-xr-x 2 root root 4096 mai 16 07:45 js -rw-r--r-- 1 root root 3576 mai 16 07:45 last-pastes.html -rw-r--r-- 1 root root 1452 mai 16 07:45 login.html -rw-r--r-- 1 root root 763 mai 16 07:45 paste.html -rw-r--r-- 1 root root 589 mai 16 07:45 premium.html -rw-r--r-- 1 root root 2300 mai 16 07:45 registration.html -rw-r--r-- 1 root root 1188 mai 16 07:45 sidebar.html drwxr-xr-x 2 root root 4096 mai 16 07:45 style -rw-r--r-- 1 root root 4449 mai 16 07:45 user.html

Owned67 commented 9 years ago

log: 2015/05/20 15:09:53 [error] 2372#0: 1 FastCGI sent in stderr: "PHP message: PHP Warning: Missing argument 1 for pasteUsers::getUserdata(), called in /var/www/www/pastebin/index.php on line 60 and defined in /var/www/www/pastebin/libs/default.class.php on line 610 PHP message: PHP Notice: Undefined variable: uid in /var/www/www/pastebin/libs/default.class.php on line 616 PHP message: PHP Notice: Trying to get property of non-object in /var/www/www/pastebin/libs/default.class.php on line 830 PHP message: PHP Warning: Creating default object from empty value in /var/www/www/pastebin/libs/Hooks.class.php on line 264" while reading response header from upstream, client: 1XX.XX.XXX.XXX, server: mydomain.changeip.org, request: "GET /pastebin/ HTTP/1.1", upstream: "fastcgi://unix:/run/php5-fpm.sock:", host: "mydomain.changeip.org" 2015/05/20 15:09:53 [error] 2372#0: 1 FastCGI sent in stderr: "PHP message: PHP Warning: Missing argument 1 for pasteUsers::getUserdata(), called in /var/www/www/pastebin/index.php on line 60 and defined in /var/www/www/pastebin/libs/default.class.php on line 610 PHP message: PHP Notice: Undefined variable: uid in /var/www/www/pastebin/libs/default.class.php on line 616 PHP message: PHP Notice: Trying to get property of non-object in /var/www/www/pastebin/libs/default.class.php on line 830 PHP message: PHP Warning: Creating default object from empty value in /var/www/www/pastebin/libs/Hooks.class.php on line 264" while reading response header from upstream, client: 1XX.XX.XXX.XXX, server: mydomain.changeip.org, request: "GET /pastebin/ HTTP/1.1", upstream: "fastcgi://unix:/run/php5-fpm.sock:", host: "mydomain.changeip.org" 2015/05/20 15:09:54 [error] 2372#0: 5 FastCGI sent in stderr: "PHP message: PHP Warning: Missing argument 1 for pasteUsers::getUserdata(), called in /var/www/www/pastebin/index.php on line 60 and defined in /var/www/www/pastebin/libs/default.class.php on line 610 PHP message: PHP Notice: Undefined variable: uid in /var/www/www/pastebin/libs/default.class.php on line 616 PHP message: PHP Notice: Trying to get property of non-object in /var/www/www/pastebin/libs/default.class.php on line 830 PHP message: PHP Warning: Creating default object from empty value in /var/www/www/pastebin/libs/Hooks.class.php on line 264" while reading response header from upstream, client: 1XX.XX.XXX.XXX, server: mydomain.changeip.org, request: "GET /pastebin/ HTTP/1.1", upstream: "fastcgi://unix:/run/php5-fpm.sock:", host: "mydomain.changeip.org" 2015/05/20 15:09:55 [error] 2372#0: 5 open() "/var/www/www/pastebin/zone-login.html" failed (2: No such file or directory), client: 1XX.XX.XXX.XXX, server: mydomain.changeip.org, request: "POST /pastebin/zone-login.html HTTP/1.1", host: "mydomain.changeip.org", referrer: "http://mydomain.changeip.org/pastebin/" 2015/05/20 15:09:58 [error] 2372#0: 5 open() "/var/www/www/pastebin/zone-login.html" failed (2: No such file or directory), client: 1XX.XX.XXX.XXX, server: mydomain.changeip.org, request: "GET /pastebin/zone-login.html HTTP/1.1", host: "mydomain.changeip.org" 2015/05/20 15:10:00 [error] 2372#0: 5 FastCGI sent in stderr: "PHP message: PHP Warning: Missing argument 1 for pasteUsers::getUserdata(), called in /var/www/www/pastebin/index.php on line 60 and defined in /var/www/www/pastebin/libs/default.class.php on line 610 PHP message: PHP Notice: Undefined variable: uid in /var/www/www/pastebin/libs/default.class.php on line 616 PHP message: PHP Notice: Trying to get property of non-object in /var/www/www/pastebin/libs/default.class.php on line 830 PHP message: PHP Warning: Creating default object from empty value in /var/www/www/pastebin/libs/Hooks.class.php on line 264" while reading response header from upstream, client: 1XX.XX.XXX.XXX, server: mydomain.changeip.org, request: "GET /pastebin/ HTTP/1.1", upstream: "fastcgi://unix:/run/php5-fpm.sock:", host: "mydomain.changeip.org"