====== Instalacija WordPress-a na Ubuntu linux distribuciji ======
===== Prelazak u rezim super-usera (root) =====
Da bi ubrzali instalaciju logujemo se kao rook korisnik.\\
sudo su
\\
{{ :wordpress-1.png?nolink& |}}
===== Instalacija apache web servera =====
Prvi korak je instalacija apache web servera\\
apt-get install apache2
\\
Prvi korak u instalaciji apache2 web servera\\
{{ :wordpress-2.png?nolink& | Prvi korak u instalaciji apache2 web servera}}
Potvrda instalacije\\
{{ :wordpress-3.png?nolink& | Potvrda instalacije}}
Download paketa...\\
{{ :wordpress-4.png?nolink& | Download paketa...}}
===== Instalacija mysql servera =====
Sledeci korak instalacija mysql servera\\
apt-get install mysql-server
{{ :wordpress-5.png?nolink& |}}
Potvrda instalacije
{{ :wordpress-6.png?nolink& | Potvrda instalacije}}
Unosimo root lozinku za mysql server\\
{{ :wordpress-7.png?nolink& |}}
Ponavljamo lozinku...\\
{{ :wordpress-8.png?nolink& |}}
===== Instalacija php-a =====
Instaliramo php.\\
apt-get install php5 php5-mysql
{{ :wordpress-9.png?nolink& |}}
Sledeci korak je restart web servera\\
/etc/init.d/apache2 restart
{{ :wordpress-9.png?nolink& |}}
===== Testiranje instalacije =====
echo "" > /var/www/index.php
{{ :wordpress-11.png?nolink& |}}
u web browseru otvaramo\\
http://localhost/index.php
rezultat ...\\
{{ :wordpress-12png.png?nolink& |}}
===== Instalacija wordpress-a =====
Sa http://wordpress.org/download/ skidamo paket instalacije\\
{{ :wordpress-13.png?nolink& |}}
Nakon uspesnog download-a paketa, kopiramo paket u /var/www direktorijum\\
cp /home/aleksandar/Downloads/wordpress-3.3.tar.gz /var/www/
\\
cd /var/www/
\\
ls -la
\\
daje sledeci rezultat\\
{{ :wordpress-14.png?nolink& |}}
raspakujemo paket\\
tar -xzf wordpress-3.3.tar.gz
\\
i trebalo bi da dobijemo ovakav listing\\
{{ :wordpress-15.png?nolink& |}}
===== Kreiranje mysql korisnika =====
Logujemo se se na mysql server\\
mysql -uroot -pxxxx
//xxxx// - lozinka koju smo uneli pri instalaciji\\
nakon uspesne prijavi kreiramo korisnika\\
CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'xxxx';
//xxxx// lozinka\\
{{ :wordpress-16.png?nolink& |}}
kreiramo bazu podataka za wordpress
CREATE DATABASE IF NOT EXISTS `wordpress` ;
{{ :wordpress-17.png?nolink& |}}
podesavamo privilegije
GRANT USAGE ON * . * TO 'wordpress'@'localhost' IDENTIFIED BY 'xxx' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
//xxx// lozinka
GRANT ALL PRIVILEGES ON `wordpress` . * TO 'wordpress'@'localhost';
//xxx// lozinka
Kreiramo konfiguracioni fajl /var/www/wordpress/wp-config.php sa sledecim sadrzajem
');
define('LOGGED_IN_KEY', '|dyDu_-B+8N|WT#hVVGL=a[-kU<_=j-*;C#nP%fFZcN*6Yx$Y:x>H#e#kJAY,!0K');
define('NONCE_KEY', 'L% %MP~nQ.ZI50-]K{^Z}9],|a,0P|=E+Yu@3j*46s-%BcBs5Y_s}~a;b1Zj6a-b');
define('AUTH_SALT', '][7WZ#0G#=%DO`6(uGhzR+3&urU7yzUQSSb?@+m-NzN}}-GZ-+kgdykk#.l|hO0)40YwSIz9va$V^$>%-VBaG&7|Jj|=;;v]v|Fk9,eFR&I$@!gs{-(:');
define('LOGGED_IN_SALT', '!>7i7B$029@G_(&T|b-tsWjJKB-=2WXiXj_,Hkrx+x6$j&I2X#g@#5ku-wp`+zvK');
define('NONCE_SALT', '!iJF4$RQ%gC57s(bxp3F7>s0-b+S*,C`Rq+A$V njNp%$2MVS]k0Z|~Y#~*[ZzU;');
/**#@-*/
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
/**
* WordPress Localized Language, defaults to English.
*
* Change this to localize WordPress. A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
* language support.
*/
define('WPLANG', '');
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', false);
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
Pokrecemo instalaciju
http://localhost/wordpress/wp-admin/install.php
{{ :wordpress-21.png?nolink& |}}
Zavrsni korak
{{ :wordpress-22.png?nolink& |}}
Kraj...
[[aleksandar.atanasijevic| Povratak]]