Register Arama Bugünkü Mesajlar Tüm Forumu Okundu Say

Thread Tools
Editing Your config.php File
vB.Org Poster
vB.Org Poster has disabled reputation
Kayıt Tarihi: Jul 2018
Mesajlar: 298

Show Printable Version Email this Page
yazan vB.Org Poster 29 Nov 2017, 00:56

Sometimes as administrators, it is necessary to make changes to your includes/config.php file.

As a new administrator, or one that has never had to do this, it can be a bit scary, as you don't want to blow up your site. Or you may have edited it, and can not access your site.

So before you do this, you should do the following, to ensure you will not mess up the file.

First thing is to not use a editor such as notepad, or wordpad to edit the file, you need to use at a mininum, notepad ++, you can download it for free here, notepad-plus-plus

Why should I not use notepad or wordpad?
If you use wordpad or notepad in windows, edit the file then upload it to a server (which is more than likely Linux) it can sometimes insert hidden characters, this is what's known as UTF-8 BOM, its just how the program tries to read the file and when the hidden windows characters are inserted it causes issue because Linux is not Windows and vice-versa.

Now you should protect yourself by doing the following:
1) Download the includes/config.php file, and save it somewhere on your computer.
2) Download the includes/config.php file again, and open it in your editor, and make any changes.
3) Re-upload the edited file.

Whooops, I did not follow the above instructions, now I got errors like this, Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/config.php:1) in [path]/includes/functions.php on line 4370 and I can not access my site!

1) Re-download the same exact version of vBulletin you are running from the members area, then extract the .zip locally to your pc.
2) Rename the includes/ file to includes/config.php
3) Now open up your original config.php file that is on your server, and the new one you just downloaded with your text editor, ( not notepad or wordpad )
4) Copy/paste any relevant info from the original file to the new file, such as database name, database username, and database password. If you see anything else that looks different copy that too such as technical email address etc
5) Now upload the newly edited file to your server, overwriting the old one.

As you can see, it is much easier to protect yourself with a backup copy, rather than re editing the entire thing.

Views: 107
Reply With Quote

Thread Tools

Şunları Yapabilirsin
Yeni Konu Açmak
Konuya Cevap Yazmak
Eklenti Eklemek
Düzenleme Yapabilmek

Forum Atla

LD'de Yeni misin? Yardıma mı ihtiyacın var?

All times are GMT +3. The time now is 10:40.

Tasarım Özelliği | Genişlik: Geniş Renk: Editing Your config.php File Editing Your config.php File Editing Your config.php File Editing Your config.php File Editing Your config.php File