By default Limb should just work with these Apache settings, however this step seems to be the most difficult one for Limb beginners.
All Limb application processing logic is done via PROJECT_DIR/root file, thus it must be of application/x-httpd-php type. The most common error is that PROJECT_DIR/root doesn't seem to be executed with PHP. There're several possible answers in this case:
This usually happens when you can't override Apache directory settings with .htaccess file(Apache AllowOverride option is responsible for that). You MUST have «AllowOverride All» for Limb based projects somewhere in httpd.conf. Ask your hosting provider or fix it yourself. Why do you need that? .htaccess file of the Limb based project has the following lines:
<FilesMatch "^(root)$"> ForceType application/x-httpd-php </FilesMatch>\\
It makes the root file PHP executable. At this moment there's nothing you can do if you can't set «AllowOverride All» for your project.(however we plan to implement support for root.php/path1/path2 urls in the future versions of Limb)
If you're running Apache 2.0 make sure that you have «AcceptPathInfo On» directive in .htaccess in FilesMatch section:
<FilesMatch "^(root)$"> AcceptPathInfo On ForceType application/x-httpd-php </FilesMatch>
It's not included by default since it raises 500 server error on Apache 1.3+.
This also can happen if you have PHP running as a CGI executable not as an Apache module, in this case you can use mod_rewrite module: replace YOUR_PROJECT_DIR/.htaccess with YOUR_PROJECT_DIR/.htaccess-if-rewrite. That should do the trick.
Seems like root works fine yet you get the blank page every time you try to access Limb based project?
First of all make sure that you've checked the following list of possible errors that may cause this:
Every time you try access the admin part you get the same login page even when you input proper login/password?
We hope you've really made sure you have proper access rights for the part of the site you're trying to reach. This sort of error is known to happen in IE when you're trying to access the Limb based project locally. Make sure the domain name has no «_» symbols - somehow IE has problems with cookies for such domain names(and probably it's correct since such domains don't conform to RFC). Thus the host named «limb_demo» may cause login error, just rename it to «limb-demo» or something else.
Обсуждение