Both sides previous revisionPrevious revisionNext revision | Previous revision |
howtos:network_services:joomla [2013/02/14 13:09 (UTC)] – [Set Up Joomla 2.5] Style and grammar fixes. alienbob | howtos:network_services:joomla [2015/06/26 20:39 (UTC)] (current) – [Configure Apache Webserver] Removed empty line removing a space after <code> at EOL. didierspaier |
---|
* 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> |
- Do as root <code bash> mysql_secure_installation </code>, and set mysql root password ( and write it down or remember), and choose all default answers | - Do as root <code bash> mysql_secure_installation </code>, and set mysql root password ( and write it down or remember), and choose all default answers |
- After that, do <code bash> mysql -u root -p </code> after write user password, be in mysql>. write <code> CREATE USER 'joomla_db_username'@'localhost' IDENTIFIED BY 'joomla_db_user_password'; </code>, 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. | - After that, do <code bash> mysql -u root -p </code> after write user password, be in mysql>. write <code> CREATE USER 'joomla_db_username'@'localhost' IDENTIFIED BY 'joomla_db_user_password'; </code>, 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. |
- write <code> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON yourdatabasename_for_joomla.* to 'joomla_db_username'@'localhost'; </code> | - write <code> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER ON yourdatabasename_for_joomla.* to 'joomla_db_username'@'localhost'; </code> |
- after that do <code> FLUSH PRIVILEGES;</code> and then <code> quit</code> | - after that do <code> FLUSH PRIVILEGES;</code> and then <code> quit</code> |
- 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 |
</Directory> | </Directory> |
</code> | </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> |
- Then, changes ''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: |
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> | </code> |
adding after "index.html" also "index.shtml index.php" | -following modules must be uncommented:<code> |
<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 | LoadModule authn_file_module lib64/httpd/modules/mod_authn_file.so |
<note>also can comment out virtualhost file, if you want run more than one webserver on your host <code> | LoadModule authn_core_module lib64/httpd/modules/mod_authn_core.so |
#Include /etc/httpd/extra/httpd-vhosts.conf | LoadModule authz_host_module lib64/httpd/modules/mod_authz_host.so |
</code></note> | LoadModule authz_groupfile_module lib64/httpd/modules/mod_authz_groupfile.so |
| LoadModule authz_user_module lib64/httpd/modules/mod_authz_user.so |
| LoadModule authz_core_module lib64/httpd/modules/mod_authz_core.so |
| LoadModule access_compat_module lib64/httpd/modules/mod_access_compat.so |
| LoadModule auth_basic_module lib64/httpd/modules/mod_auth_basic.so |
| LoadModule reqtimeout_module lib64/httpd/modules/mod_reqtimeout.so |
| LoadModule filter_module lib64/httpd/modules/mod_filter.so |
| LoadModule mime_module lib64/httpd/modules/mod_mime.so |
| LoadModule log_config_module lib64/httpd/modules/mod_log_config.so |
| LoadModule env_module lib64/httpd/modules/mod_env.so |
| LoadModule headers_module lib64/httpd/modules/mod_headers.so |
| LoadModule setenvif_module lib64/httpd/modules/mod_setenvif.so |
| LoadModule version_module lib64/httpd/modules/mod_version.so |
| LoadModule proxy_module lib64/httpd/modules/mod_proxy.so |
| LoadModule proxy_connect_module lib64/httpd/modules/mod_proxy_connect.so |
| LoadModule proxy_ftp_module lib64/httpd/modules/mod_proxy_ftp.so |
| LoadModule proxy_http_module lib64/httpd/modules/mod_proxy_http.so |
| LoadModule proxy_fcgi_module lib64/httpd/modules/mod_proxy_fcgi.so |
| LoadModule proxy_scgi_module lib64/httpd/modules/mod_proxy_scgi.so |
| LoadModule proxy_ajp_module lib64/httpd/modules/mod_proxy_ajp.so |
| LoadModule proxy_express_module lib64/httpd/modules/mod_proxy_express.so |
| LoadModule lbmethod_byrequests_module lib64/httpd/modules/mod_lbmethod_byrequests.so |
| LoadModule lbmethod_bytraffic_module lib64/httpd/modules/mod_lbmethod_bytraffic.so |
| LoadModule lbmethod_bybusyness_module lib64/httpd/modules/mod_lbmethod_bybusyness.so |
| LoadModule mpm_event_module lib64/httpd/modules/mod_mpm_event.so |
| LoadModule unixd_module lib64/httpd/modules/mod_unixd.so |
| LoadModule status_module lib64/httpd/modules/mod_status.so |
| LoadModule autoindex_module lib64/httpd/modules/mod_autoindex.so |
| ##openwebmail! |
| LoadModule cgi_module lib64/httpd/modules/mod_cgi.so |
| LoadModule dir_module lib64/httpd/modules/mod_dir.so |
| LoadModule alias_module lib64/httpd/modules/mod_alias.so |
| ### joomla mod_rewrite! |
| Loadmodule rewrite_module lib64/httpd/modules/mod_rewrite.so |
| #for gzip compression, joomla! |
| LoadModule deflate_module lib64/httpd/modules/mod_deflate.so |
| </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> |
| |
- uncomment php module: | <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> |
- <code> | |
Include /etc/httpd/mod_php.conf | |
</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> |
then save the file, and go edit ''/etc/httpd/php.ini'' | #Include /etc/httpd/extra/httpd-vhosts.conf |
search for string <code>output_buffering = 4096 </code> | </code></note> |
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 a Joomla tarball at [[http://www.joomla.org/download.html]], choose the "//Full package, Zip//" arrchive. | - Download a Joomla tarball at [[http://www.joomla.org/download.html]], choose the "//Full package, Zip//" archive. |
- We will install Joomla as the Apache Webserver's //[[http://httpd.apache.org/docs/current/mod/core.html#documentroot|DocumentRoot]]//. Check your "''/etc/httpd/httpd.conf''" for the value of your webserver's DocumentRoot. By default this will be directory "''/srv/httpd/htdocs''". We will have to change that to the Joomla installation directory. \\ Let's say for the sake of this example, that we are setting up Joomla for a host server "%%http://beautifulserver.com/%%". Create a new directory called "''beautifulsite.com''" under "''/srv/httpd/''". Next we have to edit "''/etc/httpd/httpd.conf''" to configure our new DocumentRoot. Search for the two directives <code> | - 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. |
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". Then restart the webserver: <code bash> | |
root@darkstar:~# /etc/rc.d/rc.httpd restart | |
</code> 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> | - 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 | root@darkstar:~# unzip Joomla_2.5.9-Stable-Full_Package.zip -d /srv/httpd/htdocs/beautifulsite.com |
</code> | </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. | - 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. |
| - After that, if you want to use SEO-friendly settings ( URL rewriting), then rename htaccess.txt in your root of current joomla catalog to .htaccess . |
| |
| |
| |
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// | |