NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
MacNasMan
Aug 28, 2011Guide
How to upgrade PHP on Readynas Duo
I'm trying to setup WordPress on my Readynas, and although I'm close, I'm not able to pass this step:
Step 7 – Complete WordPress installation
Once you’ve saved your file, enter the following in your browser to complete the WordPress setup. Replace readynas_ip appropriately with your ReadyNAS IP address or hostname.
http://readynas_ip/website/wp-admin/install.php
My response is as follows:
“Your server is running PHP version 5.2.0-8+etch9~bpo31+1 but WordPress 3.2.1 requires at least 5.2.4. “
I know this means I have to upgrade my PHP, but since I am new to Linux/IUnix I'm not sure what steps to take.
Any assistance please, syntax will be appreciated!
Thank you!
Step 7 – Complete WordPress installation
Once you’ve saved your file, enter the following in your browser to complete the WordPress setup. Replace readynas_ip appropriately with your ReadyNAS IP address or hostname.
http://readynas_ip/website/wp-admin/install.php
My response is as follows:
“Your server is running PHP version 5.2.0-8+etch9~bpo31+1 but WordPress 3.2.1 requires at least 5.2.4. “
I know this means I have to upgrade my PHP, but since I am new to Linux/IUnix I'm not sure what steps to take.
Any assistance please, syntax will be appreciated!
Thank you!
9 Replies
Replies have been turned off for this discussion
- Well, I tried to remove existing PHP;
# apt-get remove libapache2-mod-php5
Removing php5-mysql ...
Removing libapache2-mod-php5 ...
It apparently removed MySQL as well. I didn't think this was a problem, but then my FrontView disappeared!
So I re-installed libapache2-mod-php5 and FrontView is back! (that was close!)
Not being a Linux expert, I feel I have enough information to be dangerous and render my server completely kaput! I am thinking I will probably need to go through the removal process again, and install latest version of php5 and mysql manually, but do I risk my OS by doing this? - WhoCares_MentorUsing the debian archives y ou won't get any newer version of PHP than 5.2.0. Building your own updated copy is certainly possible but you need to install a lot of prereauisites to actually make it work. The danger of completely killing your NAS is minimal, the worst case scenario being that you'd have to do a firmware re-install which will only fix the OS but leaves the data intact.
-Stefan - I found the security problems with PHP 5.2.0:
http://www.cvedetails.com/vulnerability-list/vendor_id-74/product_id-128/version_id-38979/PHP-PHP-5.2.0.html
I am thinking it might be best to find out how to upgrade to latest version of PHP rather than put my system at risk. - ponyfeedersAspirantI had this problem as well (I've now got another issue preventing WP from running but hey!)
You can get the updated php from here:
http://readynasxtras.com/readynas-sparc-add-ons/php-53-sparc
obv it'll cost you $1.69
hope that's what you're after... :D - this is great, thank you very much! will post back after I get it all installed and working.
- ponyfeedersAspirantno worries, It's now all working for me, other than the issue with .htaccess, which I'm still investigating (struggling with!)
- Got everything working, here are some “interesting” issues I came across trying to get it all to work:
1) getting correct port of mysql database using “netstat -a”; it turned up “:mysql” as the port number! It works in wp-config.php. I tried using “localhost” and 127.0.0.1 as mysql IP address, but ultimately, I had to use the internal machine IP, which is 192.XXX.X.XX.
2) Creating user account for wordpress with correct permissions, this step was not clear in the instructions.
3) Default permissions on one of the main folders not correct, used chmod 755 to fix it.
The error messaging throughout the installation is helpful, you just have to clear the main logon issues before things start moving.
I am having the same issue with “.htaccess”, I believe its related to “wp super cache”; During account administration, the file .htaccess gets created, and http 403 error when I try to change the permalink setting. I end up deleting this file, then I can move forward, but need to find the root cause of this.
Also, I cannot leave comments to any of my posts, apparently cannot find directory structure:
Not Found
The requested URL /XXXX/uncategorized/welcome-to-my-pub-please-note-hours-of-operation/ was not found on this server.
This whole Linux thing is really cool and I feel better about going into terminal and executing commands under “root”. I used VI editor years ago, now I feel I am about to re-master an ancient tool of the Old World. I am previously a DOS 6.22 user, before I entered the MS world as a developer. So I have it in me to do Linux after all those years of GUI development. I am excited to learn a new (actually really old world) that many in the MS world do not know about! - ponyfeedersAspirantGood stuff. It's ALL new to me so I'm pretty much firing blind! With htaccess I think you will find you need it. Search around here about it and adding the mod_rewrite rule to it. My current issue is adding images. Have you been able to do this?
- vasilikAspirantHi,
I received the same error trying to run the install.php file ("Your server is running PHP version 5.2.0-8...)". I run the command "apt-get upgrade php5" and the frontview isn't available anymore neither the ssh connection or the website :cry: I can see the readynas duo from the raidar and the folders via the windows.
Thank you for your help!
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!