Wednesday, December 28, 2011

Install PHP-Nuke...

PHP-Nuke is a well known portal framework, deployed under a GNU/GPL license, in which you can install a number of modules, or to which new modules may be developed in PHP.

I have installed it in my PC (WINDOWS 7) and decided to resume in this post the way I solved a couple of problems.

To install PHP-Nuke, and because I didn't have Apache, PHP and MySQL installed on my PC, the following steps were taken:

1 - Download XAMPP (bundle that includes Apache, PHP e MySQL)
2 - Install XAMPP.
3 - Start the services (previously you should stop IIS)
4 - Download PHP-Nuke and unzip it to a directory
5 - Run PHP-Nuke (obviously it gives error, but provides a link for easy installation)
6 - Modify php.ini to ignore warningsabout old functions.

Points 1 and 2 are trivial. XAMPP can be downloaded from http://www.apachefriends.org/en/xampp-windows.html.

I used XAMPP version 1.7.7, which includes:

- Apache 2.2.21- MySQL 5.5.16
- PHP 5.3.8
- phpMyAdmin 3.4.5
- FileZilla FTP Server 0.9.39
- Tomcat 7.0.21 (with mod_proxy_ajp as connector)


Already, in section 3, to start Apache on port 80 is dependent on stopping the IIS (or start one of them in another port...)

-> To disable IIS just go to Control Panel -> System and Security -> Administrative Tools, open the Manage Internet Information Services (IIS) and stop the service.


Point 4, download PHP-Nuke, can be made from http://phpnuke.org/index.php. I used version 8.2, and unziped it to htdocs\phpnuke.

After that, I run phpnuke unziped, which causes a warning on a "deprecated" function, but provides a link to an easy installation (I will not talk about the other way to install because there was no need to use it).

This step asks for different information, among which is the name of the MySQL database where the Nuke database will be installed.

After installation, run the PHP-Nuke installed. You see the first page of the portal, but with a list of several lines with warnings of "deprecated" functions. This does not prevent the Nuke to run correctly, but it obviously doesn't look right in your portal. The simplest work around is to "hide these messages," changing the php.ini file with the following two lines:

display_errors = off
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE

This solves the problem and allows us to start exploring the Nuke.

No comments:

Post a Comment