Hi,
Im having problems installing MySource on Fedora 8. Each time I run this line ( php install/step_01.php /home/websites/mysource_matrix) it gives me an error ( Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/websites/mysource_matrix/core/include/system_config.inc on line 39). When I check my config.inc
public $config_vars = Array(
'SQ_CONF_PEAR_PATH' => Array('editable' => 0, 'default' => ''),
'SQ_CONF_BACKEND_SUFFIX' => Array('editable' => 1, 'default' => '_admin'),
'SQ_CONF_LIMBO_SUFFIX' => Array('editable' => 1, 'default' => '_edit'),
'SQ_CONF_LOGIN_SUFFIX' => Array('editable' => 1, 'default' => '_login'),
'SQ_CONF_NOCACHE_SUFFIX' => Array('editable' => 1, 'default' => '_nocache'),
'SQ_CONF_RECACHE_SUFFIX' => Array('editable' => 1, 'default' => '_recache'),
'SQ_CONF_ASSET_TREE_BASE' => Array('editable' => 0, 'default' => 64),
'SQ_CONF_ASSET_TREE_SIZE' => Array('editable' => 0, 'default' => 4),
'SQ_CONF_ASSET_CACHE_SIZE_WEB' => Array('editable' => 0, 'default' => -1),
'SQ_CONF_ASSET_CACHE_SIZE_CLI' => Array('editable' => 0, 'default' => -1),
'SQ_CONF_ROLLBACK_ENABLED' => Array('editable' => 0, 'default' => '0'),
'SQ_CONF_DEBUG' => Array('editable' => 1, 'default' => 0),
'SQ_CONF_SYSTEM_NAME' => Array('editable' => 1, 'default' => 'The System'),
'SQ_CONF_SYSTEM_OWNER' => Array('editable' => 1, 'default' => ''),
'SQ_CONF_SYSTEM_ROOT_URLS' => Array('editable' => 1, 'default' => ''),
'SQ_CONF_SYSTEM_PARENT_DOMAINS' => Array('editable' => 1, 'default' => ''),
'SQ_CONF_STATIC_ROOT_URL' => Array('editable' => 1, 'default' => ''),
'SQ_CONF_WEB_PATH_SEPARATOR' => Array('editable' => 1, 'default' => '-'),
'SQ_CONF_STATIC_ROOT_HTTP' => Array('editable' => 1, 'default' => TRUE),
'SQ_CONF_STATIC_ROOT_HTTPS' => Array('editable' => 1, 'default' => FALSE),
'SQ_CONF_DEFAULT_EMAIL' => Array('editable' => 1, 'default' => ''),
'SQ_CONF_TECH_EMAIL' => Array('editable' => 1, 'default' => ''),
'SQ_CONF_MAX_LOGIN_ATTEMPTS' => Array('editable' => 1, 'default' => 3),
'SQ_CONF_REFRESH_INTERVAL' => Array('editable' => 1, 'default' => 120),
'SQ_CONF_LOCK_LENGTH' => Array('editable' => 1, 'default' => 600),
'SQ_CONF_ASSET_MAP_ASSET_LIMIT' => Array('editable' => 1, 'default' => 50),
'SQ_CONF_ASSET_MAP_ASSET_DISPLAY_NAME' => Array('editable' => 1, 'default' => '%asset_short_name%'),
'SQ_CONF_SEND_CACHEABLE_HEADER' => Array('editable' => 1, 'default' => '0'),
'SQ_CONF_SEND_LAST_MODIFIED_HEADER' => Array('editable' => 1, 'default' => '0'),
'SQ_CONF_SEND_NOT_MODIFIED_HEADER' => Array('editable' => 1, 'default' => '0'),
'SQ_CONF_SEND_NO_CACHE_HEADER' => Array('editable' => 1, 'default' => '0'),
'SQ_CONF_SEND_404_CACHEABLE_HEADER' => Array('editable' => 1, 'default' => '0'),
'SQ_CONF_ERRORS_HIDE_FRONTEND' => Array('editable' => 1, 'default' => FALSE),
'SQ_CONF_DEFAULT_FRONTEND_LANGUAGE' => Array('editable' => 1, 'default' => 'en'),
'SQ_CONF_DEFAULT_BACKEND_LOCALE' => Array('editable' => 1, 'default' => 'en_AU'),
'SQ_CONF_DEFAULT_CHARACTER_SET' => Array('editable' => 1, 'default' => 'iso-8859-1'),
'SQ_CONF_ALLOW_IP_CHANGE' => Array('editable' => 1, 'default' => '0'),
'SQ_CONF_ALLOW_HTTP_LOGIN' => Array('editable' => 1, 'default' => '0'),
'SQ_CONF_ENABLE_HTTP_LOGIN' => Array('editable' => 1, 'default' => '0'),
'SQ_CONF_ENABLE_EXTERNAL_AUTH_SYSTEMS' => Array('editable' => 1, 'default' => TRUE),
'SQ_CONF_HTTP_LOGIN_VAR' => Array('editable' => 1, 'default' => 'REMOTE_USER'),
'SQ_CONF_ACCEPT_HTTP_CREDS' => Array('editable' => 1, 'default' => '0'),
'SQ_CONF_COMMIT_BUTTON_TEXT' => Array('editable' => 1, 'default' => 'Commit'),
'SQ_CONF_LOG_EXTENSION' => Array('editable' => 0, 'default' => '.log'),
'SQ_CONF_LOG_FILE_SYSTEM' => Array('editable' => 0, 'default' => 'system'),
'SQ_CONF_LOG_FILE_ERROR' => Array('editable' => 0, 'default' => 'error'),
'SQ_CONF_LOG_ERRORS' => Array('editable' => 1, 'default' => TRUE),
'SQ_CONF_SESSION_GC_MAXLIFETIME' => Array('editable' => 1, 'default' => 604800),
'SQ_CONF_EDITING_TIME' => Array('editable' => 0, 'default' => 3600),
'SQ_CONF_NUM_DATA_DIRS' => Array('editable' => 0, 'default' => 20),
'SQ_CONF_FORCE_SECURE_LOGIN_URLS' => Array('editable' => 1, 'default' => ''),
'SQ_CONF_WEB_MEMORY_LIMIT' => Array('editable' => 1, 'default' => 16),
'SQ_CONF_CRON_MEMORY_LIMIT' => Array('editable' => 1, 'default' => 16),
'SQ_CONF_USE_DEFAULT_SESSION_SAVE_PATH' => Array('editable' => 1, 'default' => FALSE),
'SQ_CONF_ENABLE_ROLES_SYSTEM' => Array('editable' => 1, 'default' => TRUE),
'SQ_CONF_ENABLE_GLOBAL_ROLES' => Array('editable' => 1, 'default' => TRUE),
);
I really cant determine where did i gone wrong. I'm new to this any help would be mostly welcome.
Thanks.
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/websites/mysource_matrix/core/include/
taffy
(Jun Padrigano)
#1
gsherwood
(Greg Sherwood)
#3
Can you please run "php -l /home/websites/mysource_matrix/core/include/system_config.inc" and see if it also tells you there is a parse error. Then can you please look at the top of the file for the CVS header and post it here so we know exactly which version of the fie you have.
Luke_Wright
(Luke Wright)
#4
The error you're coming up with is often a symptom of PHP 4 interpreter running on PHP 5 code (it is complaining about the "public" keyword, which is PHP 5 only). However, this stumps me because Fedora Core 8 should be using PHP 5.2.something by default. Is there any chance that the PHP installation on your system was downgraded at some point?
taffy
(Jun Padrigano)
#5
yes i downgraded PHP 5 to PHP 4.4.8, apache is running alrady but i cant seem to install matrix.
Luke_Wright
(Luke Wright)
#6
That would be your issue then: versions 3.18 and above of MySource Matrix now run on PHP 5. They won't run on a PHP 4 system like the earlier versions (up to 3.16) do. The version of PHP you had installed with Fedora should be fine for the 3.18.x versions of Matrix. :)