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
http://www.drupalcommerce.org/download

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.
http://php.net/configuration.changes (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 http://www.warp1337.com/content/phpflag-registerglobals

cant figure out a solution for a  server where there is no php.ini file (shared hosting)

https://drupal.org/node/209409
Place a file called php.ini in your drupal  directory with the following content: php_flag register_globals off
http://faruq1256.blogspot.in/2010/04/drupal-turn-off-registerglobals.html
http://thedesignspace.net/MT2archives/000481.html#.Uhop-t_E92M

Error
PHP extensions
Disabled
Drupal requires you to enable the PHP extensions in the following list (see the system requirements page for more information):
pdo
Error
Database support
Disabled
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!
extension=mcrypt.so
short_open_tag = on
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_sqlite.so


useless links below


2 comments:

  1. AvaHost is the best hosting company with plans for any hosting needs.

    ReplyDelete
  2. I think this article will fully complement you article. PLease continue publishing helpful topics like this. Regards, from Always Open Commerce

    ReplyDelete