Package:Wordpress

From Funtoo
Revision as of 06:34, September 21, 2014 by Threesixes (talk | contribs) (import from gentoo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Wordpress

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Wordpress is a blog web-server-stack application content management system.

   Warning

this page is out of date and designed for the dso php handler

Install

root # emerge wordpress

MySQL

To create a database for wordpress to interact with:

root # mysql -u root -p
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

Configure WordPress to interact with the database created. (generate goodies for this file with https://api.wordpress.org/secret-key/1.1/salt/) Template:RootCmd

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 password.

Administration & Use

Administer your WordPress @ http://localhost/wordpress/wp-admin/

Your shiny new blog is located @ http://localhost/wordpress/

Plugins & Themes & Images

Wordpress is a bit of a permissions nightmare. Themes and plugins will ask for ftp access due to permission problems. For now Threesixes (talk) is getting around it by.

Fix permissions to enable uploading content such as banners:

root # chown apache:apache /var/www/localhost/htdocs/wordpress/wp-content

Fix permissions to enable themes, and plugins:

root # chown -R apache:apache /var/www/localhost/htdocs/wordpress/wp-admin/
root # chown -R apache:apache /var/www/localhost/htdocs/wordpress/wp-includes/
root # chown -R apache:apache /var/www/localhost/htdocs/wordpress/wp-content/

This clearly is breaking the security of the webapp. To "restore" security once all is set how you want it.

root # chown -R root:root /var/www/localhost/htdocs/wordpress

This is probably not enough, and probably not correct.