I've installed Prestashop and configured Apache to work with FastCGI thru PHP-FPM. I thought everything was working fine, and I check a phpinfo file, the "ServerAPI" value is "FPM/FastCGI" instead "Apache 2 Handler", so it means it means it's properly configured.
Prestashop also have a .htaccess generator, so i configured apache to be able to use those files. So, i have no problems navigating into the site. However, I'm having some problems with some urls in the admin site, for example, when i'm in preferences section and I save something, an "Access Forbidden" message appears. I noticed some links (like Save button for example) points to
instead the right link where it supposed to go: http://www.mywebsite.com/admin/index.php?tab=AdminModulesPositions&conf=17&token=e00287fbb50dbb85d316a928decb95b1, So i guess the problem could be in Apache conf or somewhere else.
That's how i configured VirtualHost:
<VirtualHost *:80> ServerAdmin email@example.com DocumentRoot /var/www/ ServerName DontCareThis ErrorLog /var/log/httpd/DontCareThis_error_log CustomLog /var/log/httpd/DontCareThis_access_log common <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost>
I also added the following somewhere in /etc/httpd/conf/httpd.conf:
# mods-enabled/fastcgi.conf <IfModule mod_fastcgi.c> FastCGIExternalServer /usr/local/sbin/php-fpm -socket /tmp/php-fpm.sock AddHandler php-fastcgi .php Action php-fastcgi /usr/local/sbin/php-fpm.fcgi ScriptAlias /usr/local/sbin/php-fpm.fcgi /usr/local/sbin/php-fpm <Directory /usr/local/sbin> Options ExecCGI FollowSymLinks SetHandler fastcgi-script Order allow,deny Allow from all </Directory> </IfModule>
Any ideas? Using CentOS 5.7