Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2013-11-26 10:11:15
Size: 2976
Comment: Created page
Revision 5 as of 2013-11-26 21:05:45
Size: 3244
Editor: GeoffSimmons
Comment: Use header from DefaultTemplate, add ToC, InterWiki, formatting.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= WordPress = #language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~
----
WordPress is a free and open source (GNU GPLv2 or later) blogging tool and a content management system (CMS) based on PHP and MySQL. Features include a plug-in architecture and a template system.
Line 3: Line 6:
[[http://wordpress.org/|Home Page]]

WordPress is a free and open source (GNU GPLv2 or later) blogging tool and a content management system (CMS) based on PHP and MySQL.Features include a plug-in architecture and a template system.
<<TableOfContents(3)>>
Line 9: Line 10:
{{{# apt-get install wordpress curl apache2 mysql-server}}} {{{
# apt-get install wordpress curl apache2 mysql-server}}}
Line 15: Line 17:
{{{# nano /etc/apache2/sites-available/wp}}} {{{
# nano /etc/apache2/sites-available/wp}}}
Line 37: Line 40:
{{{# a2ensite wp}}} {{{
# a2ensite wp}}}
Line 41: Line 45:
{{{# service apache2 reload}}} {{{
# service apache2 reload}}}
Line 45: Line 50:
{{{# nano /etc/wordpress/config-dev.php}}} {{{
# nano /etc/wordpress/config-dev.php}}}
Line 58: Line 64:
'''NOTE:'''replace `password` with a suitably secure password
Line 60: Line 68:
{{{# nano ~/wp.sql}}} {{{
# nano ~/wp.sql}}}
Line 72: Line 81:
'''NOTE:''' replace `password` with a suitably secure password '''NOTE:''' replace `password` with your "suitably secure password"
Line 76: Line 85:
{{{# cat ~/wp.sql | mysql --defaults-extra-file=/etc/mysql/debian.cnf}}} {{{
# cat ~/wp.sql | mysql --defaults-extra-file=/etc/mysql/debian.cnf}}}
Line 79: Line 89:
`http://debianwordpress.dev/wp` which redirects to `http://debianwordpress.dev/wp/wp-admin/install.php` where you'll see the "classic" wordpress 5 minute install page (actually a 5 second install thanks to the Debian packagers [[http://packages.qa.debian.org/w/wordpress.html|Giuseppe Iuculano and Raphaël Hertzog]]) `http://debianwordpress.dev/wp` which redirects to `http://debianwordpress.dev/wp/wp-admin/install.php` where you'll see the "classic" wordpress 5 minute install page (actually a 5 second install thanks to the Debian packagers [[DebianPts:wordpress|Giuseppe Iuculano and Raphaël Hertzog]])

'''NOTE:''' replace `debianwordpress.dev` with your domain name (or `localhost` if running on the same box as your browser).
Line 82: Line 94:
Upgrading WordPress, plugins and themes, as well as installing them is the same process with the Debian package as with the upstream installer.
Line 84: Line 95:
 ---- Upgrading WordPress, plugins and themes, as well as installing them is the same process with the Debian package as with the upstream installer (trivial).
Line 86: Line 97:
See also:-
 * [[LaMp]]

 ----

Additional references:-
 * [[http://codex.wordpress.org/Main_Page|WordPress Online Documentation]]
== See also ==
Line 95: Line 100:
 * [[LaMp|LAMP]]

== External links ==
 * http://wordpress.org/ - Home Page
 * http://codex.wordpress.org/ - WordPress Online Documentation

Translation(s): none


WordPress is a free and open source (GNU GPLv2 or later) blogging tool and a content management system (CMS) based on PHP and MySQL. Features include a plug-in architecture and a template system.

Basic Installation guide for Wheezy

# apt-get install wordpress curl apache2 mysql-server

Set the mysql admin root user password when prompted

Create a site

# nano /etc/apache2/sites-available/wp

Add this content:-

        Alias /wp /usr/share/wordpress
        Alias /wp/wp-content /var/lib/wordpress/wp-content
        <Directory /usr/share/wordpress>
            Options FollowSymLinks
            AllowOverride Limit Options FileInfo
            DirectoryIndex index.php
            Order allow,deny
            Allow from all
        </Directory>
        <Directory /var/lib/wordpress/wp-content>
            Options FollowSymLinks
            Order allow,deny
            Allow from all
        </Directory>

Enable the site

# a2ensite wp

Restart the webserver

# service apache2 reload

Create /etc/wordpress/config-$DM.php (where $DM is the domain name e.g. if the fully qualified domain name is debianwordpress.dev create /etc/wordpress/config-dev.php)

# nano /etc/wordpress/config-dev.php

Add this content:-

   1 <?php
   2 define('DB_NAME', 'wordpress');
   3 define('DB_USER', 'wordpress');
   4 define('DB_PASSWORD', 'password');
   5 define('DB_HOST', 'localhost');
   6 define('WP_CONTENT_DIR', '/var/lib/wordpress/wp-content');
   7 ?>

NOTE:replace password with a suitably secure password

Create a file to hold the database creation instructions

# nano ~/wp.sql

Add this content:-

   1 CREATE DATABASE wordpress;
   2 GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER
   3 ON wordpress.*
   4 TO wordpress@localhost
   5 IDENTIFIED BY 'password';
   6 FLUSH PRIVILEGES;

NOTE: replace password with your "suitably secure password"

Create the database:-

# cat ~/wp.sql | mysql --defaults-extra-file=/etc/mysql/debian.cnf

Navigate to the wordpress directory in browser e.g.:- http://debianwordpress.dev/wp which redirects to http://debianwordpress.dev/wp/wp-admin/install.php where you'll see the "classic" wordpress 5 minute install page (actually a 5 second install thanks to the Debian packagers Giuseppe Iuculano and Raphaël Hertzog)

NOTE: replace debianwordpress.dev with your domain name (or localhost if running on the same box as your browser).

At time of writing this provides WordPress v3.6.1

Upgrading WordPress, plugins and themes, as well as installing them is the same process with the Debian package as with the upstream installer (trivial).

See also

  • Sample configurations can be found in /usr/share/doc/wordpress/examples/

  • Debian specific instructions are /usr/share/doc/wordpress/README.Debian

  • LAMP