Skip to content
Patrick Allaire edited this page Dec 7, 2019 · 7 revisions

Windows

  • Please first install a PHP/MySQL server ( like WAMP )
  • Then copy all files from here to your computer, keeping the same structure ( tree system for files )
  • call the address http://127.0.0.1/SubDir_whereIs_BUGS/ ( make sure your line ends with the "/" character )
  • follow steps

Linux or MacOS

  • Copy all files from here to your computer, keeping the same structure ( tree system for files )
  • call the address http://127.0.0.1/SubDir_whereIs_BUGS/ ( make sure your line ends with the "/" character )
  • follow steps

The following instructions are from the very first version of this wiki

Nginx

With the "default" php install on nginx, it'll only grab files ending in .php and pass them to your FastCGI Server. tinyissue and some php-based CMSes append paths to the php file for what I (not being a php developer) assume are good reasons. You'll need to beef up your php config like so:

location ~ ^(.+\.php)(.*)$ {
  fastcgi_pass   127.0.0.1:9000;
  fastcgi_index  index.php;
  set $document_root2 $document_root;
  if ($document_root2 ~ "^(.*\\\\).*?[\\\\|\/]\.\.\/(.*)$") { set $document_root2 $1$2; }
  if ($document_root2 ~ "^(.*\\\\).*?[\\\\|\/]\.\.\/(.*)$") {	set $document_root2 $1$2; }
  if ($document_root2 ~ "^(.*\\\\).*?[\\\\|\/]\.\.\/(.*)$") {	set $document_root2 $1$2; }
  if ($document_root2 ~ "^(.*\\\\).*?[\\\\|\/]\.\.\/(.*)$") {	set $document_root2 $1$2; }
  if ($document_root2 ~ "^(.*\\\\).*?[\\\\|\/]\.\.\/(.*)$") {	set $document_root2 $1$2; }
  fastcgi_split_path_info ^(.+\.php)(.*)$;
  fastcgi_param	SCRIPT_FILENAME	$document_root2$fastcgi_script_name;
  fastcgi_param	PATH_INFO	$fastcgi_path_info;
  fastcgi_param	PATH_TRANSLATED	$document_root2$fastcgi_path_info;
  include	fastcgi_params;
  fastcgi_param  DOCUMENT_ROOT      $document_root2;
}

Thanks to the Arch wiki Nginx page

Clone this wiki locally