Page 1 of 1

URL rewriting and CakePHP

Posted: Sun Jul 06, 2014 1:07 pm
by realjumy
Hi everyone.

I'm using VestaCP since a month ago or so.

Everything is working fine by far, but I have an issue with URL rewriting.

My server has Centos 6.5 x64, and I'm using the last version of VestaCP. I modified /etc/httpd/conf/httpd.conf to allow reand when I use phpinfo() I can see that mod_rewrite module is being used. However, configuring CakePHP I have this error: "URL rewriting is not properly configured on your server. 1) Help me configure it 2) I don't / can't use URL rewriting". I followed the instructions in those links but the issue persists.

Do you think that is something I missed? I can read everywhere that for installing mod_rewrite I should do "sudo a2enmod rewrite", but I don't want to install anything to avoid conflicts with VestaCP...

If that is not a problem maybe is something I need to configure in nginx?

Thanks.

Re: URL rewriting and CakePHP

Posted: Sun Jul 06, 2014 7:44 pm
by imperio
Hi,
I think that problem in your php script
don't change this file /etc/httpd/conf/httpd.conf
all modification you can doing in virtualhost of your web domain
/home/user/conf/web/httpd.conf

Re: URL rewriting and CakePHP

Posted: Tue Jul 08, 2014 8:59 pm
by erldcrtz
I had experience with cakePHP before that had a hard time working with nginx + apache configuration

try turning off nginx and just use apache as your stand alone web server..