[TUTORIAL] WordPress Blog Server through Entware

Discussion in 'Asuswrt-Merlin' started by TeHashX, Jan 12, 2013.

  1. TeHashX

    TeHashX Very Senior Member

    Joined:
    Jul 6, 2012
    Messages:
    760
    Location:
    Europe
    New site with updated guide

    [​IMG]

    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:

    Choose a username and a password for your database and replace those in red color
    Exit with Ctrl-C
    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:
    If something goes wrong, just restore with:
    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
    [​IMG]
    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: Oct 28, 2014
  2. Log in / Register to remove this ad

  3. TeHashX

    TeHashX Very Senior Member

    Joined:
    Jul 6, 2012
    Messages:
    760
    Location:
    Europe
    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.

    [​IMG]

    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: Feb 19, 2013
  4. burtal

    burtal Regular Contributor

    Joined:
    Jan 31, 2013
    Messages:
    74
    Location:
    Bucharest
    great tutorials TeHashX

    i can wait to get my hands on the N66 to apply your teachings :D
     
  5. RMerlin

    RMerlin Part of the Furniture

    Joined:
    Apr 14, 2012
    Messages:
    13,048
    Location:
    Canada
    Would you be willing to post your tutorials to my Wiki (those that are specific to Asuswrt-Merlin at least)?
     
  6. christer12

    christer12 New Around Here

    Joined:
    Dec 11, 2012
    Messages:
    4
    Does not seem like I can do it on AC66U? =(
     
  7. RMerlin

    RMerlin Part of the Furniture

    Joined:
    Apr 14, 2012
    Messages:
    13,048
    Location:
    Canada
    No reason why not, the firmware is exactly the same architecture-wise.
     
  8. TeHashX

    TeHashX Very Senior Member

    Joined:
    Jul 6, 2012
    Messages:
    760
    Location:
    Europe
    Ok, when I get some free time I will :)
     
  9. TeHashX

    TeHashX Very Senior Member

    Joined:
    Jul 6, 2012
    Messages:
    760
    Location:
    Europe
    Added email configuration, read the second post
     
  10. jixbo

    jixbo New Around Here

    Joined:
    Jan 19, 2014
    Messages:
    7
    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?
     
  11. TeHashX

    TeHashX Very Senior Member

    Joined:
    Jul 6, 2012
    Messages:
    760
    Location:
    Europe
    Probably on dual-core routers like rt-ac68u runs better but should be installed from optware

    Sent from my HTC One using Tapatalk
     
  12. kacheng

    kacheng New Around Here

    Joined:
    Oct 3, 2014
    Messages:
    4
    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?
     
  13. TeHashX

    TeHashX Very Senior Member

    Joined:
    Jul 6, 2012
    Messages:
    760
    Location:
    Europe
    Reboot router
     
  14. kacheng

    kacheng New Around Here

    Joined:
    Oct 3, 2014
    Messages:
    4
    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
     
  15. TeHashX

    TeHashX Very Senior Member

    Joined:
    Jul 6, 2012
    Messages:
    760
    Location:
    Europe
  16. kacheng

    kacheng New Around Here

    Joined:
    Oct 3, 2014
    Messages:
    4
    I switched to nginx. All seems to be working at the moment.
    Thanks again!
     
  17. kacheng

    kacheng New Around Here

    Joined:
    Oct 3, 2014
    Messages:
    4
    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?
     

Share This Page