WordPress: Difference between revisions

From Alpine Linux
(Created page with '== Set up WordPress on Alpine Linux == This document will be a quick c/p guide to setup WordPress on Alpine linux. What we will setup is the following: * Lighttpd with PHP * M...')
 
No edit summary
Line 39: Line 39:


  /etc/init.d/lighttpd start && rc-update add lighttpd default
  /etc/init.d/lighttpd start && rc-update add lighttpd default
   
   
== Config MySql ==
== Config MySql ==
Line 64: Line 63:
   click on: "Create a Configuration File"
   click on: "Create a Configuration File"
   click on: "Let’s go!"
   click on: "Let’s go!"


   Database Name: wordpress
   Database Name: wordpress

Revision as of 16:40, 15 July 2010

Set up WordPress on Alpine Linux

This document will be a quick c/p guide to setup WordPress on Alpine linux. What we will setup is the following:

  • Lighttpd with PHP
  • MySql
  • WordPress

Install lighttpd, PHP, and MySql

apk add nano php php-mysql mysql mysql-client lighttpd

Configuring Lighttpd

Edit lighttpd.conf

nano +46 /etc/lighttpd/lighttpd.conf

Uncomment line:

uncoment    include "mod_fastcgi.conf", save and exit

Installing and configuring WordPress

Install WordPress

Download

 cd /var/www/localhost/htdocs/
 wget http://wordpress.org/latest.tar.gz

Unpack

 tar -xzvf latest.tar.gz
  

Starting

Starting http and sql server and adding to boot

/etc/init.d/lighttpd start && rc-update add lighttpd default

Config MySql

/usr/bin/mysql_install_db --user=mysql /etc/init.d/mysql start && rc-update add mysql default /usr/bin/mysqladmin -u root password 'password'

Create the WordPress database

mysql -u root -p 'password'

CREATE DATABASE wordpress; GRANT ALL PRIVILEGES ON wordpress.* TO "root"; FLUSH PRIVILEGES; EXIT

Config your WordPress

Browse

http://WEBSERVER_IP_ADDRESS/WordPress/

 click on: "Create a Configuration File"
 click on: "Let’s go!"
 Database Name:	wordpress
 User Name:		root
 Password:		the MySQL password
 Database Host: 	localhost
 Table Prefix:	wp_
 You may need create the wp-config.php manually then copy and paste the following text into it.
 After you've done that, click "Run the install."
 Enter Information needed
 Site Title
 Username
 Password, twice
 Your E-mail

After you've done that, click "Install WordPress"

You have WordPress working, to access go to http://WEBSERVER_IP_ADDRESS/wordpress and enjoy!