Installing on MAMP

thread: 2 messages  |  last: a year ago  |  started: friday, february 20, 2009, 8:48 pm pst


#1  |  idevgames
Friday, February 20, 2009, 8:48 PM PST

I am having problems getting this to work on MAMP (MAc OS X LAMP app)

Are my paths OK?

define ('__DOCROOT__', '/Applications/MAMP/htdocs');
define ('__VIRTUAL_DIRECTORY__', '');
define ('__SUBDIRECTORY__', '');
define ('__DEVTOOLS_CLI__', _DOCROOT_ . _SUBDIRECTORY_ . '/qcodo/_devtools_cli');
define ('__INCLUDES__', _DOCROOT_ .  _SUBDIRECTORY_ . 'includes');

I keep getting the error:
Remote access to “/_devtools/codegen.php” has been disabled.
To allow remote access to this script, set the ALLOW_REMOTE_ADMIN constant to TRUE
or to “::1” in “configuration.inc.php”.


However, I have:
define('ALLOW_REMOTE_ADMIN', true);

#2  |  Geert Heremans (Antwerp,Belgium) Belgium
Saturday, February 21, 2009, 3:33 AM PST

Hi,

Try this:

define ('__DOCROOT__', $_SERVER['DOCUMENT_ROOT']);

Works for me :-)

EDIT: Totaly misread your post I'm sorry.



Copyright © 2005 - 2010, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.