App-Develop-Joomla

From KRayWiki
Jump to: navigation, search
See Also 
App-Develop

Configuration

Database Setup

Establish a username and password to connect to the MySQL database, and make MySQL and Joomla aware of it.

   # mysql
   mysql> create database joomla;
   mysql> grant all privileges on joomla.* to joomla identified by 'joomla';
   mysql> grant all privileges on joomla.* to joomla@localhost identified by 'joomla';
   mysql> flush privileges;
   mysql> exit

Sometimes it may be necessary to run variations of the "grant" command:

   mysql> grant all privileges on joomla.* to joomla@'%' identified by 'joomla';

This creates an empty database called 'joomla', a user named 'joomla' with a password of 'joomla', and gives the 'joomla' user total permission over the 'joomla' database. Use of other values is permissible and advisable (particularly in the case of the password).

Once this is finished and the database server and web server are running, browse to the following URL: http://localhost/joomla/

Follow the instructions given to you on the pages you see to set up the database tables.

  1. Select Language
  2. Pre-installation Check
  3. License
  4. Database Configuration
    • Database Type
      • mysql
    • Hostname
      • localhost, or another appropriate name.
    • Username
      • The name used when setting up the database.
    • Password
      • The password used when setting up the database.
    • Database Name
      • The name used when setting up the database.
    • Advanced Settings
    • -Delete existing tables -or- Backup existing tables, as appropriate.
      As noted below, "Delete existing tables" does not work. It gives the "Cookies do not appear to be enabled..." error.
      • Table Prefix
      • jos_ is the default, but using other values (except bak_) is allowed.
  5. FTP Configuration
    • Enable FTP file system layer
      • No
        At this point we get:
        Cookies do not appear to be enabled on your browser client. You will not be able to install the application with this feature disabled. Alternatively, there could also be a problem with the server's session.save_path. If this is the case, please consult your hosting provider if you don't know how to check or fix this yourself.
        This seemed to be related to /etc/php.ini session.save_path not being writable, but on Mandriva 2010.1, this is set to /var/lib/php, and it is set drwx-wx-wt apache.apache, but it was not. Instead it was related to choosing to delete existing tables instead of choosing to back them up.
  6. The installation was restarted, and the Database Name/Advanced Settings were left at their default values.
  7. Main Configuration
    • Site name:
      • ...an applicable name...
    • Your e-mail:
      • ...an e-mail address...
    • Admin password/Confirm admin password:
      • ...a password for use with the joomla admin control panel...
    • Install Default Sample Data (recommended for new users).
      • Press the "Install Sample Data" Button. Installing sample data causes an error on Mandriva 2010.1.
    • Load Migration Script
      • This is not necessary for a new installation.
        At this point we get:
        Cookies do not appear to be enabled on your browser client. You will not be able to install the application with this feature disabled. Alternatively, there could also be a problem with the server's session.save_path. If this is the case, please consult your hosting provider if you don't know how to check or fix this yourself.
  8. The installation was restarted, and the sample data is not installed.
  9. Finish
    • The installation is successful.
  10. Remove the installation folder.
    • sudo mv /var/www/joomla/installation /var/www/joomla/_installation

At this point, navigate to http://localhost/joomla to view the site, or http://localhost/administrator/ to edit the site.

Files & Folders

Root Directory Tree          Description
/etc/httpd/conf/webapps.d/ Configuration file area
joomla.conf
/var/www/joomla/