PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Fri Nov 25, 2005 8:04 pm Reply with quote Back to top

Okay, I'm kinda a newbie with web based stuff. I know how to setup a website, but not Databases, nor PHPNuke. I uploaded everything in HTML onto my website and went to the Installation file and ran the install document. Here is the error I get:

Database connection failed due to Access denied for user: 'root@localhost' (Using password: NO)

Edit the database settings in /home/neo/public_html/INSTALLATION/installSQL.php or contact your database provider

What does that mean? And what I am supposed to do. If someone could guide me that would be great Smile
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Fri Nov 25, 2005 8:26 pm Reply with quote Back to top

RTM - You need to follow the instructions in the README file.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Fri Nov 25, 2005 8:30 pm Reply with quote Back to top

I assume you mean the ReadMe in the installation folder? I'll check it out.
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Fri Nov 25, 2005 9:15 pm Reply with quote Back to top

How do I get the DataBase Host? I tryed using "localhost" but it's not working.
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Fri Nov 25, 2005 10:00 pm Reply with quote Back to top

localhost is correct if the database is on the same server as the web server

Do not use the root user, create a database user in your MySQL configuration and use that login for phpNuke
View user's profile Send private message Visit poster's website
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Fri Nov 25, 2005 10:41 pm Reply with quote Back to top

Alright, still getting an error then:

Database connection failed due to Access denied for user: 'neo_NukeD@localhost' to database 'neo_NukeDB'

My settings:

$dbhost = "localhost";
$dbuname = "neo_NukeD";
$dbpass = "*******"; <--- I blocked it out, but it's correct
$dbname = "neo_NukeDB";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9"; <-- I changed it slightly
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$tipath = "images/topics/";
$display_errors = false;


Image
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Fri Nov 25, 2005 11:15 pm Reply with quote Back to top

Step 1 in the README states
1) Using whatever your host requires you to use to create a MySQL database, create a database for your site.

You need to get familiar with your cPanel that your host uses. In your home page for your cPanel, usually towards the bottom of the left hand column, should be a line similar to Documentation Click to View. Click the link and you should be taken to a cPanel documentation site. In the table of contents look for MySQL. Click it and follow those instructions. Pay particular instructions to Add User to Db to give the user permission to access the database.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Sat Nov 26, 2005 12:28 am Reply with quote Back to top

Alright, sorry for any inconvience, but im a first timer with alot of this stuff, and im not used to being a newb at things Wink

Anyways, thanks Raven, if you wouldn't mind could you point me out to some articles/guides about PHPNuke on here, so I can see how to properly use it. Specifically how to change skins, and top banner, as well as why the "Who Is Online" block is not working. Thanks Smile
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Sat Nov 26, 2005 12:35 am Reply with quote Back to top

No inconvenience! There's an old adage that I just love that says
Give a man to fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.

I have been trying to lead you but not do it for you. Try this for starters. Although it is not entirely up to date with the latest releases, it is very valuable. The forums, here also, are very good for most any problem you would have Smile
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Sat Nov 26, 2005 1:08 am Reply with quote Back to top

Well while I'm here. Few things I didn't see in the guide:

-Why is it not saving any of my preferences when I edit them and then click save button at the bottom? It reverts everything back to default, can't even change skins.
-Why can't I deactivate some of the blocks? I hit "Deactivate" and it refreshes the page but it's still activated.
-How do I get a link to the forums appear at the top toolbar.

If anyone could help me with those, that would be nice.
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Sat Nov 26, 2005 2:04 am Reply with quote Back to top

In your config.php file, set $display_errors to TRUE. Then, see if any error messages are showing on your screen.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Sat Nov 26, 2005 3:14 am Reply with quote Back to top

Okay, changed it. Don't see any when I click the save button. Is it supposed to popup or appear somewhere?
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Sat Nov 26, 2005 8:50 am Reply with quote Back to top

In your cPanel is an icon called Error Log. Open it up to see if there are any error messages being recorded.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Sat Nov 26, 2005 11:33 am Reply with quote Back to top

Here is what it has logged:

[Sat Nov 26 17:38:34 2005] [error] [client 24.4.122.25] File does not exist: /home/neo/public_html/404.shtml
[Sat Nov 26 17:38:34 2005] [error] [client 24.4.122.25] File does not exist: /home/neo/public_html/favicon.ico
[Sat Nov 26 17:38:34 2005] [error] [client 24.4.122.25] File does not exist: /home/neo/public_html/404.shtml
[Sat Nov 26 17:38:34 2005] [error] [client 24.4.122.25] File does not exist: /home/neo/public_html/cp
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Sat Nov 26, 2005 11:38 am Reply with quote Back to top

This is what shows up when I click the save button on the preferences page:

