Mambo is a free Content Management System (CMS). It allows to easily update web pages content.
Add PHP capabilities to the Apache web server:
emerge php
emerge mod_php
nano -w /etc/conf.d/apache2
Add the line:
APACHE2_OPTS="-D SSL -D PHP4"
Configure it, step 1:
nano -w /etc/apache2/conf/apache2.conf
Add the lines:
###
### for PHP
###
<IfDefine HAVE_PHP4>
LoadModule php4_module extramodules/libphp4.so
</IfDefine>
<IfDefine HAVE_SSL>
LoadModule ssl_module extramodules/libssl.so
</IfDefine>
Configure it, step 2:
nano -w /etc/apache2/conf/commonapache2.conf
Add the lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
restart the server:
apache2ctl restart
Install MySQL:
emerge mysql
/etc/init.d/mysql status
/etc/init.d/mysql start
rc-update add mysql default
Activate MySQL:
mysql_install_db
If you need to change the MySQL root password:
killall mysqld
mysqld --skip-grant-tables --user=root &
mysql
USE mysql
UPDATE user SET password=password("newpassword") WHERE user="root";
flush privileges;
exit
/etc/init.d/mysql restart
Configure the mambo MySQL database:
emerge --config =mambo-4.5.2.3
Install the system:
emerge webapp-config
emerge mambo
Move the files:
mv /var/www/localhost/htdocs/mambo /home/DSPC/WebPages/
Edit /etc/apache2/conf/commonapache2.conf to reflect the changes.
Prepare the config file:
cd /home/DSPC/WebPages/mambo/
nano -w configuration.php
chown apache:apache configuration.php
Edit /etc/apache2/conf/commonapache2.conf to reflect the changes.
Configure mambo via its web interface
http://<machineName>/mambo/.
Remove the installation directory:
rm -R /home/DSPC/WebPages/mambo/installation
With this, you have the mambo pages on your machine.