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 online now
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 264
Thanks: 66
Thanked 88 Times in 55 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 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
# wget http://wordpress.org/latest.tar.gz && 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; 03-14-2013 at 06:19 AM.
Reply With Quote
The Following 4 Users Say Thank You to TeHashX For This Useful Post:
  #2  
Old 01-15-2013, 02:22 PM
TeHashX's Avatar
TeHashX TeHashX is online now
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 264
Thanks: 66
Thanked 88 Times in 55 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
New Member
 
Join Date: Jan 2013
Location: Bucharest
Posts: 17
Thanks: 6
Thanked 1 Time in 1 Post
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: 3,672
Thanks: 27
Thanked 1,591 Times in 774 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: 3,672
Thanks: 27
Thanked 1,591 Times in 774 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 online now
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 264
Thanks: 66
Thanked 88 Times in 55 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 online now
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 264
Thanks: 66
Thanked 88 Times in 55 Posts
TeHashX is just starting out
Default

Added email configuration, read the second post
Reply With Quote
Reply

Tags
asuswrt, blog, entware, free, 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 08:11 AM.

Top 10 Stats
Top Posters* Top Thanked
RMerlin  273
coxhaus  115
stevech  104
Fraoch  44
Mark Uhde  35
tipstir  35
RogerSC  32
vdemarco  32
Pericynthion  28
CaptainSTX  27
RMerlin  1591
stevech  145
ryzhov_al  105
TeHashX  88
RogerSC  71
GregN  54
Geraner  44
CL-Jeremy  42
joegreat  39
sfx2000  34
Most Viewed Threads* Hottest Threads*
Old Asuswrt-Merli...  11591
Old IPv6 not...  2078
Old RT-N66U...  1844
Old 2GHz...  1749
Old DLNA Media...  1316
Old AC 5ghz...  1291
Old Article: Why...  1283
Old 270 Firmware...  1206
Old Is this...  1172
Old what does...  1158
Old Asuswrt-Merli...  79
Old IPv6 not...  45
Old Two DHCP...  28
Old RT-N66U...  27
Old DLNA Media...  22
Old Information...  19
Old Inaccuracy -...  19
Old VPN and...  19
Old How to...  18
Old Is my cable...  18





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