MyBB Community Forums

Full Version: config.php error making me sick
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is the error i got while upgrading.
My version is 1.2.12
I have used the config.php & settings.php which was in the old forum.
Please help me out.




Rewriting config.php

Unable to open inc/config.php
Before the upgrade process can continue, you need to changes the permissions of inc/config.php so it is writable.
Just CHMOD it to 666.
so in the file i should write
chmod 666 inc/config.php


but where .. top of page or bottom of page because many things are written there
i put this "chmod 666 inc/config.php" on the top of page but then also its not working
No, you don't put anything info the file, there should be an option to CHMOD or change permissions in your FTP....
This is the page .. where should i edit it so as to avoid error..

<?php

/**

* Database configuration

*/



$config['dbtype'] = 'mysql';

$config['hostname'] = 'localhost';

$config['username'] = '****_****;

$config['password'] = '******';

$config['database'] = '****_****';

$config['table_prefix'] = 'mybb_';



/**

* Admin CP directory

* For security reasons, it is recommended you

* rename your Admin CP directory. You then need

* to adjust the value below to point to the

* new directory.

*/



$config['admin_dir'] = 'admin';



/**

* Hide all Admin CP links

* If you wish to hide all Admin CP links

* on the front end of the board after

* renaming your Admin CP directory, set this

* to 1.

*/



$config['hide_admin_links'] = 0;



/**

* Data-cache configuration

* The data cache is a temporary cache

* of the most commonly accessed data in MyBB.

* By default, the database is used to store this data.

*

* If you wish to use the file system (inc/cache directory)

* you can change the value below to 'files' from 'db'.

*/



$config['cache_store'] = 'db';



/**

* Super Administrators

* A comma separated list of user IDs who cannot

* be edited, deleted or banned in the Admin CP.

* The administrator permissions for these users

* cannot be altered either.

*/



$config['super_admins'] = '1';



/**

* Database Encoding

* If you wish to set an encoding for MyBB uncomment

* the line below (if it isn't already) and change

* the current value to the mysql charset:

* http://dev.mysql.com/doc/refman/5.1/en/c...mysql.html

*/



$config['db_encoding'] = 'utf8';



?>
No, as I just said, you don't put anything inside the file. There should be an option to CHMOD or change the permissions of the file in your FTP, nothing needs to go into the file.
Thanx man.. it worked.