Both sides previous revisionPrevious revisionNext revision | Previous revision |
howtos:network_services:joomla [2013/02/14 13:54 (UTC)] – Cleaned up the Apache section. 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 |
---|
- 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. |
<Directory "/srv/httpd/htdocs"> | <Directory "/srv/httpd/htdocs"> |
</code> and change both values from "/srv/httpd/htdocs" to "/srv/httpd/beautifulsite.com". | </code> and change both values from "/srv/httpd/htdocs" to "/srv/httpd/beautifulsite.com". |
- Next, look at below section: <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", |
- Uncomment the php module: <code> | - Uncomment the php module: <code> |
Include /etc/httpd/mod_php.conf | Include /etc/httpd/mod_php.conf |
</code> and save the file. | </code> |
| -following modules must be uncommented:<code> |
| |
| LoadModule authn_file_module lib64/httpd/modules/mod_authn_file.so |
| LoadModule authn_core_module lib64/httpd/modules/mod_authn_core.so |
| LoadModule authz_host_module lib64/httpd/modules/mod_authz_host.so |
| 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''" | - 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> | - Search for string <code>output_buffering = 4096 </code> and change them to <code>output_buffering = Off </code> |
<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>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>In ''/etc/httpd/httpd.conf'', you can comment out the VirtualHost configuration, if you intend run only 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> |
</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 ====== |