SmallNetBuilder Forums
Go Back   SmallNetBuilder Forums > Wireless Networking > ASUS Wireless > Asuswrt-Merlin

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-12-2013, 12:55 PM
TeHashX's Avatar
TeHashX TeHashX is offline
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 572
Thanks: 134
Thanked 214 Times in 121 Posts
TeHashX is just starting out
Default [TUTORIAL] WordPress Blog Server through Entware

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:

Quote:
# 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
Quote:
mysql> create database wordpress;
mysql> grant all privileges on wordpress.* to user_name@localhost identified by 'db_password' ;
Exit with Ctrl-C
Quote:
# /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:
Quote:
# 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:
Quote:
# 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 by TeHashX; 07-06-2014 at 02:06 PM.
Reply With Quote
The Following 6 Users Say Thank You to TeHashX For This Useful Post:
  #2  
Old 01-15-2013, 02:22 PM
TeHashX's Avatar
TeHashX TeHashX is offline
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 572
Thanks: 134
Thanked 214 Times in 121 Posts
TeHashX is just starting out
Default

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.



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 by TeHashX; 02-19-2013 at 03:02 PM.
Reply With Quote
The Following User Says Thank You to TeHashX For This Useful Post:
  #3  
Old 01-31-2013, 12:56 PM
burtal burtal is offline
Member
 
Join Date: Jan 2013
Location: Bucharest
Posts: 62
Thanks: 11
Thanked 6 Times in 6 Posts
burtal is just starting out
Default

great tutorials TeHashX

i can wait to get my hands on the N66 to apply your teachings
Reply With Quote
  #4  
Old 01-31-2013, 02:17 PM
RMerlin's Avatar
RMerlin RMerlin is offline
Very Senior Member
 
Join Date: Apr 2012
Location: Canada
Posts: 10,000
Thanks: 54
Thanked 5,508 Times in 2,265 Posts
RMerlin is just starting out
Default

Would you be willing to post your tutorials to my Wiki (those that are specific to Asuswrt-Merlin at least)?
__________________
Asuswrt-Merlin: Customized firmware for Asus routers
Github: github.com/RMerl - Twitter: RMerlinDev
See the sticky post for more info.
Reply With Quote
  #5  
Old 01-31-2013, 06:33 PM
christer12 christer12 is offline
New Member
 
Join Date: Dec 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
christer12 is just starting out
Default

Does not seem like I can do it on AC66U? =(
Reply With Quote
  #6  
Old 01-31-2013, 11:22 PM
RMerlin's Avatar
RMerlin RMerlin is offline
Very Senior Member
 
Join Date: Apr 2012
Location: Canada
Posts: 10,000
Thanks: 54
Thanked 5,508 Times in 2,265 Posts
RMerlin is just starting out
Default

Quote:
Originally Posted by christer12 View Post
Does not seem like I can do it on AC66U? =(
No reason why not, the firmware is exactly the same architecture-wise.
__________________
Asuswrt-Merlin: Customized firmware for Asus routers
Github: github.com/RMerl - Twitter: RMerlinDev
See the sticky post for more info.
Reply With Quote
  #7  
Old 02-01-2013, 03:34 AM
TeHashX's Avatar
TeHashX TeHashX is offline
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 572
Thanks: 134
Thanked 214 Times in 121 Posts
TeHashX is just starting out
Thumbs up

Quote:
Originally Posted by RMerlin View Post
Would you be willing to post your tutorials to my Wiki (those that are specific to Asuswrt-Merlin at least)?
Ok, when I get some free time I will
Reply With Quote
  #8  
Old 02-19-2013, 03:00 PM
TeHashX's Avatar
TeHashX TeHashX is offline
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 572
Thanks: 134
Thanked 214 Times in 121 Posts
TeHashX is just starting out
Default

Added email configuration, read the second post
Reply With Quote
  #9  
Old 01-22-2014, 07:09 AM
jixbo jixbo is offline
New Member
 
Join Date: Jan 2014
Posts: 4
Thanks: 8
Thanked 1 Time in 1 Post
jixbo is just starting out
Default

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!
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?
Reply With Quote
The Following User Says Thank You to jixbo For This Useful Post:
  #10  
Old 01-22-2014, 01:11 PM
TeHashX's Avatar
TeHashX TeHashX is offline
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 572
Thanks: 134
Thanked 214 Times in 121 Posts
TeHashX is just starting out
Default

Quote:
Originally Posted by jixbo View Post
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!
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
Reply With Quote
Reply

Tags
asuswrt, blog, entware, free, howto, tutorial, wordpress

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 06:07 AM.


Top 10 Stats
Top Posters* Top Thanked
RMerlin  500
azazel1024  164
stevech  135
KGB7  135
sinshiva  112
hggomes  92
microchip  86
sm00thpapa  82
Kel-L  81
philmiami  81
RMerlin  5507
stevech  322
ryzhov_al  263
TeHashX  214
L&LD  188
RogerSC  187
sinshiva  140
joegreat  123
jlake  122
sfx2000  118
Most Viewed Threads* Hottest Threads*
Old Asuswrt-Merli...  73278
Old Asuswrt-Merli...  58372
Old Asuswrt-Merli...  17532
Old Asus locking...  8802
Old ASUS...  6560
Old [Fork]...  6180
Old Incoming...  5886
Old Asus...  5055
Old NETGEAR...  4604
Old How many of...  4457
Old Asuswrt-Merli...  392
Old Asuswrt-Merli...  389
Old Asuswrt-Merli...  132
Old Asus locking...  125
Old [Fork]...  64
Old Asus...  52
Old NETGEAR...  49
Old ASUS...  48
Old How many of...  47
Old Inherited PC...  45


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2006-2014 Pudai LLC All Rights Reserved.