Koozali.org: home of the SME Server

HOWTO: Installing PHP-Nuke Forum

Trevor S.

HOWTO: Installing PHP-Nuke Forum
« on: November 17, 2003, 05:40:19 AM »
Subject: Detailed Guide for New Users of SME.
Request: Installation Guide for PHP-Nuke Forum Package.

Fellow SME Guru's..

Requesting your help on providing a Step-By-Step Installation Guide for NEW SME Users. PHP-Nuke has a "general" How To, but is intended for PC's that have the normal Linux Directory Structure. SME directorys are slighty different.

Can we provide a Detailed "HOWTO:" with step-by-step instructions for users wishing to install this fine PHP Web Forum.

Examples would include..
-Where to dowload and run Package in SME.
-How to change file Permissions for PHP-Nuke.
-How to setup i-Bay for PHP-Nuke (sme Manual is good)

Best Regards...

Trevor S.

Re: HOWTO: Installing PHP-Nuke Forum
« Reply #1 on: November 17, 2003, 06:03:26 AM »
Installing the Package
----------------------

Untar the package into the directory you want to use on you web
server, (Windows users can use WinZip or WinRAR to uncompress .tar.gz files)

tar -zxvf PHP-Nuke.tar.gz

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.

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://yourdomain.com/admin.php

Trevor S.

Re: HOWTO: Installing PHP-Nuke Forum
« Reply #2 on: November 18, 2003, 01:00:08 AM »
Doug M. had the answer...

REVISED: PHP-Nuke - SME ibay mini-howto.

SET UP IBAY (using server manager)
--------------------
Information bay name - nuke
Description - My Happy Little PHP Nuke Site
Group - Everyone
User access - Write = group, Read = everyone
Public access via web - Entire internet (no password required)
Execution of dynamic content - enabled

INSTALL PHPNUKE (logon to console)
------------------------------
[server /]# cd /home/e-smith/files/ibays/nuke/html/
[server html]# mysqladmin create nuke
[server html]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 64 to server version: 3.23.49

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> grant all on nuke.* to phpnuke@localhost
> identified by ‘password';

mysql> quit

[server html]# mysqladmin reload
[server html]# wget http://easynews.dl.sourceforge.net/sourceforge/phpnuke/PHP-Nuke-6.8.tar.gz
[server html]# tar -zxf PHP-Nuke-6.8.tar.gz
[server html]# cd ..
[server html]# cd sql
[server sql]# mysql nuke < nuke.sql
[server sql]# cd ..

[server html]# mv html/* ./
[server html]# rmdir html
[server html]# config.php
######################################################################
# 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.
######################################################################

$dbhost = "localhost";
$dbuname = "phpnuke";
$dbpass = "password";
$dbname = "nuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "CHANGETHIS-KEY-TO-ANYTHInggggg";

######################################################################
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 http://yourdomain.com/admin.php */
######################################################################

[server html]# chmod 666 ultramode.txt

LOGON TO SITE
-------------
Fire to your browser and go to http://mysite/nuke/ and setup your admin account.