[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 10:21 (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
Line 40: Line 39:
 </Directory> </Directory>
 </code> </code>
- +  Nextedit "''/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> 
-  Thenchanges ''DocumentRoot "/srv/httpd/htdocs" +DocumentRoot "/srv/httpd/htdocs" 
-<Directory "/srv/httpd/htdocs">'' to values, where you want to put your websites content, in example /srv/httpd/beautifulsite.com +</code> and <code> 
- +<Directory "/srv/httpd/htdocs"> 
-  - after that, look at bellow section: +</code> and change both values from "/srv/httpd/htdocs" to "/srv/httpd/beautifulsite.com". 
-<code>  +  - Next, look at below section: <code>  
- #+    #
     # Possible values for the Options directive are "None", "All",     # Possible values for the Options directive are "None", "All",
     # or any combination of:     # or any combination of:
Line 72: Line 71:
     Require all granted     Require all granted
 </Directory> </Directory>
-</code> +</code> and change following: <code>
-and change following:+
 Options Indexes FollowSymLinks Includes MultiViews ExecCGI Options Indexes FollowSymLinks Includes MultiViews ExecCGI
 AllowOverride All AllowOverride All
 Order allow, deny Order allow, deny
 Allow from All Allow from All
- +</code> and comment the line "Require all granted" 
-and comment line "Require all granted" +  - At the bottom of the file, change the section <code>
- +
-  - bottom, change section +
-<code>+
 <IfModule dir_module> <IfModule dir_module>
     DirectoryIndex index.html     DirectoryIndex index.html
 </IfModule> </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>
-adding after "index.html" also "index.shtml index.php" 
-<note>In "CustomLog section, if you plan to use webalizer, comment "CustomLog ..... common" and uncomment "CustomLog .... combined" strings</note> 
  
-  - comment out string AddHandler cgi-script .cgi +<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> 
-<note>also can comment out virtualhost file, if you want run more than one webserver on your host <code> + 
 +<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 #Include /etc/httpd/extra/httpd-vhosts.conf
-</code></note> +</code></note> 
- +
-  - uncomment php module: +
-  - <code> +
-Include /etc/httpd/mod_php.conf +
- </code> +
- +
- +
-then save the file, and go edit ''/etc/httpd/php.ini'' +
-search for string <code>output_buffering = 4096 </code> +
-and change them to <code>output_buffering = Off </code> +
-then save it, and restart httpd server+
  
 ====== Set Up Joomla 2.5 ====== ====== Set Up Joomla 2.5 ======
-  - Download Joomla [[http://www.joomla.org/download.html]], Full package, zip +  - Download Joomla tarball at [[http://www.joomla.org/download.html]], choose the "//Full package, Zip//" archive. 
-  - make a folder with name as it configured in httpd.conf "/srv/httpd/htdocs" +  -  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
-<Directory "/srv/httpd/htdocs"> direcrives, say, beautifulsite.comunder /serv/httpd. in result we must have /srv/httpd/beautifulsite.com or so+  - Uncompress the joomla zip-file into that directory: <code> 
-  - Uncompress joomla zip file in that folder +root@darkstar:~# unzip Joomla_2.5.9-Stable-Full_Package.zip -d /srv/httpd/htdocs/beautifulsite.com 
-  - do from root terminal <code bash> chown apache:apache -R /srv/httpd/beautifulsite.com</code> +</code> 
-  - now we have do in web browser ( preferably from another computerworkstation) 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....+  - As root, change 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 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 ()