Jump to content

whatelse

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About whatelse

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  • Location
    Swiss
  • Interests
    Website nature broadminded flexibility
  1. try to get PW 3.0.30 up on Ubuntu 16.04 / nginx version: nginx/1.10.0 (Ubuntu) the installation works fine but afterwards only default page displays, any other throws a 404 error page. we looked at the PW on Ngnix on Howtoforge any idea, thanks nginx access.log shows: server { listen 80; server_name processwire; index index.php index.html; root /var/www/html/promowall.ch/public_html/ProcessWire-devns; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; default_type application/x-php; ### SECURITY - Protect crucial files location ~ /\. { deny all; } location ~ /(COPYRIGHT|LICENSE|README|htaccess)\.txt { deny all; } location ~ ^/site(-[^/]+)?/assets/(.*\.php|backups|cache|config|install|logs|sessions) { deny all; } location ~ ^/site(-[^/]+)?/install { deny all; } location ~ ^/(site(-[^/]+)?|wire)/(config(-dev)?|index\.config)\.php { deny all; } location ~ ^/((site(-[^/]+)?|wire)/modules|wire/core)/.*\.(inc|module|php|tpl) { deny all; } location ~ ^/(site(-[^/]+)?|wire)/templates(-admin)?/.*\.(inc|html?|php|tpl) { deny all; } ### GLOBAL REWRITE location /ProcessWire-devns { try_files $uri $uri/ /index.php?it=$uri&$args; } # pass the PHP scripts to FastCGI server on local socket # location ~ .+\.php((/|\?).*)?$ { fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param HTTP_MOD_REWRITE On; include fastcgi_params; } # redirect server error pages to the static page /40x.html error_page 404 /404.html; location = /40x.html { root /usr/share/nginx/html; } # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } }
  2. thanks lostkobrakai if my login name is wonder instead of admin, which entry I had to change on that script? since I tryed this script before but I just does not work for me. Tryed like this or any way but still login failed. require "index.php"; $admin = wire('users')->get('wonder'); $admin->setOutputFormatting(false); $admin->set('pass', 'yo12345ZZ'); $admin->save('pass');
  3. Hi there I try to solve my login problem on the admin site. Been careful no to forget about passwords. Still any password is not accepted anylonger. There are some code to use to have the password reset, tryed that too.... but no success have no password reset module installed and no email to the admin user set admin user I know I need to know what to do, not much knowledable about code but want to learn it. Anyone out there to tell me where to put this password reset code if I have to create an new page on the FTP server or add code to a existing page. kind regards - David
×
×
  • Create New...