NSLU2-Linux
view · edit · print · history

Introduction

From the WordPress? web page: WordPress? is a state-of-the-art semantic personal publishing platform with a focus on aesthetics, web standards, and usability.

Installation

  1. Run ipkg update to get the latest feeds.
  2. Install mysql
  3. Install Apache and PHP
    • ipkg install apache
    • if you want apache running on Port ‘80’ edit httpd.conf
    • ipkg install php-apache
    • ipkg install php-mysql
    • restart apache by running /opt/etc/init.d/S80apache
  4. If you do not have sendmail installed, disable sendmail in php.ini
    • edit /opt/etc/php.ini
    • comment the line beginning with: "sendmail_path" to "’sendmail_path"
  5. Setting up WordPress? database and username
    • login by typing mysql –u root -p
    • create a new database by typing CREATE DATABASE wordpress;
    • create a user which has full access to the corresponding database GRANT ALL PRIVILEGES ON wordpress.* TO wordpress@localhost IDENTIFIED BY 'new-password';
    • flush the privileges FLUSH PRIVILEGES;
    • Exit mysql EXIT
  6. Install WordPress?
    • download the latest version of WordPress? from http://wordpress.org/download
    • extract everything in a folder under your ‘www’-Directory e.g. /opt/share/www/blog
    • as I was running into some trouble during installation I recommend to disable the mail() – function in the file /your_wordpress_directory/wp-admin/install.php by simply comment the line "@wp_mail" to "//@wp_mail"

NOTE: this solution only works for wordpress 2.06 -evert

NOTE: If you are running apache on a different port than '80' you have to specify it in the URL ‘http://your-ip:your_port/your_wordpress_directory/wp-admin/install.php’

NOTE:prupertplum: I also got wordpress running using Cherokee web server, instead of Apache (Cherokee is apparently less resource hungy than Apache). To do this, just install Cherokee #ipkg install cherokee #ipkg install cherokee-admin and also when installing php, you need to do #ipkg install php php-fcgi # ipkg install libstdc++ instead of installing apache and php-apache. The cherokee-admin is a handy web interface to administer cherokee. Only problem is that cherokee doesn't seem to start automatically on re-boot, but I am sure that is to do with my init.d file. To start the server in the background just type cherokee -d in the terminal. It runs slowly on my slug, but hey, it runs ;)

NOTE: Ater step 3 I had to add the following line to /opt/etc/apache2/httpd.conf to get php working:

Include /opt/etc/apache2/conf.d/*.conf

-Arnout

view · edit · print · history · Last edited by Arnout.
Based on work by prupertplum, evert, and Markus Hühnerbein.
Originally by Markus Hühnerbein.
Page last modified on October 26, 2008, at 12:37 PM