Sunday, August 25, 2013

drupal commerce install issue php_flag register_globals off

the 2nd step of the install from the commerce kit for drupal commerce gives an error

PHP register globals Enabled ('1')
register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings. (useless document)

if you add the below lines into .htaccess you get error 500 internal server error on all your sites
php_flag register_globals off
php_value arg_separator.output &

this also does not work

cant figure out a solution for a  server where there is no php.ini file (shared hosting)
Place a file called php.ini in your drupal  directory with the following content: php_flag register_globals off

PHP extensions
Drupal requires you to enable the PHP extensions in the following list (see the system requirements page for more information):
Database support
Your web server does not appear to support PDO (PHP Data Objects). Ask your hosting provider if they support the native PDO extension. See thesystem requirements page for more information.

I am on a host that has no access to the main php.ini file, but they do let you put one in your root dir. I added these lines and was able to have access to PDO and my Drupal install stopped crying!
short_open_tag = on

useless links below

No comments:

Post a Comment