learnitlists
asked on
Apache Error when using AllowOverride All
Hi,
I am trying to get CakePHP on subdomains working on Aptana Cloud.
I have edited httpd.conf and added a VirtualHost (see code below). This all seems to work but I am getting an error when accessing php. From searching I have found that the solution is to change AllowOverride from None to All, I have done this but now every time I visit the site I get a dialog asking me if I want to download the php file. If I change it back to None then the files load but with a php error.
Any ideas what is wrong with it?
Thanks
Mike
I am trying to get CakePHP on subdomains working on Aptana Cloud.
I have edited httpd.conf and added a VirtualHost (see code below). This all seems to work but I am getting an error when accessing php. From searching I have found that the solution is to change AllowOverride from None to All, I have done this but now every time I visit the site I get a dialog asking me if I want to download the php file. If I change it back to None then the files load but with a php error.
Any ideas what is wrong with it?
Thanks
Mike
<VirtualHost *:80>
DocumentRoot /path/to/files
ServerName subdomain.mydomain.com
<Directory /path/to/files>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also, FWIW, I try to avoid "AllowOverride All" if at all possible. I explicitly allow only what is needed in the htaccess file.
E.G.
For ModRewrite:
AllowOverride FileInfo
For Basic Authentication:
AllowOverride AuthConfig
For Throttling:
AllowOverride Limit