[Sat Nov 26 17:38:34 2005] [error] [client 24.4.122.25] File does not exist: /home/neo/public_html/favicon.ico
[Sat Nov 26 17:38:34 2005] [error] [client 24.4.122.25] File does not exist: /home/neo/public_html/404.shtml

I assume I am missing an error page?
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Sat Nov 26, 2005 11:38 am Reply with quote Back to top

Are you running Apache or IIS as your web sever? Are you running *nix or windoze as your OS?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Sat Nov 26, 2005 11:53 am Reply with quote Back to top

OS: Windows XP (SP2)
Server: Apache 1.3.34 (Unix)
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Sat Nov 26, 2005 9:00 pm Reply with quote Back to top

Soooo any idea?
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Sat Nov 26, 2005 11:02 pm Reply with quote Back to top

Save this code as test.php and ftp it to your root nuke folder (the same place that your config.php file is).
Code:
<?
//
// Quick php script to test if database table is writeable by this user
// Author: Raven 11/26/2005
//
include("mainfile.php");
// Attempt to retrieve current sitename from nuke_config table
echo "<b><u>Attempting to retrieve current value</u></b>";
$sql = "SELECT sitename from ".$prefix."_config";
$result = $db->sql_query($sql);
echo '<br />$result = '.$result;
echo '<br />Number of rows retrieved = '.$db->sql_numrows($result);
$record = $db->sql_fetchrow($result);
$oldSiteName = $record['sitename'];
echo '<br />Sitename before write attempt = '.$oldSiteName;

// Attempt to update current sitename in nuke_config table
echo "<br /><br /><b><u>Attempting to update current value</u></b>";
$sql = "UPDATE ".$prefix."_config SET sitename = 'TEST SITE'";
$result = $db->sql_query($sql);
if (mysql_error()) {
   echo '<br /><br /><b>ERROR: MySQL said '.mysql_error().'</b>';
   die();
}
$sql = "SELECT sitename from ".$prefix."_config";
$result = $db->sql_query($sql);
echo '<br />$result = '.$result;
echo '<br />Number of rows retrieved = '.$db->sql_numrows($result);
$record = $db->sql_fetchrow($result);
$newSiteName = $record['sitename'];
echo '<br />Sitename after write attempt = '.$newSiteName;

// Attempt to reset sitename in nuke_config table to original value
echo "<br /><br /><b><u>Attempting to restore original value</u></b>";
$sql = "UPDATE ".$prefix."_config SET sitename = '$oldSiteName'";
$result = $db->sql_query($sql);
$sql = "SELECT sitename from ".$prefix."_config";
$result = $db->sql_query($sql);
echo '<br />$result = '.$result;
echo '<br />Number of rows retrieved = '.$db->sql_numrows($result);
$record = $db->sql_fetchrow($result);
echo '<br />Sitename after restoring attempt = '.$record['sitename'];
?>

Then run it through your browser as
Only registered users can see links on this board!
Get registered or login to the forums!
or whatever the path is to your root folder. Then paste the result in your next message.


Last edited by Raven on Sun Nov 27, 2005 12:28 am; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Sun Nov 27, 2005 12:21 am Reply with quote Back to top

Quote:
Attempting to retrieve current value
$result = Resource id #36
Number of rows retrieved = 1
Sitename before write attempt = PHP-Nuke Powered Site

Attempting to update current value

ERROR: MySQL said UPDATE command denied to user: 'neo_NukeD@localhost' for table 'nuke_config'


By the way, with the errors in the CPanel, I created a 404 page and an icon and the errors stopped but it's still not saving, and I guess that explains why.
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Sun Nov 27, 2005 12:26 am Reply with quote Back to top

That's what I suspected and why I wrote you that little diddy Wink. neo_NukeD does not have sufficient privledges for your database. You have a MySQL setup issue. Verify that that user has been added to the database.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Sun Nov 27, 2005 12:37 am Reply with quote Back to top

Alright, fixed it Smile

I just deleted the user and remade it with all privelages, must have been missing some. Thanks for all the help.

One last thing if you don't mind. With the "There is a problem right now with this block.", that's originally like that right, and not a problem with me?

Thanks again for all your help and patience Smile
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Sun Nov 27, 2005 12:45 am Reply with quote Back to top

You should not see that block message. If you do, then that's just what it means. It's often times caused by a block not receiving the data from the data base that it's expecting.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
AliasXNeo
New Member
New Member


Joined: Nov 25, 2005
Posts: 20

PostPosted: Sun Nov 27, 2005 12:47 am Reply with quote Back to top

So, it's another database problem?
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Sun Nov 27, 2005 12:56 am Reply with quote Back to top

Possibly. If that user didn't have the correct rights, then your database install may be incomplete. I would use phpMyAdmin and drop the database and start over and reinstall everything.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum