NSLU2-Linux
view · edit · print · history

HowTo.HowToRunWordPressOnTheSlug History

Hide minor edits - Show changes to markup

October 26, 2008, at 12:37 PM by Arnout -- howto get php working by editing httpd.conf
Changed lines 34-40 from:

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 ;)

to:

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

June 27, 2008, at 10:03 AM by prupertplum -- added details about using cherokee instead of apache
Added lines 33-34:

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 ;)

January 30, 2007, at 05:38 PM by evert --
Changed lines 27-29 from:

NOTE: this solution only works for wordpress 2.06

  • -evert
to:

NOTE: this solution only works for wordpress 2.06 -evert

January 30, 2007, at 05:36 PM by evert --
Changed lines 28-29 from:

-evert

to:
  • -evert
January 30, 2007, at 05:36 PM by evert --
Added lines 27-29:

NOTE: this solution only works for wordpress 2.06 -evert

January 09, 2006, at 02:20 PM by Markus Hühnerbein --
Changed lines 16-18 from:
  • comment the line beginning with: sendmail_path to ’sendmail_path
  1. Setting up wordpress database and user
    • login to your mysql database by typing mysql –u root -p
to:
  • comment the line beginning with: "sendmail_path" to "’sendmail_path"
  1. Setting up WordPress? database and username
    • login by typing mysql –u root -p
Changed lines 23-24 from:
  1. Install wordpress
    • download the latest version of wordpress http://wordpress.org/download
to:
  1. Install WordPress?
    • download the latest version of WordPress? from http://wordpress.org/download
Changed line 26 from:
  • 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
to:
  • 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"
Changed lines 29-30 from:

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’

to:

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’

January 09, 2006, at 01:46 PM by Markus Hühnerbein --
Changed line 17 from:
  1. Setting up wordpress database user and table
to:
  1. Setting up wordpress database and user
Added line 22:
  • Exit mysql EXIT
Changed line 24 from:
  • download the latest version of wordpress download
to:
  • download the latest version of wordpress http://wordpress.org/download
January 09, 2006, at 01:24 PM by Markus Hühnerbein --
Changed line 3 from:
to:

Installation

Deleted line 4:
Changed line 23 from:
  • download the latest version of wordpress http://wordpress.org/download/
to:
  • download the latest version of wordpress download
Changed lines 27-28 from:
  • open your browser and enter http://your-ip/your_wordpress_directory/wp-admin/install.php and follow the instructions. If you are running apache on a different port than 80 you have to specify it in the URL of course e.g. ‘http://192.168.100.77:8080/blog/wp-admin/install.php’
to:
  • open your browser and enter http://your-ip/your_wordpress_directory/wp-admin/install.php and follow the instructions.

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’

January 09, 2006, at 12:52 PM by Markus Hühnerbein --
Added lines 1-28:

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.

  1. Run ipkg update to get the latest feeds.
  2. Install mysql
    • ipkg install mysql
    • if you don’t know how to set the root password you can change it as described in the mysql-section http://www.nslu2-linux.org/wiki/Unslung/MySQL after installation
  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 user and table
    • login to your mysql database 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;
  6. Install wordpress
    • download the latest version of wordpress 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
    • edit wp-config-sample.php, insert your database details and save the file as wp-config.php
    • open your browser and enter http://your-ip/your_wordpress_directory/wp-admin/install.php and follow the instructions. If you are running apache on a different port than 80 you have to specify it in the URL of course e.g. ‘http://192.168.100.77:8080/blog/wp-admin/install.php’
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