Configuration.php Nedir?
Bu dosya siteniz ile ilgili kritik bilgileri taşır.. Mesela sitenin adresinin ne olduğunu database bilgilerimizi gibi birçok bilgi depolar.. Bu olmadan siteniz çalışmaz..
Örnek bir configuration.php dosyası bunun gibidir:
Size burdaki komutların birçoğunu anlatacağım..
1)
bu kod sitemizin açık olup olmadığını gösterir..
"0" değeri açık, "1" değeri kapalı olduğunu gösterir..
2)
bu kod hostunuzun yerini gösterir.. çoğunlukla "localhost"'tur.. Ama hostan hosta farklılıklar olabilir..
3)
bu kısım database bağlantınızın ayarlarıdır..
user: DB K.Adınız
Password: DB Şifreniz
db: DB isminiz
dbprefix: Buda tablo takınız..
4)
bu kod sitenizin dilini gösterir..
5)
Bu kod joomla sitenizin ilk olarak nerey yönlendireceğini gösterir.. Görüldüğü gibi ilk olarak sizi /install klasörüne yönlendirir.. Sitenizde yükleme tamamlandıysa bu / olacaktır..
6)
sitenizin joomla kurduğunuz yeri gösterir..
Not: Adresin Sonuna "/" işareti koymamanız lazım!!
7)
burada sitenizin ismi yazıyor..
8)
İçeirkleri yada linkleri kimin görebileceğini gösterir..
9)
Yeni üeyelere şifresini mail olarak gönderilip gönderilmeyeceğini gösterir..
10)
Yukarda bir offline komutu göstermiştim. Eğer Siteniz Offline ise ana sayfada çıkacak olan yazıyı gösterir..
11)
Her üyeye mail adresi yazdırma mecburiyeti..
12)
üye girişi yapıldıktan sonra bağlı kalacağı süre.. 1.si normal üyeler için, 2.si Adminler içindir..
13)
bu komutlar arama motorları içindir.. Arama Motor'u "Google, Yahoo" sitenize gelirse sizin için bu bilgileri kullanacaktır..
14)
bu sitenizde Sql Bilgilerini (Şifre, k.adı.. değil) yada eğer varsa oluşan hataları (SQL) sitede gösterir..
15)
ülke konumunu belirtir..
16)
Site zamanında ayarlama yaptırır (hosta göre)
17)
bu kodlar içeriklerle ilgili..
hideAuthor = yazarı göstermeye yarar.
hideCreateDate = oluşturma zamanını göstermeye yarar.
hideModifyDate = değiştirme zamanını göstermeye yarar.
hidePdf = PDF iconunu göstermeye yarar..
hidePrint = Yazdır iconunu göstermeye yarar
hideEmail = "Email ile gönder" iconunu göstermeye yarar..
18)
site ilgili istatistik, hit bilgilerini toplar..
log_items = içeriklerin hitleri
log_searches = arama
stats = istatistik
19)
Search Engine Friendly URLs özelliğini kullanmamıza yarar.. Bunun sayesinde linklerimiz **.html gibi olur ve bunlarda arama motorlarının agılamasını sağlar..
20)
oylamanın açık olup olmayacağını belirtir..
21)
GZIP özelliğinin açık olup olmadığını belirtir..
22)
Birden fazla sayfası olan içerikleri 2. bir sayfaya mı koysun yoksa tamamını mı göstersin?
23)
kişiler üye olabilsin mi?
24)
hata oluşursa sayfada
diye bir mesaj göstermesini sağlar..
25)
başlıklara başlığın içerik linki verilsin mi?
26)
listenelenecek öğelerin (içerik, modüller, bileşenler gibi) sayısını gösterir..
27)
Cache özelliği açık mı kapalı mı, klasörünü ve süresini gösterir..
28)
29)
İçeriklerde "Geri" düğmesi olsun mu olm
30)
anasayfadaki içeriklere "Devamını Oku" linki verilsin mi?
31)
Hit özelliği..
32)
Yazıdr, Pdf gibi linkler icon halinde mi olsun yazı halinde mi?
33)
tarayıcılarda linki girdiğiniz yerde görülecek olan küçük icon..
34)
Chmod Ayarları..
fileperms = klasörler için
dirperms = dosyalar için
35)
yardım adresi..
36)
kullanılan yazı editörü..
CHMOD AYARI NE OLMALI? :
Configuration dosyamızın Chmod Ayarı kurulum sırasında 777 olmalıdır.. Çünkü kurulumdan sonra buraya bağlantı adreslerini otomatik olarak girecektir..
Kurulumundan sonra (siteyi kullanırken) bunun ayarının 644 olması lazım.. Eğer 777 olarak bırakırsanız hackerlar bütün bilgilerinizi öğrenip sitenizi kolayca hackleyeceklerdir..
KURULUM SIRASINDA ALINAN HATALAR:
-Kurulum sırasında çoğunlukla "Permission" yani Chmod ayarı sıkıntısı görülür.. Bunun için kuruluma başlamadan önce Chmod ayarını 777 yapmalısınız..
-Bazende Joomla dosyalarında Configuration.php diye olmaz.. Kuruluma başlamadan önce eğer yoksa boş bir configuration.php diye dosya oluşturabiliriz.. Yada dosyalarımızda configuration.php-dist diye bir dosya varsa bunun adını configuration.php olarak düzenleyebiliriz.. Tabii chmod ayarınıda yapmalıyız..
Bu dosya siteniz ile ilgili kritik bilgileri taşır.. Mesela sitenin adresinin ne olduğunu database bilgilerimizi gibi birçok bilgi depolar.. Bu olmadan siteniz çalışmaz..
Örnek bir configuration.php dosyası bunun gibidir:
Kod:
<?php
Kod:
[COLOR=white][B]/**[/B][/COLOR]
[COLOR=white][B]* @version $Id: configuration.php-dist 2622 2006-02-26 04:16:09Z stingrey $[/B][/COLOR]
[COLOR=white][B]* @package Joomla[/B][/COLOR]
[COLOR=white][B]* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.[/B][/COLOR]
[COLOR=white][B]* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php[/B][/COLOR]
[COLOR=white][B]* Joomla! is free software and parts of it may contain or be derived from the[/B][/COLOR]
[COLOR=white][B]* GNU General Public License or other free or open source software licenses.[/B][/COLOR]
[COLOR=white][B]* See COPYRIGHT.php for copyright notices and details.[/B][/COLOR]
[COLOR=white][B]*[/B][/COLOR]
[COLOR=white][B]* -------------------------------------------------------------------------[/B][/COLOR]
[COLOR=white][B]* If you are installing Joomla manually i.e. not using the web installer[/B][/COLOR]
[COLOR=white][B]* then rename this file to configuration.php e.g.[/B][/COLOR]
[COLOR=white][B]*[/B][/COLOR]
[COLOR=white][B]* UNIX -> mv configuration.php-dist configuration.php[/B][/COLOR]
[COLOR=white][B]* Windows -> rename configuration.php-dist configuration.php[/B][/COLOR]
[COLOR=white][B]*[/B][/COLOR]
[COLOR=white][B]* Now edit this file and configure the parameters for your site and[/B][/COLOR]
[COLOR=white][B]* database.[/B][/COLOR]
[COLOR=white][B]* -------------------------------------------------------------------------[/B][/COLOR]
[COLOR=white][B]* Database configuration section[/B][/COLOR]
[COLOR=white][B]* -------------------------------------------------------------------------[/B][/COLOR]
[COLOR=white][B]*/[/B][/COLOR]
[COLOR=white][B]$mosConfig_offline = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_host = 'localhost'; // This is normally set to localhost[/B][/COLOR]
[COLOR=white][B]$mosConfig_user = ''; // MySQL username[/B][/COLOR]
[COLOR=white][B]$mosConfig_password = ''; // MySQL password[/B][/COLOR]
[COLOR=white][B]$mosConfig_db = ''; // MySQL database name[/B][/COLOR]
[COLOR=white][B]$mosConfig_dbprefix = 'jos_'; // Do not change unless you need to![/B][/COLOR]
[COLOR=white][B]/**[/B][/COLOR]
[COLOR=white][B]* -------------------------------------------------------------------------[/B][/COLOR]
[COLOR=white][B]* Site specific configuration[/B][/COLOR]
[COLOR=white][B]* -------------------------------------------------------------------------[/B][/COLOR]
[COLOR=white][B]*/[/B][/COLOR]
[COLOR=white][B]$mosConfig_lang = 'english'; // Site language[/B][/COLOR]
[COLOR=white][B]$mosConfig_absolute_path = '/path/to/joomla/install'; // No trailing slash[/B][/COLOR]
[COLOR=white][B]$mosConfig_live_site = 'http://your_joomla_site.com'; // No trailing slash[/B][/COLOR]
[COLOR=white][B]$mosConfig_sitename = 'Joomla'; // Name of Joomla site[/B][/COLOR]
[COLOR=white][B]$mosConfig_shownoauth = '1'; // Display links & categories users don't have access to[/B][/COLOR]
[COLOR=white][B]$mosConfig_useractivation = '1'; // Send new registration passwords via e-mail[/B][/COLOR]
[COLOR=white][B]$mosConfig_uniquemail = '1'; // Require unique email adress for each user[/B][/COLOR]
[COLOR=white][B]$mosConfig_offline_message = 'This site is down for maintenance.<br /> Please check back again soon.';[/B][/COLOR]
[COLOR=white][B]$mosConfig_lifetime = '900'; // Frontend Session time[/B][/COLOR]
[COLOR=white][B]$mosConfig_session_life_admin = '1800' // Admin Session Time[/B][/COLOR]
[COLOR=white][B]$mosConfig_****Desc = 'Joomla - the dynamic portal engine and content management system';[/B][/COLOR]
[COLOR=white][B]$mosConfig_****Keys = 'joomla';[/B][/COLOR]
[COLOR=white][B]$mosConfig_****Title = '1';[/B][/COLOR]
[COLOR=white][B]$mosConfig_****Author = '1';[/B][/COLOR]
[COLOR=white][B]$mosConfig_debug = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_locale = 'en_GB';[/B][/COLOR]
[COLOR=white][B]$mosConfig_offset = '0'; // Server Local Time[/B][/COLOR]
[COLOR=white][B]$mosConfig_offset_user = '0'; // User Local Time[/B][/COLOR]
[COLOR=white][B]$mosConfig_hideAuthor = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_hideCreateDate = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_hideModifyDate = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_hidePdf = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_hidePrint = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_hideEmail = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_enable_log_items = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_enable_log_searches = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_enable_stats = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_sef = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_vote = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_gzip = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_multipage_toc = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_allowUserRegistration = '1';[/B][/COLOR]
[COLOR=white][B]$mosConfig_error_reporting = -1;[/B][/COLOR]
[COLOR=white][B]$mosConfig_error_message = 'This site is temporarily unavailable.<br />Please contact your System Administrator.';[/B][/COLOR]
[COLOR=white][B]$mosConfig_link_titles = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_list_limit = '30';[/B][/COLOR]
[COLOR=white][B]$mosConfig_caching = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_cachepath = '/path/to/joomla/install/cache';[/B][/COLOR]
[COLOR=white][B]$mosConfig_cachetime = '900';[/B][/COLOR]
[COLOR=white][B]$mosConfig_mailer = 'mail';[/B][/COLOR]
[COLOR=white][B]$mosConfig_mailfrom = '';[/B][/COLOR]
[COLOR=white][B]$mosConfig_fromname = '';[/B][/COLOR]
[COLOR=white][B]$mosConfig_sendmail = '/usr/sbin/sendmail';[/B][/COLOR]
[COLOR=white][B]$mosConfig_smtpauth = '0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_smtpuser = '';[/B][/COLOR]
[COLOR=white][B]$mosConfig_smtppass = '';[/B][/COLOR]
[COLOR=white][B]$mosConfig_smtphost = 'localhost';[/B][/COLOR]
[COLOR=white][B]$mosConfig_back_button = '1';[/B][/COLOR]
[COLOR=white][B]$mosConfig_item_navigation = '1';[/B][/COLOR]
[COLOR=white][B]$mosConfig_secret = 'FBVtggIk5lAzEU9H'; //Change this to something more secure[/B][/COLOR]
[COLOR=white][B]$mosConfig_pagetitles = '1';[/B][/COLOR]
[COLOR=white][B]$mosConfig_readmore = '1';[/B][/COLOR]
[COLOR=white][B]$mosConfig_hits = '1';[/B][/COLOR]
[COLOR=white][B]$mosConfig_icons = '1';[/B][/COLOR]
[COLOR=white][B]$mosConfig_favicon = 'favicon.ico';[/B][/COLOR]
[COLOR=white][B]$mosConfig_fileperms = '';[/B][/COLOR]
[COLOR=white][B]$mosConfig_dirperms = '';[/B][/COLOR]
[COLOR=white][B]$mosConfig_helpurl = 'http://help.joomla.org';[/B][/COLOR]
[COLOR=white][B]$mosConfig_mbf_content='0';[/B][/COLOR]
[COLOR=white][B]$mosConfig_editor = 'tinymce';[/B][/COLOR]
[COLOR=white][B]setlocale (LC_TIME, $mosConfig_locale); // Country locale[/B][/COLOR]
[COLOR=white][B]?>[/B][/COLOR]
Size burdaki komutların birçoğunu anlatacağım..
1)
Kod:
$mosConfig_offline = '0';
"0" değeri açık, "1" değeri kapalı olduğunu gösterir..
2)
Kod:
$mosConfig_host = 'localhost'; // This is normally set to localhost
3)
Kod:
$mosConfig_user = ''; // MySQL username
Kod:
[COLOR=white][B]$mosConfig_password = ''; // MySQL password[/B][/COLOR]
[COLOR=white][B]$mosConfig_db = ''; // MySQL database name[/B][/COLOR]
[COLOR=white][B]$mosConfig_dbprefix = 'jos_'; // Do not change unless you need to![/B][/COLOR]
user: DB K.Adınız
Password: DB Şifreniz
db: DB isminiz
dbprefix: Buda tablo takınız..
4)
Kod:
$mosConfig_lang = 'english'; // Site language
5)
Kod:
$mosConfig_absolute_path = '/path/to/joomla/install'; // No trailing slash
6)
Kod:
$mosConfig_live_site = 'http://your_joomla_site.com'; // No trailing slash
Not: Adresin Sonuna "/" işareti koymamanız lazım!!
7)
Kod:
$mosConfig_sitename = 'Joomla'; // Name of Joomla site
8)
Kod:
$mosConfig_shownoauth = '1'; // Display links & categories users don't have access to
9)
Kod:
$mosConfig_useractivation = '1'; // Send new registration passwords via e-mail
10)
Kod:
$mosConfig_offline_message = 'This site is down for maintenance.<br /> Please check back again soon.';
11)
Kod:
$mosConfig_uniquemail = '1'; // Require unique email adress for each user
12)
Kod:
$mosConfig_lifetime = '900'; // Frontend Session time
Kod:
[B][COLOR=white]$mosConfig_session_life_admin = '1800' // Admin Session Time[/COLOR][/B]
13)
Kod:
$mosConfig_****Desc = 'Joomla - the dynamic portal engine and content management system';
Kod:
[B][COLOR=white]$mosConfig_****Keys = 'joomla';[/COLOR][/B]
[B][COLOR=white]$mosConfig_****Title = '1';[/COLOR][/B]
[B][COLOR=white]$mosConfig_****Author = '1';[/COLOR][/B]
14)
Kod:
$mosConfig_debug = '0';
15)
Kod:
$mosConfig_locale = 'en_GB';
16)
Kod:
$mosConfig_offset = '0'; // Server Local Time
Kod:
[B][COLOR=white]$mosConfig_offset_user = '0'; // User Local Time[/COLOR][/B]
17)
Kod:
$mosConfig_hideAuthor = '0';
Kod:
[B][COLOR=white]$mosConfig_hideCreateDate = '0';[/COLOR][/B]
[B][COLOR=white]$mosConfig_hideModifyDate = '0';[/COLOR][/B]
[B][COLOR=white]$mosConfig_hidePdf = '0';[/COLOR][/B]
[B][COLOR=white]$mosConfig_hidePrint = '0';[/COLOR][/B]
[B][COLOR=white]$mosConfig_hideEmail = '0';[/COLOR][/B]
hideAuthor = yazarı göstermeye yarar.
hideCreateDate = oluşturma zamanını göstermeye yarar.
hideModifyDate = değiştirme zamanını göstermeye yarar.
hidePdf = PDF iconunu göstermeye yarar..
hidePrint = Yazdır iconunu göstermeye yarar
hideEmail = "Email ile gönder" iconunu göstermeye yarar..
18)
Kod:
$mosConfig_enable_log_items = '0';
Kod:
[B][COLOR=white]$mosConfig_enable_log_searches = '0';[/COLOR][/B]
[B][COLOR=white]$mosConfig_enable_stats = '0';[/COLOR][/B]
log_items = içeriklerin hitleri
log_searches = arama
stats = istatistik
19)
Kod:
$mosConfig_sef = '0';
20)
Kod:
$mosConfig_vote = '0';
21)
Kod:
$mosConfig_gzip = '0';
22)
Kod:
$mosConfig_multipage_toc = '0';
23)
Kod:
$mosConfig_allowUserRegistration = '1';
24)
Kod:
$mosConfig_error_reporting = -1;
Kod:
[B][COLOR=white]$mosConfig_error_message = 'This site is temporarily unavailable.<br />Please contact your System Administrator.';[/COLOR][/B]
Kod:
This site is temporarily unavailable.<br />Please contact your System Administrator.
25)
Kod:
$mosConfig_link_titles = '0';
26)
Kod:
$mosConfig_list_limit = '30';
27)
Kod:
$mosConfig_caching = '0';
Kod:
[B][COLOR=white]$mosConfig_cachepath = '/path/to/joomla/install/cache';[/COLOR][/B]
[B][COLOR=white]$mosConfig_cachetime = '900';[/COLOR][/B]
28)
Kod:
$mosConfig_mailer = 'mail';
Kod:
[B][COLOR=white]$mosConfig_mailfrom = '';[/COLOR][/B]
[B][COLOR=white]$mosConfig_fromname = '';[/COLOR][/B]
[B][COLOR=white]$mosConfig_sendmail = '/usr/sbin/sendmail';[/COLOR][/B]
[B][COLOR=white]$mosConfig_smtpauth = '0';[/COLOR][/B]
[B][COLOR=white]$mosConfig_smtpuser = '';[/COLOR][/B]
[B][COLOR=white]$mosConfig_smtppass = '';[/COLOR][/B]
[B][COLOR=white]$mosConfig_smtphost = 'localhost';[/COLOR][/B]
Kod:
bu kısım mail özelliklerini gösterir.. bu özellik sayesinde gmail, yahoo vs hesalarınızla mail atmanız mümkün..
29)
Kod:
$mosConfig_back_button = '1';
30)
Kod:
$mosConfig_readmore = '1';
31)
Kod:
$mosConfig_hits = '1';
32)
Kod:
$mosConfig_icons = '1';
33)
Kod:
$mosConfig_favicon = 'favicon.ico';
34)
Kod:
$mosConfig_fileperms = '';
Kod:
[B][COLOR=white]$mosConfig_dirperms = '';[/COLOR][/B]
fileperms = klasörler için
dirperms = dosyalar için
35)
Kod:
$mosConfig_helpurl = 'http://help.joomla.org';
36)
Kod:
$mosConfig_editor = 'tinymce';
CHMOD AYARI NE OLMALI? :
Configuration dosyamızın Chmod Ayarı kurulum sırasında 777 olmalıdır.. Çünkü kurulumdan sonra buraya bağlantı adreslerini otomatik olarak girecektir..
Kurulumundan sonra (siteyi kullanırken) bunun ayarının 644 olması lazım.. Eğer 777 olarak bırakırsanız hackerlar bütün bilgilerinizi öğrenip sitenizi kolayca hackleyeceklerdir..
KURULUM SIRASINDA ALINAN HATALAR:
-Kurulum sırasında çoğunlukla "Permission" yani Chmod ayarı sıkıntısı görülür.. Bunun için kuruluma başlamadan önce Chmod ayarını 777 yapmalısınız..
-Bazende Joomla dosyalarında Configuration.php diye olmaz.. Kuruluma başlamadan önce eğer yoksa boş bir configuration.php diye dosya oluşturabiliriz.. Yada dosyalarımızda configuration.php-dist diye bir dosya varsa bunun adını configuration.php olarak düzenleyebiliriz.. Tabii chmod ayarınıda yapmalıyız..



