[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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howtos:network_services:joomla [2013/02/14 09:30 (UTC)] – [Configure Apache Webserver] wisedracohowtos:network_services:joomla [2013/02/17 08:28 (UTC)] – [Configure Apache Webserver] wisedraco
Line 7: Line 7:
   * In configuring stage you choose to automatically start applications "apache" (rc.httpd) and "MySQL" (rc.mysqld)   * In configuring stage you choose to automatically start applications "apache" (rc.httpd) and "MySQL" (rc.mysqld)
  
-====== Start setup MySQL ======+====== Configure MySQL ======
   - Copy with rename ''/etc/mysql/my-large.cnf'' or another file from that directory, who meet your requirements, to ''/etc/my.cnf''   - Copy with rename ''/etc/mysql/my-large.cnf'' or another file from that directory, who meet your requirements, to ''/etc/my.cnf''
   - Edit that ''/etc.my.cnf'' to add three lines after [mysqld], as there: <code>   - Edit that ''/etc.my.cnf'' to add three lines after [mysqld], as there: <code>
Line 23: Line 23:
   - and finally, do from bash <code bash> mysqladmin -u joomla_db_username -p create yourdatabasename_for_joomla </code> it need input of your "joomla_db_username" password, seems as "joomla_db_user_password" in that instruction.   - and finally, do from bash <code bash> mysqladmin -u joomla_db_username -p create yourdatabasename_for_joomla </code> it need input of your "joomla_db_username" password, seems as "joomla_db_user_password" in that instruction.
   - That's all, your MySQL will be ready to install and configure Joomla.   - That's all, your MySQL will be ready to install and configure Joomla.
 +
  
 ====== Configure Apache Webserver ====== ====== Configure Apache Webserver ======
-  - Go to ''/etc/httpd/httpd.conf'' file and edit them: +  - Open ''/etc/httpd/httpd.conf'' in a text editor such as vi or nano. 
-  - Change ''ServerAdmin'' and ''ServerName'' variables to yours+  - Change the ''ServerAdmin'' and ''ServerName'' variables to your liking
-  - change first encounter directive  +  - Change the first encounter of Directive <code> 
-<code> <Directory />+<Directory />
     AllowOverride none     AllowOverride none
     Require all denied     Require all denied
 </Directory> </Directory>
-</code> +</code> to: <code>
- to: +
-<code>+
 <Directory /> <Directory />
     Options FollowSymLinks Includes     Options FollowSymLinks Includes
     AllowOverride None     AllowOverride None
 </Directory> </Directory>
 +</code>
 +  - Next, edit "''/etc/httpd/httpd.conf''" to configure a new DocumentRoot. By default the Apache DocumentRoot is the directory "''/srv/httpd/htdocs''" We will change that to the Joomla installation directory. In this example, we will install Joomla to "/srv/httpd/beautifulsite.com". \\ Search for the two directives <code>
 +DocumentRoot "/srv/httpd/htdocs"
 +</code> and <code>
 +<Directory "/srv/httpd/htdocs">
 +</code> and change both values from "/srv/httpd/htdocs" to "/srv/httpd/beautifulsite.com".
 +  - Next, look at below section: <code> 
 +    #
 +    # 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>
 +</code> and change following: <code>
 +Options Indexes FollowSymLinks Includes MultiViews ExecCGI
 +AllowOverride All
 +Order allow, deny
 +Allow from All
 +</code> and comment the line "Require all granted"
 +  - At the bottom of the file, change the section <code>
 +<IfModule dir_module>
 +    DirectoryIndex index.html
 +</IfModule>
 +</code> adding "index.shtml index.php" after "index.html".
 +  - Comment out the string "''AddHandler cgi-script .cgi''"
 +  - Uncomment the php module: <code>
 +Include /etc/httpd/mod_php.conf
 +</code> and save the file.
 +  - Next, edit the file "''/etc/httpd/php.ini''"
 +  - Search for string <code>output_buffering = 4096 </code> and change them to <code>output_buffering = Off </code>
 +  - Save the file, and finally restart the webserver: <code bash>
 +root@darkstar:~# /etc/rc.d/rc.httpd restart
 </code> </code>
  
-  - Thenchanges ''DocumentRoot "/srv/httpd/htdocs" +<note>In the "CustomLog" section of ''/etc/httopd/httpd.conf''if you plan to use webalizer, comment "CustomLog ..... common" and uncomment "CustomLog .... combined" strings</note> 
-<Directory "/srv/httpd/htdocs">'' to valueswhere you want to put your websites content, in example /srv/httpd/beautifulsite.com+ 
 +<note>In ''/etc/httpd/httpd.conf'', you can comment out the VirtualHost configuration, if you intend run many webservers on your host. If not, leave it, as it is. <code> 
 +#Include /etc/httpd/extra/httpd-vhosts.conf 
 +</code></note>  
 + 
 +====== Set Up Joomla 2.5 ====== 
 +  - Download a Joomla tarball at [[http://www.joomla.org/download.html]], choose the "//Full package, Zip//" archive. 
 +  -  We install Joomla as the Apache Webserver's //[[http://httpd.apache.org/docs/current/mod/core.html#documentroot|DocumentRoot]]//, which we configured as "''/srv/httpd/beautifulsite.com''" in the previous section. Create a new directory called "''beautifulsite.com''" under "''/srv/httpd/''" We will end up with the new directory "''/srv/httpd/htdocs/beautifulsite.com''which will be used by Apache as the DocumentRoot. 
 +  - Uncompress the joomla zip-file into that directory: <code> 
 +root@darkstar:~# unzip Joomla_2.5.9-Stable-Full_Package.zip -d /srv/httpd/htdocs/beautifulsite.com 
 +</code> 
 +  - As rootchange the file ownership to the Apache user: <code> 
 +root@darkstar:~# chown -R apache:apache /srv/httpd/beautifulsite.com 
 +</code> 
 +  - The initial Joomla configuration is done in a web browser (preferably from another computer workstation). Enter our "''http://beautifulserver.com''" URL in the browser's addressbar. This will start start the web-based configuration of our newly installed Joomla CMS. When you get to the database configuration, the better choice is "**mysqli**". Input is also required for the Joomla database username and password. The rest of the configuration is straight-forward.
  
  
-that is unfinished howto. i finish it with two days.... 
 ====== Sources ====== ====== Sources ======
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
-<!-- * Original source: [[http://some.website.org/some/page.html]] -->+  * Original source: [[http://stackoverflow.com/questions/3513773/change-mysql-default-character-set-to-utf8-in-my-cnf|MySQL config to UTF8 support]].
 <!-- Authors are allowed to give credit to themselves! --> <!-- Authors are allowed to give credit to themselves! -->
-<!-- * Originally written by [[wiki:user:xxx User X]] -->+  * Originally written by [[wiki:user:wisedraco John Ciemgals]]
 <!-- * Contributions by [[wiki:user:yyy | User Y]] --> <!-- * Contributions by [[wiki:user:yyy | User Y]] -->
-* Original source: [[http://stackoverflow.com/questions/3513773/change-mysql-default-character-set-to-utf8-in-my-cnf]]MySQL config to UTF8 support. 
  
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
-<!-- You must remove the tag-word "template" below before saving your new page --> +{{tag>howtos joomla author_wisedraco}}
-{{tag>howtos template}} +
- --- //[[wiki:user:wisedraco|John Ciemgals]] 2013/02/12 06:00//+
 howtos:network_services:joomla ()