Jump to content

alexfoxgill

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by alexfoxgill

  1. I haven't changed that option in config.php so I would assume it is the same but I will check, thanks This sounds promising. I am not very familiar with apache or linux, could you point me at some related topics that I can read to familiarise myself?
  2. Hi, I have moved a PW installation onto a hosted server, but get this error when I try to log in with the admin account that I have set up. I have Googled and read a lot of topics about this error but none of the suggested fixes have worked for me. Here's what I've tried so far: - Setting CHMOD of site/config.php to 777 - Setting CHMOD of site/assets to 777 recursively Doing the above didn't seem to resolve anything. One thing I have noticed is that the site/assets/sessions folder is empty - no new file gets created. Next on some more found advice I tried setting the following config variables: $config->protectCSRF = false; $config->sessionChallenge = false; $config->sessionFingerprint = false; However this only hid the error so that when I submit the log in form, the page just refreshes and I am again prompted to log in. I have of course also tried clearing my browser cache, logging in from Incognito etc. Does anyone have any more ideas?! I'm running out of hope here
  3. To answer my own question above... Just edit the install.php script and comment out lines 315-327 if(function_exists('apache_get_modules')) { if(in_array('mod_rewrite', apache_get_modules())) $this->ok("Found Apache module: mod_rewrite"); else $this->err("Apache mod_rewrite does not appear to be installed and is required by ProcessWire."); } else { // apache_get_modules doesn't work on a cgi installation. // check for environment var set in htaccess file, as submitted by jmarjie. $mod_rewrite = getenv('HTTP_MOD_REWRITE') == 'On' || getenv('REDIRECT_HTTP_MOD_REWRITE') == 'On' ? true : false; if($mod_rewrite) { $this->ok("Found Apache module (cgi): mod_rewrite"); } else { $this->err("Unable to determine if Apache mod_rewrite (required by ProcessWire) is installed. On some servers, we may not be able to detect it until your .htaccess file is place. Please click the 'check again' button at the bottom of this screen, if you haven't already."); } } and lines 356-365 if(!is_file("./.htaccess") || !is_readable("./.htaccess")) { if(@rename("./htaccess.txt", "./.htaccess")) $this->ok("Installed .htaccess"); else $this->err("/.htaccess doesn't exist. Before continuing, you should rename the included htaccess.txt file to be .htaccess (with the period in front of it, and no '.txt' at the end)."); } else if(!strpos(file_get_contents("./.htaccess"), "PROCESSWIRE")) { $this->err("/.htaccess file exists, but is not for ProcessWire. Please overwrite or combine it with the provided /htaccess.txt file (i.e. rename /htaccess.txt to /.htaccess, with the period in front)."); } else { $this->ok(".htaccess looks good"); }
  4. I am trying to install ProcessWire 2.5 on IIS using the instructions above, but the installer won't progress if it can't find a .htaccess file with mod_rewrite. Unable to determine if Apache mod_rewrite (required by ProcessWire) is installed. On some servers, we may not be able to detect it until your .htaccess file is place. Please click the 'check again' button at the bottom of this screen, if you haven't already. /.htaccess doesn't exist. Before continuing, you should rename the included htaccess.txt file to be .htaccess (with the period in front of it, and no '.txt' at the end). This kind of makes sense, as the instructions in this thread say to remove the .htaccess file so of course it can't be found. Has something changed in the installer that means it now can't be installed on IIS? Is there some way to disable this check so I can progress with the installation, or just download a blank installation from somewhere? I really hope I can get this working because ProcessWire looks like exactly what I want from a php CMS
×
×
  • Create New...