What's new

[TUTORIAL] WordPress Blog Server through Entware

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

TeHashX

Very Senior Member
New site with updated guide



Today, I'm gonna show you how to setup Wordpress free blog server on your asuswrt router.
REQUIREMENTS:
1) Merlin's firmware from here
2) Entware must be setup from here
3) Lighttpd web server from this guide

If you meet all the requirements, login to router with putty terminal and enter:

# opkg install mysql-server
# opkg install wget
# opkg install php5-mod-mysql
# mysql_install_db --force
# /opt/etc/init.d/S70mysqld restart
# mysql -u root
Choose a username and a password for your database and replace those in red color
mysql> create database wordpress;
mysql> grant all privileges on wordpress.* to user_name@localhost identified by 'db_password' ;
Exit with Ctrl-C
# /opt/etc/init.d/S80lighttpd restart
# cd /opt/share/www
# /opt/bin/wget http://wordpress.org/latest.tar.gz --no-check-certificate && tar -zxvf latest.tar.gz && rm latest.tar.gz
# chown -R admin: wordpress
Go to 192.168.1.1:81/wordpress/wp-admin/install.php
Click on "Create a Configuration File"
On the next page click on "Let's go!"
Now fill in with user_name and db_password created earlier with mysql commands.
Change Database Host from localhost to 127.0.0.1
Press "Submit"
On the next page, click on "Run the install"
Now choose a Site Title, username, password (don't have to be the same as for mysql), enter your email adress, and press "Install WordPress"
Log in
Customize appearance, add widgets, menus, plugins...
Now access your blog on 192.168.1.1:81/wordpress to see how it looks.
Create an asus, no-ip or dyndns dynamic dns account and the blog can be accessed from your_dns_account/wordpress or your_wan_ip_adress/wordpress
_________________________________________________________
It's better to create a backup of your blog and mysql database with:
# cd /mnt/sda1
# tar -zcvf wordpress.tar.gz /mnt/sda1/entware/share/www/wordpress/
# tar -zcvf wordpress_db.tar.gz /mnt/sda1/entware/etc/mysql/wordpress
If something goes wrong, just restore with:
# cd /
# tar -zxvf /mnt/sda1/wordpress.tar.gz
# tar -zxvf /mnt/sda1/wordpress_db.tar.gz

I hope everything goes smoothly for you, if not, don't hesitate to ask here in forum.

See HERE a terminal recording

Youtube video HERE

Enter here and say HALLO on my test blog just to see if someone is reading this tutorial, THX!
http://tehashx.dyndns.org/wordpress/
 
Last edited:
We need a smtp email account for sending automatically email notifications every time a new user register, a post is awaiting moderation, password recovery...
If you don't have one, we can use JangoSmtp, it offers 200 free emails per month, just signup for a new account, go to Settings / Advanced / From Addresses and add a "from address" like blog@wordpress.com or wordpress@blog.com, anythink you wish.

i1iu5w.png


Login to your wordpress server
Go to Plugins / Add New / Search for "WP-Mail-SMTP" and install it
Edit WP-Mail-SMTP settings and input
From Email - your-jangosmtp-fromaddress
Mailer - Send all WordPress emails via SMTP
SMTP Host - relay.jangosmtp.net
SMTP Port - 587 or 25
Encryption - No encryption
Authentication - Yes: Use SMTP authentication
Username - your-jangosmtp-username
Password - your-jangosmtp-password
Save changes and press "send test" email, soon you should receive a email with this text: This is a test email generated by the WP Mail SMTP WordPress plugin.
 
Last edited:
Would you be willing to post your tutorials to my Wiki (those that are specific to Asuswrt-Merlin at least)?
 
This line saved my life: "Change Database Host from localhost to 127.0.0.1"
haha
Thank you man!! so useful, I should invite you a beer sometime! :D
BTW, is not so fluent on my asus AC66U, it was great just for fun, but probably not usefull. Is it working fine in some other router?
 
This line saved my life: "Change Database Host from localhost to 127.0.0.1"
haha
Thank you man!! so useful, I should invite you a beer sometime! :D
BTW, is not so fluent on my asus AC66U, it was great just for fun, but probably not usefull. Is it working fine in some other router?

Probably on dual-core routers like rt-ac68u runs better but should be installed from optware

Sent from my HTC One using Tapatalk
 
TeHashX,

Thanks for your clear tutorials - they are great!

I'm stuck however at the point where you configure WP.

When I go to localhost:81/wordpress/wp-admin/install.php, I see this error:
Fatal error: Out of memory (allocated 1310720) (tried to allocate 36 bytes) in /tmp/mnt/sda1/entware/share/www/wordpress/wp-includes/plugin.php on line 86

I've played around with numerous memory settings (php.ini, wp-config.php, .htaccess) and even started from scratch again. I cannot seem to get around this error. I'm on an RT-N16, and top shows that I have at least 26MB free.

Any ideas?
 
TeHashX,

Thanks for your clear tutorials - they are great!

I'm stuck however at the point where you configure WP.

When I go to localhost:81/wordpress/wp-admin/install.php, I see this error:
Fatal error: Out of memory (allocated 1310720) (tried to allocate 36 bytes) in /tmp/mnt/sda1/entware/share/www/wordpress/wp-includes/plugin.php on line 86

I've played around with numerous memory settings (php.ini, wp-config.php, .htaccess) and even started from scratch again. I cannot seem to get around this error. I'm on an RT-N16, and top shows that I have at least 26MB free.

Any ideas?
Reboot router
 
I disabled miniDLNA and rebooted. I have at least 54MB free now.

But I still get the error(s) - they change slightly every few refreshes.
Fatal error: Out of memory (allocated 4194304) (tried to allocate 7168 bytes) in /tmp/mnt/sda1/entware/share/www/wordpress/wp-includes/comment.php on line 1626
Fatal error: Out of memory (allocated 3932160) (tried to allocate 1792 bytes) in /tmp/mnt/sda1/entware/share/www/wordpress/wp-includes/post-formats.php on line 197
Fatal error: Out of memory (allocated 3407872) (tried to allocate 1792 bytes) in /tmp/mnt/sda1/entware/share/www/wordpress/wp-includes/post.php on line 1296
 
I spoke too soon.

It appears that WordPress 4.0 makes use of the php-hash module.

I tried installing
opkg install php5-mod-hash​

But that doesn't seem to help.

Anyone have any ideas?
 
I'm trying to install mysql-server, but it replaced by mariadb-server. how to fix it?

admin@AC68U:/tmp/home/root# opkg install mysql-server

Installing mariadb-server (5.5.57-1) to root...

Downloading http://pkg.entware.net/binaries/armv7/mariadb-server_5.5.57-1_armv7soft.ipk

Installing libmariadb (5.5.57-1) to root...

Downloading http://pkg.entware.net/binaries/armv7/libmariadb_5.5.57-1_armv7soft.ipk

Installing libncurses (6.0-1c) to root...

Downloading http://pkg.entware.net/binaries/armv7/libncurses_6.0-1c_armv7soft.ipk

Installing libncursesw (6.0-1c) to root...

Downloading http://pkg.entware.net/binaries/armv7/libncursesw_6.0-1c_armv7soft.ipk

Installing libreadline (7.0-1) to root...

Downloading http://pkg.entware.net/binaries/armv7/libreadline_7.0-1_armv7soft.ipk

Installing resolveip (2) to root...

Downloading http://pkg.entware.net/binaries/armv7/resolveip_2_armv7soft.ipk
 
Segmentation fault

Installation of system tables failed! Examine the logs in
/opt/var/mysql for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

my.cnf
 
I managed to install wordpress (except XML-RPC). But now I have a problem, if I start lighttpd it doesn't work aicloud
 
Similar threads

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top