Computing.Net > Forums > Web Development > How to use PHP Nuke?

How to use PHP Nuke?

Reply to Message Icon

Original Message
Name: Leo the 28C (by Sulfurik)
Date: September 2, 2005 at 20:57:17 Pacific
Subject: How to use PHP Nuke?
OS: Windows XP Home
CPU/Ram: 1.4 GHz/480 MB
Comment:

Hello everyone! :D
OK, I got no idea what I'm doing here... I just want to have a PHP Nuke site. I uploaded all of the files to my server, but then when I try to enter the page, I get:


Fatal error: Call to undefined function: message_die() in /home/virtual/site133/fst/var/www/html/db/db.php on line 88

I've read about this on many forums, but noone seems to have an answer... What do I have to do? Thanks! ;-)

PS: Now that I remember, I also added the contents of "nuke.sql" to a database named "sulfurmidis_com_-_nukedb".

http://www.boredsource.com/sulfurik/
http://tsfc.ath.cx
ftp://tsfc.ath.cx
hotline://tsfc.ath.cx

Ruffle Mayo says ROFLMAO! :D


Report Offensive Message For Removal


Response Number 1
Name: Michael J (by mjdamato)
Date: September 2, 2005 at 21:28:38 Pacific
Subject: How to use PHP Nuke?
Reply: (edit)

Installing the Package
----------------------

Unzip the package into the directory you want to use on you web
server, if you're unsure where that is, ask you system administrator.

Now go to the directory where you uncompressed all files and edit the
file "config.php". Change all the fields until you are happy with the
changes and they fits the need of your web site. Give special attention
to the database configuration section. When you have finished to edit
config.php file change to the /sql/ directory and there is a file called
"nuke.sql" this file contains the commands to build the database structure,
tables and the default data.

If you're using a software like phpMyAdmin go to step 3.

1) Create a database called, for example, nuke:

mysqladmin create nuke

2) Now fill the databases with the tables in nuke.sql file:

mysql nuke < nuke.sql

3) In order to use the ultramode.txt news file please be sure to chmod 666.
This file is used to show news from your site in some old programs and
frontends and is reserved to future use in PHP-Nuke. For backend use
backend.php file instead.

4) That's it!... now you need to edit the file "config.php" to set the
database options. Please read carefully the instruction on that file!
After that, point your browser to:

http://phpnuke.org/admin.php

We use MySQL as the example and nuke.sql file is in MySQL format
because PHP-Nuke was made using this database server. You can find
many programs out there to convert the database schema from MySQL to
whatever else you want. But this is a task for you.


First Run
---------

Create your Super User following the on-screen instructions.
Now click on "Preferences" and change whatever you want to fit your
site info. All the options you need to change are in the Preferences
menu. If you need help just click con the help icon at the right-top
of the Administration Menu. This will open a new window with the help
you need for each section in the administration system.

SECURITY TIP: It's a good choice to put your config.php file outside the
Web Server path, then you can create a new config.php with the line:

<?php include("../config.php"); ?>


Report Offensive Follow Up For Removal

Response Number 2
Name: Leo the 28C (by Sulfurik)
Date: September 3, 2005 at 12:51:07 Pacific
Subject: How to use PHP Nuke?
Reply: (edit)

After that, point your browser to:

http://phpnuke.org/admin.php

There's where I got stuck... :S
I go to that page (replacing it with my domain, of course) and I get the same error:

Fatal error: Call to undefined function: message_die() in /home/virtual/site133/fst/var/www/html/db/db.php on line 88

I don't understand the config.php file much... look:


$dbhost = "sulfurmidis.com";
$dbuname = "{Almost forgot to take this off!}";
$dbpass = "{Almost forgot to take this off!}";
$dbname = "nukedb";
$prefix = "";
$user_prefix = "";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";
$gfx_chk = 7;

These parts I didn't understand:
$dbhost = Is it my server's host address, or my site's host address? (Server's not on my PC)
$prefix and $user_prefix = What are these? I know all my databases start with "sulfurmidis_com_-_", but where should I put this?
$sitekey = What's this?

Much, much thanks! ;)

http://www.boredsource.com/sulfurik/
http://tsfc.ath.cx
ftp://tsfc.ath.cx
hotline://tsfc.ath.cx

Ruffle Mayo says ROFLMAO! :D


Report Offensive Follow Up For Removal

Response Number 3
Name: Michael J (by mjdamato)
Date: September 3, 2005 at 18:36:37 Pacific
Subject: How to use PHP Nuke?
Reply: (edit)

"$dbhost = Is it my server's host address, or my site's host address? (Server's not on my PC)" I'm not following you. Your "site" is hosted on a "server". To allow people to get to your site, there must be a DNS record that points them to the server's IP (or one of the IPs that the server hosts). So the site IP and the server IP are one in the same.

If your webserver and MySQL server are on the same machine then just use $dbhost = "localhost". If they are on different machines, then it needs to be the computer name or IP address of the machine that MySQL is running on.

$prefix is the prefix that is used for all of the MySQL tables. For example, my users table is named "nuke_users" and my prefix is "nuke" (don't include teh last underscore. The $user_prefix for my setup is also "nuke" - so use the same settings for the users table unless you know it is different. In your case I would use "sulfurmidis_com_-"

$sitekey, you can use whatever value you want from the documentation I see. I left it the same as it was ("SdFk*fa28367-dm56w69.3a2fDS+e9") because there might be other changes you have to make in order for a different key to work.

Lastly, I think there may be something wrong with the virtual drive settings on the server from the error message you received. But, try making the settings as described above and see what happens.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: How to use PHP Nuke?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge