Difference between pages "Package:Wordpress" and "MATE Desktop Environment"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
m (put notices that wordpress has hidden admin levels assigned to the first registered account.)
 
 
Line 1: Line 1:
{{Ebuild
== Setting up MATE profile ==
|Summary=Wordpress php and mysql based content management system (CMS)
As many of you have read recently, we have brought MATE into our main tree. Which can be added via profile mix-in. It is simple to do so:
|CatPkg=www-apps/wordpress
<console>
|Maintainer=
# ##i## eselect profile set-flavor funtoo/1.0/linux-gnu/flavor/desktop
|Homepage=http://wordpress.org/
# ##i## eselect profile add  funtoo-overlay:funtoo/1.0/linux-gnu/mix-ins/mate
}}
# ##i##emerge -uDNa @world
Wordpress is a blog [[web-server-stack]] application content management system.  Wordpress powers much of the internet, and can be converted into several other systems. Wordpress can be a blog, forum, bug tracker, social media platform, or even a web store.  There are several plugins available, and it has a large community backing it.
</console>
 
== MATE set ==
== Install ==
MATE desktop set require manual step as described below
<console>###i## emerge wordpress</console>
<console>
 
# ##i##install -d /etc/portage/sets/
=== Nginx Server Configuration ===
# ##i##cp /usr/portage/sets/mate /etc/portage/sets
Nginx does not respect the .htaccess files generated by wordpress.  To manually insert url rewrite rules:
# ##i##emerge @mate
 
</console>
{{file|name=/etc/nginx/sites-available/localhost|lang=|desc=nginx rewrite rules|body=
You're good to go!
        location /wordpress {
                try_files $uri $uri/ /wordpress/index.php?$args;
        }
}}
 
More information can be found here: http://wiki.nginx.org/WordPress
 
=== Permission Adjustments ===
{{note| if using nginx change permissions to nobody:nobody instead of apache:apache}}
==== Plugins, Themes & Images ====
Wordpress needs some directories to be run under the webserver or php-fpm user for uploading images, and installing themes & plugins.
 
Fix permissions to enable uploading content such as banners:
<console>###i## chown apache:apache /var/www/localhost/htdocs/wordpress/wp-content</console>
 
Fix permissions to enable themes, and plugins:
<console>###i## chown -R apache:apache /var/www/localhost/htdocs/wordpress/wp-admin/
###i## chown -R apache:apache /var/www/localhost/htdocs/wordpress/wp-includes/
###i## chown -R apache:apache /var/www/localhost/htdocs/wordpress/wp-content/</console>
 
==== Security ====
<code>/var/www/localhost/htdocs/wordpress/wp-config.php</code> contains plaintext sql database passwords.  we should change the permissions to lock this file down.
 
<console>###i## chmod 640 /var/www/localhost/htdocs/wordpress/wp-config.php
###i## chown apache:apache /var/www/localhost/htdocs/wordpress/wp-config.php</console>
 
=== MySQL ===
{{warning|default "changeme" passwords are insecure, change them!}}
 
To create a database for wordpress to interact with:
 
<console>###i## mysql -u root -p</console>
 
<pre>
mysql> CREATE DATABASE IF NOT EXISTS `wordpress` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
mysql> CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'changeme';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `wordpress`.* TO 'wordpress'@'localhost' IDENTIFIED BY 'changeme';
mysql> \q
</pre>
 
{{file|name=/var/www/localhost/htdocs/wordpress/wp-config.php|lang=php|desc=insert database information|body=
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'wordpress');
/** MySQL database password */
define('DB_PASSWORD', 'changeme');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
}}
 
acquire your own salts and insert them into your configuration file.  https://api.wordpress.org/secret-key/1.1/salt/
 
{{file|name=/var/www/localhost/htdocs/wordpress/wp-config.php|lang=php|desc=add a salt|body=
define('AUTH_KEY',        '5%#gO!G+miM;(Jt8U^12SAh');
define('SECURE_AUTH_KEY',  'hJ~Hi:(R/:^l$M;(Vfp:+04$A');
define('LOGGED_IN_KEY',    'f^%jl;[9~8],LA^Eq]-5*');
define('NONCE_KEY',        '&IX,NkKM;M;(Jt(Jt8U^j;(m7');
define('AUTH_SALT',        'TX^29j/P7[q0GhM;(Jt8U^-ug&mh');
define('SECURE_AUTH_SALT', '<p@0$;jThph,2M6e8i<UAW=');
define('LOGGED_IN_SALT',  'O0TY<>%eIAs/=;O&7@LkhxduYhg6');
define('NONCE_SALT',      'VQ^-BR7YM;(Jt8U^D4ZRMY#[');
}}
 
Database and database user are "wordpress" and passwords are what you set in your mysql database generation step. (changeme fields)
 
== 5 minute installer ==
Point your browser @ http://localhost/wordpress/
 
Name your website, and make a default administrator username, and password.
 
{{important|Wordpress has hidden admin levels assigned to the first registered account.  Make sure you leave it as a generic admin account.}}
 
== Administration & Use ==
Administer your WordPress @ http://localhost/wordpress/wp-admin/
 
Your shiny new blog is located @ http://localhost/wordpress/
 
Your new blogs rss feed is located @ http://localhost/wordpress/feed/
 
=== Suggested Themes ===
* Responsive
 
=== Suggested Plugins ===
* Add Meta Tags
* Disqus Comment System
* Google XML Sitemaps
* Share Buttons by AddToAny
* WooCommerce
* Wordfence Security
* YouTube widget responsive
 
== Media ==
{{#widget:YouTube|playlist=PLpcSpRrAaOaqMA4RdhSnnNcaqOVpX7qi5}}
 
{{EbuildFooter}}

Revision as of 13:22, November 21, 2014

Setting up MATE profile

As many of you have read recently, we have brought MATE into our main tree. Which can be added via profile mix-in. It is simple to do so:

root #  eselect profile set-flavor funtoo/1.0/linux-gnu/flavor/desktop
root #  eselect profile add  funtoo-overlay:funtoo/1.0/linux-gnu/mix-ins/mate
root # emerge -uDNa @world

MATE set

MATE desktop set require manual step as described below

root # install -d /etc/portage/sets/
root # cp /usr/portage/sets/mate /etc/portage/sets
root # emerge @mate

You're good to go!