Install Latest Wordpress On Debian Linux

This weblog is built on the Google Blogger platform. My novel weblog nevertheless volition switch to WordPress, in addition to nearly probable hold upward hosted past times a third-party spider web hosting company. For now, I desire to install WordPress on my dwelling position estimator to hold upward the staging server. This is where I experiment amongst novel ideas earlier I upload the concluding contents to the production WordPress server.

My dwelling position estimator runs Debian seven (aka Wheezy) which includes a WordPress package, albeit a fiddling outdated (3.6.1). This post is an overview of how to install the nearly recent WordPress liberate on Debian Wheezy.

The instructions below assume you lot receive got origin privilege in addition to ascendance trouble access to the server. If you lot are using a spider web hosting company, the instructions volition non apply because the spider web hosting fellowship nearly probable volition render its ain tools (e.g., cPanel).

Software Dependencies

To install in addition to run the latest WordPress release, you lot ask to receive got the next packages already installed.

  • Apache2
  • MySQL5 (version 5.0 or greater)
  • PHP5 (version 5.2.4 or greater)
  • SMTP server (e.g., exim4)

    Although a SMTP server is non required for installation, WordPress cannot ship electronic mail without one.

It turns out that Debian Wheezy already includes the inwards a higher position software packages amongst the proper versions inwards the distribution. You simply ask to ensure that they are installed on your system.

To verify if a bundle is installed, purpose the dpkg ascendance amongst -l parameter.

The next instance indicates that PHP5 is NOT currently installed:

 $ dpkg -l php5* dpkg-query: no packages constitute matching php5* 

If a bundle is already installed, the dpkg output volition await something similar this (edited to fit the screen):

 $ dpkg -l mysql* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name                  Version             Arch    Description +++-=====================-===================-=======-==================================== ii  mysql-client          5.5.31+dfsg-0+wheez all     MySQL database customer (metapackage) ii  mysql-client-5.5      5.5.31+dfsg-0+wheez amd64   MySQL database customer binaries ii  mysql-common          5.5.31+dfsg-0+wheez all     MySQL database mutual files ii  mysql-server          5.5.31+dfsg-0+wheez all     MySQL database server (metapackage) ii  mysql-server-5.5      5.5.31+dfsg-0+wheez amd64   MySQL database server binaries  ii  mysql-server-core-5.5 5.5.31+dfsg-0+wheez amd64   MySQL database server binaries 

Apache2

To install Apache2:

 $ sudo apt-get install apache2 

The Apache module post.

MySQL5

To install MySQL 5:

 $ sudo apt-get install mysql-server mysql-client 

PHP5

To install PHP5 in addition to related modules:

 $ sudo apt-get install php5 php5-mysql php5-gd php5-curl 

Notes:

  • php5-gd is solely required if you lot desire to enable CAPTCHA checking inwards your WordPress deployment.
  • Although php5-curl is non a prerequisite of the WordPress core, it is required past times roughly really pop WordPress plugins such every bit Google Analyticator.

SMTP Server

exim4 is the default SMTP server on Debian wheezy. However, exim4 is configured out of the box for local electronic mail delivery only. Influenza A virus subtype H5N1 after post outlines the steps to configure exim4 to ship electronic mail to external electronic mail servers through Google Gmail.

Install WordPress

  1. Download the latest WordPress tar-ball or aught file from the WordPress spider web site.
  2. Decompress the downloaded file to a temporary place on your difficult drive.

    The examples below decompress the file to /tmp (the tmp sub-directory nether your dwelling position directory).

    For tar-ball:

     $ tar -C  /tmp/ -zxvf latest.tar.gz 

    For aught file:

     $ unzip -d  /tmp/ latest.zip 
  3. Create database in addition to database user.

    The next mysql commands practise a database named wordpress, in addition to a corresponding database user named wp, who has all privileges for the database. Customize amongst your ain database name, user name, in addition to user password.

     $ mysql -u origin -p Enter password:  mysql> CREATE DATABASE wordpress CHARACTER SET utf8; Query OK, 1 row affected (0.01 sec) mysql> GRANT ALL PRIVILEGES ON wordpress.* TO 'wp'@'localhost' IDENTIFIED BY 'REPLACE_WITH_YOUR_USER_PASSWORD'; Query OK, 0 rows affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON wordpress.* TO 'wp'@'%' IDENTIFIED BY 'REPLACE_WITH_YOUR_USER_PASSWORD'; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) 
  4. Create configuration file.

    Rename the sample configuration file.

      $ cd  /tmp/wordpress $ cp wp-config-sample.php wp-config.php 

    Edit /tmp/wordpress/wp-config.php.

    Locate the next lines, in addition to supplant the values amongst your ain values.

     define('DB_NAME', 'wordpress'); define('DB_USER', 'wp'); define('DB_PASSWORD', 'REPLACE_WITH_YOUR_USER_PASSWORD');  define('AUTH_KEY', 'put your unique phrase here'); define('SECURE_AUTH_KEY', 'put your unique phrase here'); define('LOGGED_IN_KEY',   'put your unique phrase here'); define('NONCE_KEY', 'put your unique phrase here'); define('AUTH_SALT', 'put your unique phrase here'); define('SECURE_AUTH_SALT', 'put your unique phrase here'); define('LOGGED_IN_SALT', 'put your unique phrase here'); define('NONCE_SALT', 'put your unique phrase here'); 

    For the safety keys in addition to SALTs, supplant the values amongst long, random strings of gibberish. For instance, something similar t`DK%X:>xy|e-Z(BXb/f(Ur`8# UzUQG-^_Cs_GHs5U-&Wb?pgn^p8(2@}IcnCa| is a skillful choice.

  5. Copy WordPress to the spider web server's document origin directory.

    For Debian Wheezy, the Apache document origin directory is located at /var/www. In the instance below, I position wordpress nether a subdirectory named myblog. The URL of the weblog volition await similar http://localhost/myblog.

     $ sudo mkdir /var/www/myblog $ sudo cp -pr  /tmp/wordpress/*  /var/www/myblog/ 
  6. Change owner/group of WordPress files to the spider web server user.

    To purpose the one-click upgrade characteristic of WordPress after the initial install, the spider web server must hold upward granted the proper file permissions to update the WordPress-related files.

    First, position the user nether which the Apache spider web server executes.

     $ ps aux |grep -i apache ... www-data  7012  0.0  0.1 169576 27472 ?        due south    08:59   0:01 /usr/sbin/apache2 -k get-go ... 

    Then, alter possessor in addition to grouping of WordPress files to that user, www-data.

     $ sudo chown -R www-data:www-data /var/wwww/myblog [sudo] password for peter:  
  7. Run the install script.

    Open a browser, in addition to come inwards this URL:
    http://localhost/myblog/wp-admin/install.php

  8. Fill inwards the information, in addition to click Install.
  9. Login using the credentials you lot simply created.

    The WordPress dashboard appears.

The WordPress spider web site claims that if you lot know what you lot are doing, the install volition receive got solely five minutes. For Debian Wheezy, given that all the pre-requisite software dependencies are already satisfied past times the base of operations distribution, this claim may non hold upward that far from the truth.

Let me know your experience.

Below are my other posts on WordPress:

Berlangganan update artikel terbaru via email:

0 Response to "Install Latest Wordpress On Debian Linux"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel