On Oct 24, 2011, at 16:46, jayar wrote:

> On my host they are using fastCGI and I expect it to be the reason
> that I am getting '500 Internal Server Error' messages.
> On their website they say that you shouldn't make changes in htaccess,
> as these should be made in php.ini as you are allowed to make a
> php.ini for each subdir. In order to get the site running I have made
> changes in htaccess in webroot, which means I can see the site, but
> when I try to use an ajax function which works on my localhost I get
> error 500.
> 
> <IfModule mod_rewrite.c>
>    RewriteEngine On
>    RewriteCond %{REQUEST_FILENAME} !-d
>    RewriteCond %{REQUEST_FILENAME} !-f
>    RewriteRule ^(.*)$ /jalmar/index.php?url=$1 [QSA,L]
> </IfModule>
> 
> So is there an expert in php.ini that can help in how it should be set
> for cakePHP to work?

mod_rewrite is an Apache feature. You must configure it in an Apache 
configuration file, such as .htaccess or httpd.conf. You cannot do anything 
with mod_rewrite in a PHP configuration file like php.ini.

The were probably trying to encourage you to set PHP settings in php.ini, 
rather than setting PHP settings in .htaccess files, which is a common practice 
when users have access to .htaccess files but not to php.ini files.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to