NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
SLK-Purdue
Sep 22, 2020Luminary
Strange issue with migration from 102 to 312
I updated from a ReadyNAS RN102 to a RN 312. I moved the volumes as detailed in the instructions. Everything worked great and the new unit came up just fine.running 6.10.3. (Nice improvement in ...
- Sep 23, 2020
Sandshark wrote:
It sounds to me that PHP5 was remoevd, but this file was not: /etc/apache2/mods-enabled/php5.load. I'm not really versed in how apache uses such configuration files, but I think it automatically runs anything in that directory, there is no poiner to the file elsewhere that you also need to remove. Try just moving that file to a holding area and see what happens.
Since it works in the RN102, /usr/lib/apache2/modules/libphp5.so wasn't removed either (and is the arm version of the library). So PHP5 wasn't fully removed.
Still you could simply move php5.load. Make sure there's no php5.conf in the folder either. Also, you should look at the libraries php5.load is loading, and move them to the holding area also.
Lines 200, 201 in the apache2.conf are
200 IncludeOptional mods-enabled/*.load 201 IncludeOptional mods-enabled/*.conf
So you don't actually need to edit the conf file.
Still,I'd do the factory reset (painful though it is) if it were my own system.
SLK-Purdue
Sep 23, 2020Luminary
Looks like I ended up in "safe-mode". What is the proper way to exit "safe-mode"?
Scott
- SLK-PurdueSep 23, 2020Luminary
Some additional information. Any ideas?
admin@NAS-Ksander-2:~$ systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-09-22 18:21:00 EDT; 2h 44min ago
Process: 23934 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Process: 23852 ExecStartPre=/frontview/bin/fvapps (code=exited, status=0/SUCCESS)admin@NAS-Ksander-2:~$ systemctl status apache2-safe
● apache2-safe.service - The Apache HTTP Server (Safe Mode)
Loaded: loaded (/lib/systemd/system/apache2-safe.service; static; vendor preset: enabled)
Active: active (running) since Tue 2020-09-22 18:21:00 EDT; 2h 44min ago
Process: 23942 ExecStart=/usr/sbin/apache2 -f /etc/frontview/apache/safe-mode.conf (code=exited, status=0/SUCCESS)
Main PID: 23946 (apache2)
CGroup: /system.slice/apache2-safe.service
├─23946 /usr/sbin/apache2 -f /etc/frontview/apache/safe-mode.conf
├─23947 apache_log
├─23948 /usr/sbin/apache2 -f /etc/frontview/apache/safe-mode.conf
├─23949 /usr/sbin/apache2 -f /etc/frontview/apache/safe-mode.conf
├─23954 /usr/sbin/apache2 -f /etc/frontview/apache/safe-mode.conf
└─23955 /usr/sbin/apache2 -f /etc/frontview/apache/safe-mode.conf- SLK-PurdueSep 23, 2020Luminary
Logs show
Sep 22 18:21:00 NAS-Ksander-2 systemd[1]: Starting The Apache HTTP Server...
Sep 22 18:21:00 NAS-Ksander-2 apachectl[23934]: apache2: Syntax error on line 200 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: wrong ELF class: ELFCLASS32
Sep 22 18:21:00 NAS-Ksander-2 apachectl[23934]: Action 'start' failed.
Sep 22 18:21:00 NAS-Ksander-2 apachectl[23934]: The Apache error log may have more information.
Sep 22 18:21:00 NAS-Ksander-2 systemd[1]: apache2.service: Control process exited, code=exited status=1
Sep 22 18:21:00 NAS-Ksander-2 systemd[1]: Failed to start The Apache HTTP Server.
Sep 22 18:21:00 NAS-Ksander-2 systemd[1]: apache2.service: Unit entered failed state.
Sep 22 18:21:00 NAS-Ksander-2 systemd[1]: apache2.service: Triggering OnFailure= dependencies.
Sep 22 18:21:00 NAS-Ksander-2 systemd[1]: apache2.service: Failed with result 'exit-code'.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!