This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
Joomla
Joomla! is a powerful PHP content management system.
Preinstall
Edit /etc/portage/make.conf and add "apache2 php gd pdo" to your USE flags.
/etc/portage/make.conf
Portage configuration fileUSE="... apache2 php gd ..."
Edit /etc/portage/package.use and add "dev-lang/php mysql mysqli postgres" to PHP use flags then merge up LAMP.
/etc/portage/package.use
Portage configuration filedev-lang/php mysql mysqli postgres
PHP5 notes:
dev-lang/php must be built with pcre and session USE flags.
If you rebuild php5 changing flags you will need to restart apache2.
root #
emerge --ask apache mysql php
Scroll up into the emerge log and setup the root user for mysql running the command printed.
Edit /etc/conf.d/apache2 and add -D PHP5
to your APACHE2_OPTS
line.
Start up your LAMP stack
root #
/etc/init.d/mysql start
root #
/etc/init.d/apache2 start
Set the LAMP stack to start upon boot
root #
rc-update add mysql default
root #
rc-update add apache2 default
Install
Ebuild Install
It is possible to install Joomla! from Portage, but the last version keep on 1.7. Now we can get on with emerging:
root #
emerge --ask joomla
Backend
The ebuilds for Joomla! are very out of date (last ebuild 1.7), for last versions proceed manually.
Setup a directory for Joomla! in your web server
root #
mkdir /var/www/localhost/htdocs/joomla
Pull the latest to your web server:
root #
wget -o /var/www/localhost/htdocs/joomla/joomla.zip http://joomlacode.org/gf/download/frsrelease/18838/86936/Joomla_3.2.0-Stable-Full_Package.zip
unpack the zip
root #
unzip joomla.zip
Frontend
point your browser @ http://127.0.0.1/joomla/installation/index.php
- Step 1
Name, and describe your site, point at your email and password the admin account. (change the admin account name if you so choose, more secure)
Click next.
- Step 2
MySQL
It is a good idea to setup an unprivileged mysql user and database for Joomla!.
root #
mysql -u root -p
mysql> CREATE DATABASE IF NOT EXISTS `joomla` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`; mysql> CREATE USER 'joomla'@'localhost' IDENTIFIED BY 'dbpass!!! change me'; mysql> GRANT LOCK TABLES, SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `joomla`.* TO 'joomla'@'localhost' IDENTIFIED BY 'dbpass!!! change me'; mysql> \q
In the web page enter joomla for username and joomla for database
Press next
- Step 3
Ftp
Select no for now.
- Step4
Delete the install directory, and go to http://127.0.0.1/joomla/index.php to see your website, and http://127.0.0.1/joomla/administrator/index.php to administer your website.
Extensions
Joomla! can be crafted into many things with extensions. It can be used for forums, chat, classified ads, web stores, blogs, guest books, and more.