Friday, November 22, 2013

mod passenger httpd.conf configuration

Example configuration:

RailsEnv "development" # to setup default environment for passenger
  PassengerEnabled on
  AllowOverride None
  Options FollowSymLinks ExecCGI
  Order allow,deny
  Allow from all
  PassengerBaseURI /mydir
  PassengerAppRoot /var/www/mydir


Tuesday, November 12, 2013

prestashop, sometimes save does not work?

Thats why i hated PHP.
It took me half a day to finally realize, prestashop was posting too much variables on the product form with my additional fields.
There wasn't any error, but the form just return back to the front page with no exception, no error logs...
just plain - "not working".

after testing

echo "keys: ".count(array_keys($_REQUEST));

i found 990 keys posted.
then i went into whm and change php.ini in /usr/local/lib
max_input_vars 5000
then i found the keys posted is 1800+ keys..

PHP sucks!