[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

This is an old revision of the document!


Setting up Joomla 2.5 CMS in Slackware 14.0 64bit

This HowTo describes simplified instruction for installing Joomla 2.5 content management system in Slackware 14.0. For more complex instructions you may want to read …

  • start conditions is freshly installed Slackware 14.0 with option “Full install”.
  • In configuring stage you choose to automatically start applications “apache” (rc.httpd) and “MySQL” (rc.mysqld)

Start setup MySQL

  1. Copy with rename /etc/mysql/my-large.cnf or another file from that directory, who meet your requirements, to /etc/my.cnf
  2. Edit that /etc.my.cnf to add three lines after [mysqld], as there:
    [mysqld]
    collation-server = utf8_unicode_ci
    init-connect='SET NAMES utf8'
    character-set-server = utf8
     
  3. After that, restart MySQL server.
  4. Do as root
    mysql_install_db --user=mysql 
  5. Do as root
     mysql_secure_installation 

    , and set mysql root password ( and write it down or remember), and choose all default answers

  6. After that, do
     mysql -u root -p 

    after write user password, be in mysql>. write

     CREATE USER 'joomla_db_username'@'localhost' IDENTIFIED BY 'joomla_db_user_password'; 

    , where joomla_db_user is user, who you make for under who your joomla stores information in mysql. joomla_db_user_paswword is your choosing password for that mysql user.

  7. write
     GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON yourdatabasename_for_joomla.* to 'joomla_db_username'@'localhost'; 
  8. after that do
     FLUSH PRIVILEGES;

    and then

     quit
  9. and finally, do from bash
     mysqladmin -u joomla_db_username -p create yourdatabasename_for_joomla 

    it need input of your “joomla_db_username” password, seems as “joomla_db_user_password” in that instruction.

  10. That's all, your MySQL will be ready to install and configure Joomla.

Configure Apache Webserver

  1. Go to /etc/httpd/httpd.conf file and edit them:
  2. Change ServerAdmin and ServerName variables to yours.
  3. change first encounter directive
 <Directory />
    AllowOverride none
    Require all denied
</Directory>

to:

<Directory />
    Options FollowSymLinks Includes
    AllowOverride None
</Directory>
  1. Then, changes DocumentRoot “/srv/httpd/htdocs” <Directory “/srv/httpd/htdocs”> to values, where you want to put your websites content, in example /srv/httpd/beautifulsite.com
  1. after that, look at bellow section:
 
 #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks
    
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None
    
    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

and change following: Options Indexes FollowSymLinks Includes MultiViews ExecCGI AllowOverride All Order allow, deny Allow from All

and comment line “Require all granted”

  1. bottom, change section
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

adding after “index.html” also “index.shtml index.php”

In “CustomLog section, if you plan to use webalizer, comment “CustomLog ….. common” and uncomment “CustomLog …. combined” strings
  1. comment out string AddHandler cgi-script .cgi
also can comment out virtualhost file, if you want run more than one webserver on your host
 
#Include /etc/httpd/extra/httpd-vhosts.conf
  1. uncomment php module:
  2. Include /etc/httpd/mod_php.conf
     

then save the file, and go edit /etc/httpd/php.ini search for string

output_buffering = 4096 

and change them to

output_buffering = Off 

then save it, and restart httpd server

Set Up Joomla 2.5

  1. Download Joomla http://www.joomla.org/download.html, Full package, zip
  2. make a folder with name as it configured in httpd.conf ”/srv/httpd/htdocs“

<Directory ”/srv/httpd/htdocs“> direcrives, say, beautifulsite.com, under a /serv/httpd. in result we must have /srv/httpd/beautifulsite.com or so.

  1. Uncompress joomla zip file in that folder
  2. do from root terminal
     chown apache:apache -R /srv/httpd/beautifulsite.com
  3. now we have do in web browser ( preferably from another computer, workstation) print our http://beautifulserver.com in address bar and start web - based configuration of our newly installed Joomla CMS. on database screen better is choice “mysqli”, and there we must input our user for joomla db username and password. all another is intuitively understand….

that is unfinished howto. i finish it with two days….

Sources

 howtos:network_services:joomla ()