NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
BaJohn
Feb 15, 2016Virtuoso
OS 6.4.2 apache2 rewrite problem when using WordPress.
I have read https://community.netgear.com/t5/Using-your-ReadyNAS/OS-6-1-4-apache2-mod-rewrite-htaccess-problem/m-p/896062#M49808, but I still am confused, probably since that post refers to an earlie...
BaJohn
Feb 16, 2016Virtuoso
cont ...
discovered that there is a 'https.conf' file as well as a 'http.conf' file in the same folder - arggh I think I may have solved it.
(nobody seems to mention the secure version, but what the hell, I'm on a roll .....)
So do the same thing in that file, and no luck.
Reboot both the ReadyNAS and my PC, also clear the cache on my PC ... still no luck.
so it's still ANY HELP APPRECIATED - Please.
BaJohn
Feb 16, 2016Virtuoso
cont ... (for the benefit of others coming after me with the same problem)
I want to check (again) that I have the 'mod_rewrite' module loaded.
As I already know about using 'phpinfo', I check that and show the appropriate bit below.
---------------------------------------------------------------------------------------------------------------------------------
Configuration apache2handler
Apache Version | Apache/2.2.31 (Debian) |
Apache API Version | 20051115 |
Server Administrator | admin@localhost |
Hostname:Port | 2002:4d64:64ad:e472:4694:fcff:fe6e:3848:443 |
User/Group | admin(98)/98 |
Max Requests | Per Child: 0 - Keep Alive: off - Max Per Connection: 100 |
Timeouts | Connection: 300 - Keep-Alive: 5 |
Virtual Server | Yes |
Server Root | /etc/apache2 |
Loaded Modules | core mod_log_config mod_logio mod_version prefork http_core mod_so mod_alias mod_auth_basic mod_auth_token mod_authn_file mod_authnz_external mod_authnz_ldap mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_unixgroup mod_authz_user mod_autoindex mod_cgi mod_dav mod_dav_fs mod_deflate mod_dir mod_env mod_headers util_ldap mod_mime mod_negotiation mod_php5 mod_reqtimeout mod_rewrite mod_setenvif mod_ssl mod_status mod_privsep mod_authn_privsep |
---------------------------------------------------------------------------------------------------------------------------------
I have no idea whether the other bits and pieces are right, but I do have the mod_rewrite module loaded.
So now off to check the internet some more ... this could be a long night.
- super_poussinFeb 17, 2016Virtuoso
the http.conf associated to wordpress should contain :
Listen 7095 <VirtualHost *:7095> ServerAdmin admin@localhost DocumentRoot /apps/wordpress/web <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /apps/wordpress/web/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /apps/wordpress/error.log LogLevel warn </VirtualHost>
You must install
php5-gd (>= 5.4.4-13), php5-mcrypt (>=5.4.4),libapache2-mod-php5 (>= 5.4.0),php5-curl (>= 5.3~),php5-imap (>= 5.3~),php-pear (>= 5.3~),mysql-common (>= 5.5.28),php5-mysql (>= 5.4.4-13),mysql-server (>= 5.1),mysql-client (>= 5.5.0)
- BaJohnFeb 17, 2016Virtuoso
super_poussin wrote:the http.conf associated to wordpress should contain :
Listen 7095 <VirtualHost *:7095> ServerAdmin admin@localhost DocumentRoot /apps/wordpress/web <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /apps/wordpress/web/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /apps/wordpress/error.log LogLevel warn </VirtualHost>
I think this means change it back to the default, as I can see no difference between this and my orginal.
You must install
php5-gd (>= 5.4.4-13), php5-mcrypt (>=5.4.4),libapache2-mod-php5 (>= 5.4.0),php5-curl (>= 5.3~),php5-imap (>= 5.3~),php-pear (>= 5.3~),mysql-common (>= 5.5.28),php5-mysql (>= 5.4.4-13),mysql-server (>= 5.1),mysql-client (>= 5.5.0)
From this it would appear that I have to install another 10 modules. Wow!
Because I get confused very easily, could you provide a sample of how to do one of these.
1. How to get the right version
2. Where to be when installing
3. What user to be when installing
4. What command to give.
Sorry about that but I have sometimes caused more problems by 'assuming' certain things, and using Linux on ReadyNAS seems slightly more peculiar than normal Linux.
I am capable of using SSH, FTP etc and am conversant with Linux commands (but not an expert).
Thanks in advance, and thanks for proving light at the end of the tunnel.
I would never have guessed that I needed more modules loaded.
Regards
- BaJohnFeb 17, 2016Virtuoso
Hi again super_poussin
To see whether my system has installed the approrpriate versions, I am running 'phpinfo' (no problem doing that).
This is headed PHP Version 5.4.45-0+deb7u2
I am suprised that I can only find 7 of the 10 items listed and some of those are ambiguous (around the Mysql bits).
The ambiguous items are all showing higher than your requirement, so no problem there.
Cannot find libapache2-mod-php5, php-pear and mysql-common.
Presumably there is a different way of finding the versions, using SSH?
I am also suprised that individual modules need to be installed, as I would have thought a (later) version of PHP or Apache would have done the trick.
Since each App is a consistent block of code (tested together), I would have thought that installing of an isolated item MIGHT casue an inconsistency between them:)
Please be patient with me as I am trying (very hard) to understand both why this has happened as well as fix it on the ReadyNAS.
Regards
- BaJohnFeb 18, 2016Virtuoso
super_poussin wrote:the http.conf associated to wordpress should contain :
Listen 7095 <VirtualHost *:7095> ServerAdmin admin@localhost DocumentRoot /apps/wordpress/web <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /apps/wordpress/web/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /apps/wordpress/error.log LogLevel warn </VirtualHost>
You must install
php5-gd (>= 5.4.4-13), php5-mcrypt (>=5.4.4),libapache2-mod-php5 (>= 5.4.0),php5-curl (>= 5.3~),php5-imap (>= 5.3~),php-pear (>= 5.3~),mysql-common (>= 5.5.28),php5-mysql (>= 5.4.4-13),mysql-server (>= 5.1),mysql-client (>= 5.5.0)
The http.conf has been returned to the original value as you requested.
The 10 packages have been checked using 'dpkg-query -l | grep php' and 'dpkg-query -l | grep msql', and ALL are above the requirements.
Those associated with PHP are 5.4.45 except for php-pear which is 5.4.39 and the others are 5.5.43.
So the requirements as required have been met (and were originally) and still I cannot re-write 'permalinks' in WordPress.
Please can anybody suggest the next move in getting this to work?
- BaJohnFeb 20, 2016Virtuoso
Good News - My problem is solved, as I can now rewrite to the WordPress pages whereas I could not before.
Normally I would let the community know how it was solved. (hence helping others)
Unfortunately, I have rebooted the NAS, upgraded the LAMP packages, changed some configuration files, updated WordPress and some Themes etc.
Some of these have been done more than once. I've probably played with other bits and pieces as well.
To be honest I am not certain what did the job - I just know that patience and perceverance have won the day.
I hope that some of the information contained in this post might help somebody else or at least nudge them in the right direction.
..... or even give them hope against what seems unsurmontable odds.
Good Luck
Related Content
NETGEAR Academy

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