Yeni başlayan için MySQL ayarı

adura kullanıcısının resmi

Merhaba, drupal'le ilgilenmeye yeni başladım. PHP ve MySQL'e yabancı değilim. Ancak, site'me Drupal kuramıyorum. MySQL hatası alıyorum.

$db_url = 'mysql://username:password@localhost/databasename';

satırı nasıl editleniyor? username, password ve databasename gördüğüm yerlere benim ayarlarımı yazdım, ama bişey çıkmadı. MySQL kullanıcı adı ya da şifremin -doğru olmasına rağmen- doğru olup olmadığını kontrol etmemi istiyor. Bir de altta "$db_prefix = '';" var. Burada istediğimiz bir ön-ek verebiliyoruz sanıyorum?

ideviate kullanıcısının resmi

kurulumu baştan kısaca

kurulumu baştan kısaca özetleyeyim.

settings.php dosyasını, oluşturduğun database kullanıcı adı şifre ile alakalı editleyip, yukarıda söylediğin gibi, kaydettin.

dosyaları ftp'ye attın.

oluşturduğun database'e girip, sana uyan versiyon hangisi ise, yereldeki database klasörünün içindeki, database.4.0.mysql ya da database.4.1.mysql büyük ihtimalle, dosyasını import ettin.

sitenin bunlardan sonra çalışması lazım ama host ile alakalı problem yaşıyorsan o anda, database server ile bağlantıya geçilemiyorsa bu uyarıyı alabilirsin.

kolay gelsin.

Yazmasak yokuz, Var mısınız?

www.universideliyiz.biz

adura kullanıcısının resmi

olmadı :-S

Selam,

bahsettiğiniz adımları izledim. Sonraki adım olarak, "www.mysite.com/drupal" girdim ama olmadı. Bomboş bir sayfa çıkıyor karşıma. Nerede hata yapıyor olabilirim?

Acaba root'a mı koymalıyım drupal dosyalarını?

"sitenin bundan sonra çalışması lazım" demişsiniz, "ne yaparak çalıştıracağız" diye sorsam komik olur mu? "www.mysite.com/drupal" girdim adres satırında, yine de olmadı. :-S

Nirşey gözümden kaçıyor ama bulamıyorum. Yardımcı olur musunuz?

 

ideviate kullanıcısının resmi

database ile ilgili kısmı

database ile ilgili kısmı hallettiysen, dosyaları attığın adrese göre değişir durum. sen mesela "www.mysite.com/drupal" yazıyorsan dosyalarının drupal alt klasöründe olmalı yani index.php,cron.php,database klasörü,misc,modules vs.

mühim olan index.php nerede olduğu. x isimli folder altında ise index.php o zaman www.mysite.com/x yazarsan erişmelisin drupal kurulumuna ya da bu aynen www.mysite.com/x/index.php demek.

eğer roota koyarsan dosyaları www.mysite.com www.mysite.com/index.php çalıştırır.

Yazmasak yokuz, Var mısınız?

http://www.universideliyiz.biz

Picdenhice kullanıcısının resmi

olmadı :-S

Umarım sorununu çözer ama bende de settings.php dogru yarlar girildiği halde hep kontrol edin gibi bir mesaj gelioyrdu bende ch mod 777 (windows:salt okunur) yaptım ve bir dahada böle bişeyle karşılaşmadım

adura kullanıcısının resmi

oldu :-)

Selam,

Oldu ama nasıl oldu anlamadım :-)

Database'deki eski siteye ait başka table'lar vardı. Tamamını kaldırdım. Sonra import ettim. ve nedense oldu... :-)

