how to edit config.php in Gelato CMS

73 views
Skip to first unread message

stefania paris

unread,
Jul 4, 2013, 12:59:13 PM7/4/13
to gela...@googlegroups.com
I  edit my config.php file like this:


<?php
if(!defined('entry') || !entry) die('Not a valid page');
/* ===========================

  gelato CMS - A PHP based tumblelog CMS
  development version
  http://www.gelatocms.com/

  gelato CMS is a free software licensed under the GPL 2.0
  Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>

  =========================== */

define('DB_Server', 'localhost');
define('DB_name', 'gelato');
define('DB_User', 'my sql username');
define('DB_Password', 'my sql pass');
define('Table_prefix', 'gel_');
define('Absolute_Path', dirname(__FILE__).DIRECTORY_SEPARATOR);

?>


but it gives my this error when I install gelato:

Could not connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)

stefania paris

unread,
Jul 4, 2013, 2:15:50 PM7/4/13
to gela...@googlegroups.com

ok.I installed it.on yahoo hosting define('DB_Server', 'localhost') is not ok .if your host is yahoo,use mysql not localhost
Reply all
Reply to author
Forward
0 new messages