How to change config file properly

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
gopickhost
Registered User
Posts: 7
Joined: Sun Oct 14, 2018 11:24 am
Contact:

How to change config file properly

Post by gopickhost »

I have created a forum with free hosting and installed phpbb there with subdomain.

Then I used addon domain service to use the domain name for all the existing files, so I can easily move the files.

I changed the dbname, pass, username, prefix but it showed me error on visiting the site. What is the proper way to change it?
Custom t-shirts and products add own work
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5871
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: How to change config file properly

Post by thecoalman »

In the phpBB root folder is file named config.php, edit in the new username and password.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26503
Joined: Fri Aug 29, 2008 9:49 am

Re: How to change config file properly

Post by Mick »

Do you have full access to your board including FTP and phpMyAdmin? How did you install the board, did you use a host provided installer? Presumably you're talking about editing config.php? If so you download the file to your desktop using FTP and make a backup copy for safety. Then, edit the file using a plain text editor like Notepad++ and upload it back to the server replacing the existing one. Please supply a link to your board.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: How to change config file properly

Post by warmweer »

gopickhost wrote: Sun Oct 14, 2018 11:33 am I have created a forum with free hosting and installed phpbb there with subdomain.

Then I used addon domain service to use the domain name for all the existing files, so I can easily move the files.

I changed the dbname, pass, username, prefix but it showed me error on visiting the site. What is the proper way to change it?
If you've changed those 4, then you should edit your config.php to reflect those changes.
$dbname = '????';
$dbuser = '????';
$dbpasswd = '????';
$table_prefix = '????';
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
gopickhost
Registered User
Posts: 7
Joined: Sun Oct 14, 2018 11:24 am
Contact:

Re: How to change config file properly

Post by gopickhost »

Mick wrote: Sun Oct 14, 2018 11:49 am Do you have full access to your board including FTP and phpMyAdmin? How did you install the board, did you use a host provided installer? Presumably you're talking about editing config.php? If so you download the file to your desktop using FTP and make a backup copy for safety. Then, edit the file using a plain text editor like Notepad++ and upload it back to the server replacing the existing one. Please supply a link to your board.
Yes, I have access to FTP and phpMyAdmin. I am using "infinityfree[dot]net" free hosting service which allows me to upload limited files at once using FTP.

I have used MyBB and successfully restored many time using config file. So, I thought to do the same thing with phpbb will simple. But I found something is missing when changing there.
Attachments
infinityfree config phpbb.png
Custom t-shirts and products add own work
User avatar
janus_zonstraal
Registered User
Posts: 6418
Joined: Sat Aug 30, 2014 1:30 pm

Re: How to change config file properly

Post by janus_zonstraal »

What database name are you using in the configphp and did you delete the production folder in the cache directory?
Sorry! My English is bat ;) !!!
gopickhost
Registered User
Posts: 7
Joined: Sun Oct 14, 2018 11:24 am
Contact:

Re: How to change config file properly

Post by gopickhost »

janus_zonstraal wrote: Mon Oct 15, 2018 6:51 am What database name are you using in the configphp and did you delete the production folder in the cache directory?
Oh no...I found the same ans somewhere but I was confused because he did not clear which files should I delete. As you told here to delete files in the "production" folder right...

Should I delete all files under production folder? This folder contains twig folder and other php files...
Custom t-shirts and products add own work
User avatar
janus_zonstraal
Registered User
Posts: 6418
Joined: Sat Aug 30, 2014 1:30 pm

Re: How to change config file properly

Post by janus_zonstraal »

You can safely delete the production folder with the files inside.
Sorry! My English is bat ;) !!!
gopickhost
Registered User
Posts: 7
Joined: Sun Oct 14, 2018 11:24 am
Contact:

Re: How to change config file properly

Post by gopickhost »

Thank you I have done it and it's fine now.
Custom t-shirts and products add own work
Post Reply

Return to “[3.2.x] Support Forum”