Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0
Author Message
shrinky
New Member
New Member



Joined: Jan 20, 2004
Posts: 8

PostPosted: Wed Jan 21, 2004 5:40 pm Reply with quote

<?php

######################################################################
# PHP-NUKE: Advanced Content Management System
# ============================================
#
# Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)
# [ Only registered users can see links on this board! Get registered or login! ]
#
# This module is to configure the main options for your site
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
######################################################################

######################################################################
# Database & System Config
#
# dbhost: SQL Database Hostname
# dbuname: SQL Username
# dbpass: SQL Password
# dbname: SQL Database Name
# $prefix: Your Database table's prefix
# $user_prefix: Your Users' Database table's prefix (To share it)
# $dbtype: Your Database Server type. Supported servers are:
# MySQL, mysql4, postgres, mssql, oracle, msaccess,
# db2 and mssql-odbc
# Be sure to write it exactly as above, case SeNsItIvE!
# $sitekey: Security Key. CHANGE it to whatever you want, as long
# as you want. Just don't use quotes.
# $gfx_chk: Set the graphic security code on every login screen,
# You need to have GD extension installed:
# 0: No check
# 1: Administrators login only
# 2: Users login only
# 3: New users registration only
# 4: Both, users login and new users registration only
# 5: Administrators and users login only
# 6: Administrators and new users registration only
# 7: Everywhere on all login options (Admins and Users)
# NOTE: If you aren't sure set this value to 0
######################################################################

#$dbhost = "localhost";
$dbuname = "shrinky_shrinky";
$dbpass = "*****";
$dbname = "shrinky_nuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";
$gfx_chk = 7;

/*********************************************************************/
/* You finished to configure the Database. Now you can change all */
/* you want in the Administration Section. To enter just launch */
/* you web browser pointing to [ Only registered users can see links on this board! Get registered or login! ] */
/* */
/* Remeber to go to Settings section where you can configure your */
/* new site. In that menu you can change all you need to change. */
/* */
/* Congratulations! now you have an automated news portal! */
/* Thanks for choose PHP-Nuke: The Future of the Web */
/*********************************************************************/

// DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING

$reasons = array("As Is",
"Offtopic",
"Flamebait",
"Troll",
"Redundant",
"Insighful",
"Interesting",
"Informative",
"Funny",
"Overrated",
"Underrated");
$badreasons = 4;
$AllowableHTML = array("b"=>1,
"i"=>1,
"a"=>2,
"em"=>1,
"br"=>1,
"strong"=>1,
"blockquote"=>1,
"tt"=>1,
"li"=>1,
"ol"=>1,
"ul"=>1);
$CensorList = array("f***",
"cunt",
"f***er",
"f***ing",
"pussy",
"cock",
"c0ck",
"cum",
"twat",
"clit",
"bitch",
"fuk",
"fuking",
"motherfucker");
$tipath = "images/topics/";
if (eregi("config.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

?>
 
View user's profile Send private message
shrinky







PostPosted: Wed Jan 21, 2004 5:40 pm Reply with quote

Is that right?!!!!!!!!!!
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Jan 21, 2004 5:43 pm Reply with quote

As I said, it's the VALUES of the settings, not the config.php code. The message_die() error means either the username/password combination is wrong or that username does not have access permission to that database.
 
View user's profile Send private message
shrinky







PostPosted: Wed Jan 21, 2004 5:47 pm Reply with quote

oooo how do i add permision then?!
 
Raven







PostPosted: Wed Jan 21, 2004 5:50 pm Reply with quote

Go into cpanel and then MySQL Databases. You should see a User and Database dropdown block. Select the username and database and then click Add User To Database.
 
shrinky







PostPosted: Wed Jan 21, 2004 5:53 pm Reply with quote

ok
 
shrinky







PostPosted: Wed Jan 21, 2004 5:56 pm Reply with quote

WOOT WOOT OMG!!! lol i dink it didnt work becuase i did the steps while i was uploading O_O
 
AJJ
New Member
New Member



Joined: Jun 27, 2004
Posts: 7

PostPosted: Sun Jun 27, 2004 4:27 pm Reply with quote

Hello.

Thanks for the wonderful help to getting started with phpNuke. It helped me a lot.

I followed everything as described. And when I go to the site, it says :
"There seems to be a problem with the MySQL server, sorry for the inconvenience.

We should be back shortly."

Is that something I have done wrong, or it is just an fault from those who are hosting the site?

Thanks for the answer in advance.
 
View user's profile Send private message
Raven







PostPosted: Sun Jun 27, 2004 4:29 pm Reply with quote

That would imply that you are not connectiong with the MySQL server. See if this posts helps [ Only registered users can see links on this board! Get registered or login! ]
 
AJJ







PostPosted: Sun Jun 27, 2004 4:40 pm Reply with quote

Hmm... Sad

config.php is like that :

$dbhost = "localhost";
$dbuname = "chessfo_jamil";
$dbpass = "*****";
$dbname = "chessfo_nuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";
$gfx_chk = 7;
$subscription_url = "";

Should I change "localhost"?
 
Raven







PostPosted: Sun Jun 27, 2004 4:44 pm Reply with quote

I can't tell if those connection parameters are correct. Only you can. Did you create the tables in the database?
 
AJJ







PostPosted: Sun Jun 27, 2004 4:53 pm Reply with quote

Yes I did. "chessfo_" wsa there from before, and I just added the username, dbnam.

And I have granted the user privileges too.

I think have two databases. But what is the site name the alternative for the "localhostname"?
 
AJJ







PostPosted: Sun Jun 27, 2004 5:13 pm Reply with quote

I have solved the problem. "localhost" disn't work. I had to write the correct hostname.

Thanks for all the help.
 
Raven







PostPosted: Sun Jun 27, 2004 5:17 pm Reply with quote

Great! Most sites allow and actually require localhost.
 
AJJ







PostPosted: Sun Jun 27, 2004 5:33 pm Reply with quote

But now I have the problem with Admin login. Is there any default username and password?
 
Raven







PostPosted: Sun Jun 27, 2004 5:38 pm Reply with quote

You have to create the super user.
 
AJJ







PostPosted: Sun Jun 27, 2004 6:04 pm Reply with quote

I have got it working. Smile
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©