| 1 |
PHP-Nuke: Web Portal System |
|---|
| 2 |
=========================== |
|---|
| 3 |
|
|---|
| 4 |
PLEASE READ CAREFULLY THE FOLLOWING INSTRUCTIONS. IF YOU DO THIS, |
|---|
| 5 |
YOU WILL HAVE YOUR SITE UP AND RUNNING IN JUST A FEW MINUTES. |
|---|
| 6 |
|
|---|
| 7 |
############################################################################## |
|---|
| 8 |
# I M P O R T A N T N O T E # |
|---|
| 9 |
############################################################################## |
|---|
| 10 |
# IMPORTANT: I saw many sites that removes the copyright line in the footer # |
|---|
| 11 |
# of each page. YOU'RE NOT ALLOWED TO REMOVE NOR CHANGE/EDIT THAT NOTE. # |
|---|
| 12 |
# You can sell services based on PHP-Nuke, you can make money from it, you # |
|---|
| 13 |
# can do almost whatever you want with PHP-Nuke but DO NOT REMOVE NOR EDIT # |
|---|
| 14 |
# THE COPYRIGHT NOTICES!!! Removing it is a GPL license's violation. # |
|---|
| 15 |
# If you do not agree with this simple rule, delete all PHP-Nuke files # |
|---|
| 16 |
# rigth now and move away from it. Thanks. # |
|---|
| 17 |
############################################################################## |
|---|
| 18 |
|
|---|
| 19 |
Base Requirements |
|---|
| 20 |
----------------- |
|---|
| 21 |
|
|---|
| 22 |
In order to setup PHP-Nuke the folowing prerequisits are necessary. |
|---|
| 23 |
|
|---|
| 24 |
- A Linux or Windows Box installed and working properly. |
|---|
| 25 |
- Apache Web Server (http://www.apache.org) |
|---|
| 26 |
- PHP version 4.2.x or better (mod_php) Apache module (http://www.php.net) |
|---|
| 27 |
- MySQL database server (http://www.mysql.com) |
|---|
| 28 |
|
|---|
| 29 |
NOTE: From PHP-Nuke version 5.3, I added a new SQL abstraction layer, |
|---|
| 30 |
this means that PHP-Nuke now supports MySQL, mSQL, PostgreSQL, PostgreSQL_local, |
|---|
| 31 |
ODBC, ODBC_Adabas, Sybase and Interbase servers. The official test server |
|---|
| 32 |
is MySQL which is used to develop PHP-Nuke. Any feedback about others SQL Servers |
|---|
| 33 |
and how it works will be very appreciated and useful. |
|---|
| 34 |
|
|---|
| 35 |
The above doesn't mean it will not work with other configurations, OS's, DB's, etc, |
|---|
| 36 |
but we only provide INSTALL instructions for the above configuration. |
|---|
| 37 |
In fact PHP-Nuke works under Windows (all), FreeBSD, OS/2, MacOS, etc. |
|---|
| 38 |
|
|---|
| 39 |
Setup of these required packages is beyond the scope of this document |
|---|
| 40 |
and if you are unsure you should check with each of the appropriate web |
|---|
| 41 |
sites for further details. |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
Installing the Package (The fast and easy way) |
|---|
| 45 |
---------------------------------------------- |
|---|
| 46 |
|
|---|
| 47 |
Unzip the package into the directory you want to use on you web |
|---|
| 48 |
server, if you're unsure where that is, ask you system administrator. |
|---|
| 49 |
|
|---|
| 50 |
Point your browser to your site, for example: http://phpnuke.org |
|---|
| 51 |
|
|---|
| 52 |
The system will show you an error message with a link to the web based installer utility (introduced |
|---|
| 53 |
with PHP-Nuke 8.0), follow the very easy steps and you're done. |
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
Installing the Package (The hard way) |
|---|
| 57 |
------------------------------------- |
|---|
| 58 |
|
|---|
| 59 |
Unzip the package into the directory you want to use on you web |
|---|
| 60 |
server, if you're unsure where that is, ask you system administrator. |
|---|
| 61 |
|
|---|
| 62 |
Now go to the directory where you uncompressed all files and edit the |
|---|
| 63 |
file "config.php". Change all the fields until you are happy with the |
|---|
| 64 |
changes and they fits the need of your web site. Give special attention |
|---|
| 65 |
to the database configuration section. When you have finished to edit |
|---|
| 66 |
config.php file change to the /sql/ directory and there is a file called |
|---|
| 67 |
"nuke.sql" this file contains the commands to build the database structure, |
|---|
| 68 |
tables and the default data. |
|---|
| 69 |
|
|---|
| 70 |
If you're using a software like phpMyAdmin go to step 3. |
|---|
| 71 |
|
|---|
| 72 |
1) Create a database called, for example, nuke: |
|---|
| 73 |
|
|---|
| 74 |
mysqladmin create nuke |
|---|
| 75 |
|
|---|
| 76 |
2) Now fill the databases with the tables in /html/install/sql/nuke.sql file: |
|---|
| 77 |
|
|---|
| 78 |
mysql nuke < nuke.sql |
|---|
| 79 |
|
|---|
| 80 |
3) In order to use the ultramode.txt news file please be sure to chmod 666. |
|---|
| 81 |
This file is used to show news from your site in some old programs and |
|---|
| 82 |
frontends and is reserved to future use in PHP-Nuke. For backend use |
|---|
| 83 |
backend.php file instead. |
|---|
| 84 |
|
|---|
| 85 |
4) That's it!... now you need to edit the file "config.php" to set the |
|---|
| 86 |
database options. Please read carefully the instruction on that file! |
|---|
| 87 |
After that, point your browser your site's administration area, |
|---|
| 88 |
for example: |
|---|
| 89 |
|
|---|
| 90 |
http://phpnuke.org/admin.php |
|---|
| 91 |
|
|---|
| 92 |
We use MySQL as the example and nuke.sql file is in MySQL format |
|---|
| 93 |
because PHP-Nuke was made using this database server. You can find |
|---|
| 94 |
many programs out there to convert the database schema from MySQL to |
|---|
| 95 |
whatever else you want. But this is a task for you. |
|---|
| 96 |
|
|---|
| 97 |
|
|---|
| 98 |
First Run |
|---|
| 99 |
--------- |
|---|
| 100 |
|
|---|
| 101 |
Create your Super User following the on-screen instructions. |
|---|
| 102 |
Now click on "Preferences" and change whatever you want to fit your |
|---|
| 103 |
site info. All the options you need to change are in the Preferences |
|---|
| 104 |
menu. If you need help just click con the help icon at the right-top |
|---|
| 105 |
of the Administration Menu. This will open a new window with the help |
|---|
| 106 |
you need for each section in the administration system. |
|---|
| 107 |
|
|---|
| 108 |
SECURITY TIP: It's a good choice to put your config.php file outside the |
|---|
| 109 |
Web Server path, then you can create a new config.php with the line: |
|---|
| 110 |
|
|---|
| 111 |
<?php include("../config.php"); ?> |
|---|
| 112 |
|
|---|
| 113 |
|
|---|
| 114 |
Upgrading from previous versions |
|---|
| 115 |
-------------------------------- |
|---|
| 116 |
|
|---|
| 117 |
To upgrade a prevoius PHP-Nuke installation to this new version you |
|---|
| 118 |
need to edit the selected upgrade file from upgrades directory and launch |
|---|
| 119 |
your web browser to: |
|---|
| 120 |
|
|---|
| 121 |
http://www.phpnuke.org/upgrade80-81.php |
|---|
| 122 |
|
|---|
| 123 |
all the new tables will be added and updated automagically without touch |
|---|
| 124 |
your old data. |
|---|
| 125 |
|
|---|
| 126 |
IMPORTANT: Remember to backup always your database before any upgrade, just |
|---|
| 127 |
in case. If something goes wrong don't come crying to me. |
|---|
| 128 |
|
|---|
| 129 |
|
|---|
| 130 |
Testing the Installation |
|---|
| 131 |
------------------------ |
|---|
| 132 |
|
|---|
| 133 |
Go to your homepage, for example: |
|---|
| 134 |
|
|---|
| 135 |
http://phpnuke.org/index.php |
|---|
| 136 |
|
|---|
| 137 |
To initiate your activities in your site, you need to login as Administrator at: |
|---|
| 138 |
|
|---|
| 139 |
http://phpnuke.org/admin.php |
|---|
| 140 |
|
|---|
| 141 |
this will give you full administrator priviledges to your installation of Nuke. |
|---|
| 142 |
|
|---|
| 143 |
*** For security reasons please remember to create a Super User IMMEDIATELY!!! *** |
|---|
| 144 |
|
|---|
| 145 |
Remember to "Logout" from admin after you use it, from this area you can |
|---|
| 146 |
delete or add content on your site, never leave your computer without logggin out |
|---|
| 147 |
from the admin account. If something bad happens don't come crying to me. |
|---|
| 148 |
|
|---|
| 149 |
I recommend the use of phpMyAdmin. It's a good administration system for |
|---|
| 150 |
MySQL databases. To download it just go to http://phpmyadmin.net |
|---|
| 151 |
|
|---|
| 152 |
I also recommend to set a password for your MySQL access. This is important |
|---|
| 153 |
as some data in the nuke database is not encrypted, so for security reasons you |
|---|
| 154 |
need to set a password, not only that, it's a good practice! |
|---|
| 155 |
|
|---|
| 156 |
For Banners System, when you setup a new client, you need to assign a new |
|---|
| 157 |
login/password for him. The login and password is used by the client at the url: |
|---|
| 158 |
|
|---|
| 159 |
http://phpnuke.org/banners.php?op=login |
|---|
| 160 |
|
|---|
| 161 |
in order to let the client view and track the banners stats in real time |
|---|
| 162 |
just pass that url to your clients. Take a look yourself before you do. |
|---|
| 163 |
|
|---|
| 164 |
|
|---|
| 165 |
Final Notes |
|---|
| 166 |
----------- |
|---|
| 167 |
|
|---|
| 168 |
That's it! You're done with PHP-Nuke. Just navigate around, play with it, |
|---|
| 169 |
abuse it and if you like PHP-Nuke, use it. Spend some time getting used to the |
|---|
| 170 |
administration interface. |
|---|
| 171 |
|
|---|
| 172 |
To change your site's logo, go to the themes directory and make a custom |
|---|
| 173 |
logo for each individual theme. Just navigate around all themes and change |
|---|
| 174 |
the graphics you want. |
|---|
| 175 |
|
|---|
| 176 |
A note for the PHP-Nuke site's administrators: Only admins (authors) can |
|---|
| 177 |
view the following data in the site: |
|---|
| 178 |
|
|---|
| 179 |
- Administration Menu |
|---|
| 180 |
- Number of New Submissions |
|---|
| 181 |
- Edit button for each link in Web Links |
|---|
| 182 |
- Edit and Delete options for each Article |
|---|
| 183 |
- Delete option for each comment |
|---|
| 184 |
- IP/Host address of the comment poster |
|---|
| 185 |
- Moderation option and button (if set for admin only) |
|---|
| 186 |
- and MANY more... |
|---|
| 187 |
|
|---|
| 188 |
If you plan to give something in change for PHP-Nuke as a contribution, |
|---|
| 189 |
please read the file SUPPORT included in this package to have some ideas. |
|---|
| 190 |
|
|---|
| 191 |
|
|---|
| 192 |
|
|---|
| 193 |
*** Special Thanks to all the people who help sending bugs reports, fixes, new |
|---|
| 194 |
add-ons, requests for new features, etc... I really appreciate you all! *** |
|---|
| 195 |
|
|---|
| 196 |
************************************ |
|---|
| 197 |
* PHP-Nuke URL: http://phpnuke.org * |
|---|
| 198 |
************************************ |
|---|
| 199 |
|
|---|
| 200 |
Enjoy! |
|---|
| 201 |
|
|---|
| 202 |
-- Francisco Burzi |
|---|