I am trying to install sugarcrm. When I reach step 6 i get the following text on the screen:

Creating Sugar configuration file (config.php)

Cannot write to the .htaccess file.

If you want to secure your log file from being accessible via browser, create an .htaccess file in your log directory with the line:

# BEGIN SUGARCRM RESTRICTIONS RedirectMatch /includes/sugarCRM/sugarcrm.log.* http://www.2mcctv.net/includes/sugar...estricted.html RedirectMatch /includes/sugarCRM/emailman.log http://www.2mcctv.net/includes/sugar...estricted.html RedirectMatch /includes/sugarCRM/not_imported_(.*).txt http://www.2mcctv.net/includes/sugar...estricted.html RedirectMatch /includes/sugarCRM/XTemplate/(.*)/(.*).php http://www.2mcctv.net/includes/sugarCRM/index.php RedirectMatch /includes/sugarCRM/data/(.*).php http://www.2mcctv.net/includes/sugarCRM/index.php RedirectMatch /includes/sugarCRM/examples/(.*).php http://www.2mcctv.net/includes/sugarCRM/index.php RedirectMatch /includes/sugarCRM/include/(.*).php http://www.2mcctv.net/includes/sugarCRM/index.php RedirectMatch /includes/sugarCRM/include/(.*)/(.*).php http://www.2mcctv.net/includes/sugarCRM/index.php RedirectMatch /includes/sugarCRM/log4php/(.*).php http://www.2mcctv.net/includes/sugarCRM/index.php RedirectMatch /includes/sugarCRM/log4php/(.*)/(.*).php http://www.2mcctv.net/includes/sugarCRM/index.php RedirectMatch /includes/sugarCRM/metadata/(.*)/(.*).php http://www.2mcctv.net/includes/sugarCRM/index.php RedirectMatch /includes/sugarCRM/modules/(.*)/(.*).php http://www.2mcctv.net/includes/sugarCRM/index.php RedirectMatch /includes/sugarCRM/soap/(.*).php http://www.2mcctv.net/includes/sugarCRM/index.php RedirectMatch /includes/sugarCRM/emailmandelivery.php http://www.2mcctv.net/includes/sugarCRM/index.php # END SUGARCRM RESTRICTIONS Creating the database sugarcrm on localhost...done
Creating the db username and password...Creating the db username and password for localhost...done

Creating Sugar application tables, audit tables, and relationship metadata


Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/mcctvnet/public_html/includes/sugarCRM/include/database/PearDatabase.php on line 632
Unable to select database: Access denied for user: '@localhost' to database 'sugarcrm'
I created a .htacess file and placed it in the root directory of sugarCRM as well as the log4php directory of sugarcrm. But i am still getting the same message. It shouild be noted that I"m trying to install sugarCRM inside the includes directory of installed copy of oscommerce.