Localde de benzer problemler yaşıyordum. MySQL'i default ayarlarıyla kullanıyordum. "root" ve "password-OFF" idi.
(Önce database'imi rename ettim n'olur n'olmaz diye ;-)) phpMyAdmin ile yeni bir kullanıcı tanımladım MySQL için. Bu kullanıcıya username ve password verdim. Sıfırdan bir database açtım. Bu kullanıcıyı bu database ile ilişkilendirdim. settings.php'deki ayarları da bu user ve pass'e göre düzenledim. Tataaaa...

Teşekkürler ilgilerinize.

tolga_hazat kullanıcısının resmi

Bende Neden Olmuyor?

user warning: Access denied for user 'tlg'@'localhost' to database 'veri' query: LOCK TABLES cache WRITE in d:\inetpub\gezegentr.com\www\includes\database.mysql.inc on line 121.

Bu hatayı veriyor arkadaşlar siteyi kuruyorum yalnız simgeler arkaplan filan çıkmıyor. Neden anlamıyorum herşeyi tam yaptım.

<?php
// $Id: settings.php,v 1.27 2006/04/24 19:25:37 dries Exp $
/**
* @file
* Drupal site-specific configuration file.
*
* The configuration file to be loaded is based upon the rules below.
*
* The configuration directory will be discovered by stripping the
* website's hostname from left to right and pathname from right to
* left. The first configuration file found will be used and any
* others will be ignored. If no other configuration file is found
* then the default configuration file at 'sites/default' will be used.
*
* For example, for a fictitious site installed at
* http://www.drupal.org/mysite/test/, the 'settings.php'
* is searched in the following directories:
*
* 1. sites/www.drupal.org.mysite.test
* 2. sites/drupal.org.mysite.test
* 3. sites/org.mysite.test
*
* 4. sites/www.drupal.org.mysite
* 5. sites/drupal.org.mysite
* 6. sites/org.mysite
*
* 7. sites/www.drupal.org
* 8. sites/drupal.org
* 9. sites/org
*
* 10. sites/default
*
* If you are installing on a non-standard port number, prefix the
* hostname with that number. For example,
* http://www.drupal.org:8080/mysite/test/ could be loaded from
* sites/8080.www.drupal.org.mysite.test/.
*/
/**
* Database settings:
*
* Note that the $db_url variable gets parsed using PHP's built-in
* URL parser (i.e. using the "parse_url()" function) so make sure
* not to confuse the parser. If your username, password
* or database name contain characters used to delineate
* $db_url parts, you can escape them via URI hex encodings:
*
* : = %3a / = %2f @ = %40
* + = %2b ( = %28 ) = %29
* ? = %3f = = %3d & = %26
*
* To specify multiple connections to be used in your site (i.e. for
* complex custom modules) you can also specify an associative array
* of $db_url variables with the 'default' element used until otherwise
* requested.
*
* You can optionally set prefixes for some or all database table names
* by using the $db_prefix setting. If a prefix is specified, the table
* name will be prepended with its value. Be sure to use valid database
* characters only, usually alphanumeric and underscore. If no prefixes
* are desired, leave it as an empty string ''.
*
* To have all database names prefixed, set $db_prefix as a string:
*
* $db_prefix = 'main_';
*
* To provide prefixes for specific tables, set $db_prefix as an array.
* The array's keys are the table names and the values are the prefixes.
* The 'default' element holds the prefix for any tables not specified
* elsewhere in the array. Example:
*
* $db_prefix = array(
* 'default' => 'main_',
* 'users' => 'shared_',
* 'sessions' => 'shared_',
* 'role' => 'shared_',
* 'authmap' => 'shared_',
* 'sequences' => 'shared_',
* );
*
* Database URL format:
* $db_url = 'mysql://username:password@localhost/databasename';
* $db_url = 'mysqli://username:password@localhost/databasename';
* $db_url = 'pgsql://username:password@localhost/databasename';
*/
$db_url = 'mysql://username:password@localhost/databasename';
$db_prefix = '';
/**
* Base URL (optional).
*
* If you are experiencing issues with different site domains,
* uncomment the Base URL statement below (remove the leading hash sign)
* and fill in the URL to your Drupal installation.
*
* You might also want to force users to use a given domain.
* See the .htaccess file for more information.
*
* Examples:
* $base_url = 'http://www.example.com';
* $base_url = 'http://www.example.com:8888';
* $base_url = 'http://www.example.com/drupal';
* $base_url = 'https://www.example.com:8888/drupal';
*
* It is not allowed to have a trailing slash; Drupal will add it
* for you.
*/
# $base_url = 'http://www.example.com'; // NO trailing slash!
/**
* PHP settings:
*
* To see what PHP settings are possible, including whether they can
* be set at runtime (ie., when ini_set() occurs), read the PHP
* documentation at http://www.php.net/manual/en/ini.php#ini.list
* and take a look at the .htaccess file to see which non-runtime
* settings are used there. Settings defined here should not be
* duplicated there so as to avoid conflict issues.
*/
ini_set('arg_separator.output', '&amp;');
ini_set('magic_quotes_runtime', 0);
ini_set('magic_quotes_sybase', 0);
ini_set('session.cache_expire', 200000);
ini_set('session.cache_limiter', 'none');
ini_set('session.cookie_lifetime', 2000000);
ini_set('session.gc_maxlifetime', 200000);
ini_set('session.save_handler', 'user');
ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid', 0);
ini_set('url_rewriter.tags', '');
/**
* Variable overrides:
*
* To override specific entries in the 'variable' table for this site,
* set them here. You usually don't need to use this feature. This is
* useful in a configuration file for a vhost or directory, rather than
* the default settings.php. Any configuration setting from the 'variable'
* table can be given a new value.
*
* Remove the leading hash signs to enable.
*/
# $conf = array(
# 'site_name' => 'My Drupal site',
# 'theme_default' => 'pushbutton',
# 'anonymous' => 'Visitor'
# );

Burada hangilerini düzenliyoruz. Yardımcı olur musunuz.

ufku@drupal.org kullanıcısının resmi

LOCK komutunu kullanmaya

LOCK komutunu kullanmaya iznin yok. hostingcilerinle bi gorus.

trtint kullanıcısının resmi

komik gelecek ama ben

komik gelecek ama ben settings.php yi bulamadim

ufku@drupal.org kullanıcısının resmi

drupal altinda

drupal altinda sites/default/settings.php

trtint kullanıcısının resmi

tesekkurler kurulum

tesekkurler kurulum gercekten cok kolay oldu.

D@RK_LORD kullanıcısının resmi

hata alıyorum

settings.php dosyasında değişikliği yaptım, veritabanındaki değişikliği de gerçekleştirdim ama bir türlü blog dizinine erişemiyorum. Sebebi ne olabilir? Alttaki hatayı alıyorum.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, xxxxx@kayyo.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

erdemkose kullanıcısının resmi

.htaccess ve settings.php

.htaccess ve settings.php dosyalarındaki bazı ayarları yapmaya izniniz olmayabilir. .htaccess dosyasının adını değiştirip hata çıkıp çıkmadığına bakın. Eğer hata çıkmamaya başlarsa .htaccess dosyasındaki komutları bir seferde bir komut olmak üzere silerek hata çıkmayana kadar deneyin.

Eğer sorunun kaynağı .htaccess dosyası değilse settings.php dosyasındaki ini_set fonksiyonlarını tek tek başlarına // işareti koyarak yorum içine alıp öyle deneyin.

barthus kullanıcısının resmi

Kurdum ama bazı satırları reddediyor...

Uzun bir uğraştan sonra kurdum, nerde hata yaptığımı bulmam çok zamanımı aldı, genelde çok ufak ve saçma sapan hatalar unutkanlıklar saatleri alıp götürüyor.

Ama kurduktan sonra aşağıdaki hata mesajlarını ana sayfada görüyorum ve ne yazık ki ne olduğunu anlamak benim için zor, bunlar nedir, nasıl ortadan kaldırırım? (Bu hata mesajının hemen altında ana sayfam görünüyor)

Bu kurulum aşamalarını başarıyla geçebilirsem, acemi kullanıcılar için bir kurulum nasıl yapılır yazısı yazacağım :)

