php - Trouble with vanilla Bonfire/CI installation and .htaccess -


ok, situation rather simple (although not yet resolved).

  • i downloaded bonfire (for codeigniter)
  • created new folder in sites folder, let's bonfire (i'm using xampp mac)
  • i'm going http://localhost/~drkameleon/bonfire (where install page should appear based on docs)
  • and i'm getting error message

server error!

the server encountered internal error , unable complete request. either server overloaded or there error in cgi script.


now, i'm thinking it may have installation folder being subfolder (i think it's mentioned somewhere in bonfire's documentation, too). however, still don't know tweak in huge .htaccess file comes along bonfire.

so, here :

# ---------------------------------------------------------------------- # webfont access # ----------------------------------------------------------------------  # allow access domains webfonts. # alternatively whitelist # subdomains "subdomain.example.com".  <ifmodule mod_headers.c>   <filesmatch "\.(ttf|ttc|otf|eot|woff|font.css)$">     header set access-control-allow-origin "*"   </filesmatch> </ifmodule>  # ---------------------------------------------------------------------- # proper mime type files # ----------------------------------------------------------------------    # javascript   #   normalize standard type (it's sniffed in ie anyways)   #   tools.ietf.org/html/rfc4329#section-7.2   addtype application/javascript         js    # audio   addtype audio/ogg                      oga ogg   addtype audio/mp4                      m4a    # video   addtype video/ogg                      ogv   addtype video/mp4                      mp4 m4v   addtype video/webm                     webm    # svg   #   required svg webfonts on ipad   #   twitter.com/fontsquirrel/status/14855840545   addtype     image/svg+xml              svg svgz   addencoding gzip                       svgz    # webfonts   addtype application/vnd.ms-fontobject  eot   addtype application/x-font-ttf         ttf ttc   addtype font/opentype                  otf   addtype application/x-font-woff        woff    # assorted types   addtype image/x-icon                        ico   addtype image/webp                          webp   addtype text/cache-manifest                 appcache manifest   addtype text/x-component                    htc   addtype application/xml                     rss atom xml rdf   addtype application/x-chrome-extension      crx   addtype application/x-opera-extension       oex   addtype application/x-xpinstall             xpi   addtype application/octet-stream            safariextz   addtype application/x-web-app-manifest+json webapp   addtype text/x-vcard                        vcf  # ---------------------------------------------------------------------- # gzip compression # ----------------------------------------------------------------------  <ifmodule mod_deflate.c>    # force deflate mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/   <ifmodule mod_setenvif.c>     <ifmodule mod_headers.c>       setenvifnocase ^(accept-encodxng|x-cept-encoding|x{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[x~-]{4,13}$ have_accept-encoding       requestheader append accept-encoding "gzip,deflate" env=have_accept-encoding     </ifmodule>   </ifmodule>    # html, txt, css, javascript, json, xml, htc:   <ifmodule filter_module>     filterdeclare   compress     filterprovider  compress  deflate resp=content-type $text/html     filterprovider  compress  deflate resp=content-type $text/css     filterprovider  compress  deflate resp=content-type $text/plain     filterprovider  compress  deflate resp=content-type $text/xml     filterprovider  compress  deflate resp=content-type $text/x-component     filterprovider  compress  deflate resp=content-type $application/javascript     filterprovider  compress  deflate resp=content-type $application/json     filterprovider  compress  deflate resp=content-type $application/xml     filterprovider  compress  deflate resp=content-type $application/xhtml+xml     filterprovider  compress  deflate resp=content-type $application/rss+xml     filterprovider  compress  deflate resp=content-type $application/atom+xml     filterprovider  compress  deflate resp=content-type $application/vnd.ms-fontobject     filterprovider  compress  deflate resp=content-type $image/svg+xml     filterprovider  compress  deflate resp=content-type $image/x-icon     filterprovider  compress  deflate resp=content-type $application/x-font-ttf     filterprovider  compress  deflate resp=content-type $font/opentype     filterchain     compress     filterprotocol  compress  deflate change=yes;byteranges=no   </ifmodule>    <ifmodule !mod_filter.c>     # legacy versions of apache     addoutputfilterbytype deflate text/html text/plain text/css application/json     addoutputfilterbytype deflate application/javascript     addoutputfilterbytype deflate text/xml application/xml text/x-component     addoutputfilterbytype deflate application/xhtml+xml application/rss+xml application/atom+xml     addoutputfilterbytype deflate image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype   </ifmodule>  </ifmodule>  # ---------------------------------------------------------------------- # start rewrite engine # ----------------------------------------------------------------------  # turning on rewrite engine necessary following rules , features. # followsymlinks must enabled work.  <ifmodule mod_rewrite.c>   options +followsymlinks -indexes   rewriteengine on    # if installed bonfire in subfolder, need    # change following line match subfolder need.    # http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase   rewritebase /    #removes access system folder users.   #additionally allow create system.php controller,   #previously not have been possible.   #'system' can replaced if have renamed system folder.   rewritecond %{request_uri} ^bonfire/codeigniter.*   rewriterule ^(.*)$ /index.php?/$1 [l] </ifmodule>  # rewrite "www.example.com -> example.com"  <ifmodule mod_rewrite.c>   rewritecond %{https} !=on   rewritecond %{http_host} ^www\.(.+)$ [nc]   rewriterule ^ http://%1%{request_uri} [r=301,l] </ifmodule>    #checks see if user attempting access valid file, #such image or css document, if isn't true sends #request index.php  <ifmodule mod_rewrite.c>     rewritecond %{request_filename} !-f     rewritecond %{request_filename} !-d     rewriterule ^(.*)$ index.php?/$1 [l] </ifmodule>  # ---------------------------------------------------------------------- # utf-8 encoding # ----------------------------------------------------------------------  # use utf-8 encoding served text/plain or text/html adddefaultcharset utf-8  # force utf-8 number of file formats addcharset utf-8 .css .js .xml .json .rss .atom  # block access "hidden" directories names begin period. # includes directories used version control systems such subversion or git. <ifmodule mod_rewrite.c>   rewritecond %{script_filename} -d   rewritecond %{script_filename} -f   rewriterule "(^|/)\." - [f] </ifmodule>  <ifmodule !mod_rewrite.c>     # if don't have mod_rewrite installed, 404's     # can sent index.php, , works normal.     # submitted by: elliothaughin      errordocument 404 index.php </ifmodule> 

if you've got any idea, i'd more happy try out.

in 'start rewrite engine' section:

# if installed bonfire in subfolder, need  # change following line match subfolder need.  # http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase rewritebase / 

try changing yours

rewritebase /~drkameleon/bonfire/ 

also double check have rewrite module activated in apache using phpinfo()


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -