An error has occurred. Unable to open config file
Posted: Thu Oct 12, 2006 3:58 pm
Hi all,
Can anybody help me please, with a niggling problem I keep encountering. I have a local installation of Joomla! with the following setup:
Database Version: 4.0.20a-nt
PHP Version: 4.3.8
Web Server: Microsoft-IIS/5.1
WebServer to PHP interface: isapi
Joomla! Version: Joomla! 1.0.11 Stable [ Sunbow ] 28 August 2006 20:00 UTC
User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1
and with the following php settings:
Joomla! Register Globals Emulation: OFF
Register Globals: OFF
Magic Quotes: ON
Safe Mode: OFF
File Uploads: ON
Session auto start: OFF
Session save path: c:\temp_sessions
Short Open Tags: ON
Output Buffering: OFF
Open basedir: none
Display Errors: ON
XML enabled: Yes
Zlib enabled: Yes
Disabled Functions: none
and a config file with the following settings:
Configuration File: $mosConfig_offline = '0';
$mosConfig_host = 'xxxxxx'
$mosConfig_user = 'xxxxxx'
$mosConfig_password = 'xxxxxx'
$mosConfig_db = 'xxxxxx'
$mosConfig_dbprefix = 'jos_';
$mosConfig_lang = 'english';
$mosConfig_absolute_path = 'c:\inetpub\wwwroot\joomla100';
$mosConfig_live_site = 'http://localhost/joomla100';
$mosConfig_sitename = 'Joomla100';
$mosConfig_shownoauth = '0';
$mosConfig_user = 'xxxxxx'
$mosConfig_uniquemail = '1';
$mosConfig_offline_message = 'This site is down for maintenance.
Please check back again soon.';
$mosConfig_error_message = 'This site is temporarily unavailable.
Please notify the System Administrator';
$mosConfig_debug = '0';
$mosConfig_lifetime = '900';
$mosConfig_session_life_admin = '1800';
$mosConfig_session_type = '0';
$mosConfig_MetaDesc = 'Joomla - the dynamic portal engine and content management system';
$mosConfig_MetaKeys = 'Joomla, joomla';
$mosConfig_MetaTitle = '1';
$mosConfig_MetaAuthor = '1';
$mosConfig_locale = 'en_GB';
$mosConfig_offset = '0';
$mosConfig_offset_user = '0';
$mosConfig_hideAuthor = '0';
$mosConfig_hideCreateDate = '0';
$mosConfig_hideModifyDate = '0';
$mosConfig_hidePdf = '0';
$mosConfig_hidePrint = '0';
$mosConfig_hideEmail = '0';
$mosConfig_enable_log_items = '0';
$mosConfig_enable_log_searches = '0';
$mosConfig_enable_stats = '0';
$mosConfig_sef = '0';
$mosConfig_vote = '0';
$mosConfig_gzip = '0';
$mosConfig_multipage_toc = '1';
$mosConfig_allowUserRegistration = '1';
$mosConfig_link_titles = '0';
$mosConfig_error_reporting = -1;
$mosConfig_list_limit = '30';
$mosConfig_caching = '0';
$mosConfig_cachepath = 'c:\inetpub\wwwroot\joomla100/cache';
$mosConfig_cachetime = '900';
$mosConfig_mailer = 'mail';
$mosConfig_mailfrom = '[email protected]';
$mosConfig_fromname = 'Joomla100';
$mosConfig_sendmail = '/usr/sbin/sendmail';
$mosConfig_smtpauth = '0';
$mosConfig_smtpuser = '';
$mosConfig_smtppass = '';
$mosConfig_smtphost = 'localhost';
$mosConfig_back_button = '1';
$mosConfig_item_navigation = '1';
$mosConfig_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxx';
$mosConfig_pagetitles = '1';
$mosConfig_readmore = '1';
$mosConfig_hits = '1';
$mosConfig_icons = '1';
$mosConfig_favicon = 'favicon.ico';
$mosConfig_fileperms = '';
$mosConfig_dirperms = '';
$mosConfig_helpurl = 'http://help.joomla.org';
$mosConfig_mbf_content = '0';
$mosConfig_editor = 'tinymce';
$mosConfig_admin_expired = '1';
$mosConfig_frontend_login = '1';
$mosConfig_frontend_userparams = '1';
setlocale (LC_TIME, $mosConfig_locale);
?>
Now whenever I try to change anything in the global configuration settings via the admin control panel, it doesnt work and the settings remain as before. Also i have tried disabling my firewall and on doing so i notice an error message appear which doesnt when the firewall is turned on. The error message is:
"An error has occurred. Unable to open config file"
What gives?
Finally i have another question with regards to one of the lines in my configuration.php file which is bolded out above $mosConfig_cachepath = 'c:\inetpub\wwwroot\joomla100/cache';
Is this correct because as far as i can tell the backslash before cache is incorrect?. I changed it the other way round but this did not help with the error message above although what it did do was clear the users online icon at the top of Joomla! Admin Control Panel which had been previuosly annoying me.
Any ideas would be welcome as i am a newbie to Joomla!.
Regards
Can anybody help me please, with a niggling problem I keep encountering. I have a local installation of Joomla! with the following setup:
Database Version: 4.0.20a-nt
PHP Version: 4.3.8
Web Server: Microsoft-IIS/5.1
WebServer to PHP interface: isapi
Joomla! Version: Joomla! 1.0.11 Stable [ Sunbow ] 28 August 2006 20:00 UTC
User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1
and with the following php settings:
Joomla! Register Globals Emulation: OFF
Register Globals: OFF
Magic Quotes: ON
Safe Mode: OFF
File Uploads: ON
Session auto start: OFF
Session save path: c:\temp_sessions
Short Open Tags: ON
Output Buffering: OFF
Open basedir: none
Display Errors: ON
XML enabled: Yes
Zlib enabled: Yes
Disabled Functions: none
and a config file with the following settings:
Configuration File: $mosConfig_offline = '0';
$mosConfig_host = 'xxxxxx'
$mosConfig_user = 'xxxxxx'
$mosConfig_password = 'xxxxxx'
$mosConfig_db = 'xxxxxx'
$mosConfig_dbprefix = 'jos_';
$mosConfig_lang = 'english';
$mosConfig_absolute_path = 'c:\inetpub\wwwroot\joomla100';
$mosConfig_live_site = 'http://localhost/joomla100';
$mosConfig_sitename = 'Joomla100';
$mosConfig_shownoauth = '0';
$mosConfig_user = 'xxxxxx'
$mosConfig_uniquemail = '1';
$mosConfig_offline_message = 'This site is down for maintenance.
Please check back again soon.';
$mosConfig_error_message = 'This site is temporarily unavailable.
Please notify the System Administrator';
$mosConfig_debug = '0';
$mosConfig_lifetime = '900';
$mosConfig_session_life_admin = '1800';
$mosConfig_session_type = '0';
$mosConfig_MetaDesc = 'Joomla - the dynamic portal engine and content management system';
$mosConfig_MetaKeys = 'Joomla, joomla';
$mosConfig_MetaTitle = '1';
$mosConfig_MetaAuthor = '1';
$mosConfig_locale = 'en_GB';
$mosConfig_offset = '0';
$mosConfig_offset_user = '0';
$mosConfig_hideAuthor = '0';
$mosConfig_hideCreateDate = '0';
$mosConfig_hideModifyDate = '0';
$mosConfig_hidePdf = '0';
$mosConfig_hidePrint = '0';
$mosConfig_hideEmail = '0';
$mosConfig_enable_log_items = '0';
$mosConfig_enable_log_searches = '0';
$mosConfig_enable_stats = '0';
$mosConfig_sef = '0';
$mosConfig_vote = '0';
$mosConfig_gzip = '0';
$mosConfig_multipage_toc = '1';
$mosConfig_allowUserRegistration = '1';
$mosConfig_link_titles = '0';
$mosConfig_error_reporting = -1;
$mosConfig_list_limit = '30';
$mosConfig_caching = '0';
$mosConfig_cachepath = 'c:\inetpub\wwwroot\joomla100/cache';
$mosConfig_cachetime = '900';
$mosConfig_mailer = 'mail';
$mosConfig_mailfrom = '[email protected]';
$mosConfig_fromname = 'Joomla100';
$mosConfig_sendmail = '/usr/sbin/sendmail';
$mosConfig_smtpauth = '0';
$mosConfig_smtpuser = '';
$mosConfig_smtppass = '';
$mosConfig_smtphost = 'localhost';
$mosConfig_back_button = '1';
$mosConfig_item_navigation = '1';
$mosConfig_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxx';
$mosConfig_pagetitles = '1';
$mosConfig_readmore = '1';
$mosConfig_hits = '1';
$mosConfig_icons = '1';
$mosConfig_favicon = 'favicon.ico';
$mosConfig_fileperms = '';
$mosConfig_dirperms = '';
$mosConfig_helpurl = 'http://help.joomla.org';
$mosConfig_mbf_content = '0';
$mosConfig_editor = 'tinymce';
$mosConfig_admin_expired = '1';
$mosConfig_frontend_login = '1';
$mosConfig_frontend_userparams = '1';
setlocale (LC_TIME, $mosConfig_locale);
?>
Now whenever I try to change anything in the global configuration settings via the admin control panel, it doesnt work and the settings remain as before. Also i have tried disabling my firewall and on doing so i notice an error message appear which doesnt when the firewall is turned on. The error message is:
"An error has occurred. Unable to open config file"
What gives?
Finally i have another question with regards to one of the lines in my configuration.php file which is bolded out above $mosConfig_cachepath = 'c:\inetpub\wwwroot\joomla100/cache';
Is this correct because as far as i can tell the backslash before cache is incorrect?. I changed it the other way round but this did not help with the error message above although what it did do was clear the users online icon at the top of Joomla! Admin Control Panel which had been previuosly annoying me.
Any ideas would be welcome as i am a newbie to Joomla!.
Regards