Warning:  ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 121
Warning: ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 122
Warning: ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 123
Warning: ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 124
Warning: ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 125
Warning: ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 126
Warning: ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 127
Warning: ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 128
Warning: ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 129
Warning: ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 130
Warning: ini_set() has been disabled for security reasons in /data/www/t/tester01/public_html/sites/default/settings.php on line 131
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /data/www/t/tester01/public_html/sites/default/settings.php:121) in /data/www/t/tester01/public_html/includes/bootstrap.inc on line 760
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data/www/t/tester01/public_html/sites/default/settings.php:121) in /data/www/t/tester01/public_html/includes/bootstrap.inc on line 760
Warning: Cannot modify header information - headers already sent by (output started at /data/www/t/tester01/public_html/sites/default/settings.php:121) in /data/www/t/tester01/public_html/includes/bootstrap.inc on line 562
Warning: Cannot modify header information - headers already sent by (output started at /data/www/t/tester01/public_html/sites/default/settings.php:121) in /data/www/t/tester01/public_html/includes/bootstrap.inc on line 563
Warning: Cannot modify header information - headers already sent by (output started at /data/www/t/tester01/public_html/sites/default/settings.php:121) in /data/www/t/tester01/public_html/includes/bootstrap.inc on line 564
Warning: Cannot modify header information - headers already sent by (output started at /data/www/t/tester01/public_html/sites/default/settings.php:121) in /data/www/t/tester01/public_html/includes/bootstrap.inc on line 565
Warning: Cannot modify header information - headers already sent by (output started at /data/www/t/tester01/public_html/sites/default/settings.php:121) in /data/www/t/tester01/public_html/includes/bootstrap.inc on line 566
erdemkose kullanıcısının resmi

Sunucunun PHP ayarlarında

Sunucunun PHP ayarlarında ini_set fonksiyonuna izin verilmiyor demek ki. Bu fonksiyonları sites/default/settings.php dosyasından kaldırman veya o satırların başına // işaretini koyman gerekecek. Bunu yaptığın zaman bu hataları almayabilirsin ama bu sefer de Drupal'ın düzgün çalışmama olasılığı var.

kArabaSan kullanıcısının resmi

Yapamıyorum : (

Merhaba Ustad'lar ;

Benim sorunum sanırım Mysql'dan Bu işe yeni baslayanlardanım mysql kurmasını ya da ayarlamasını bilmiyorum html tasarlardım genelde yalnız 1 php kurmak istedim bi scripti deniyeyim dedim scripti aynen FTP'ye attım ve siteye girdiğimde aldığım sonuç aynen şu yazılar;

Warning: set_time_limit(): Cannot set time limit in safe mode in init.php on line 3

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at init.php:3) in init.php on line 4

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at init.php:3) in init.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at init.php:3) in admin/includes/classes/class.install.php on line 269

Yardımcı olursanız sevinirim Şimdiden Hepinize Teşekkür ederim...

erdemkose kullanıcısının resmi

set_time_limit() ve Safe Mode

Senin sorunun set_time_limit() fonksiyonunu kullanamamanla ilgili. Ya PHP ayarlarını değiştirip safe mode ayarını kapatacaksın ya da set_time_limit() fonksiyonunu kullanmayacaksın. Bu sorunu çözmek için host şirketine danış.