NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

jfkcom's avatar
jfkcom
Aspirant
May 25, 2014

PHP5 problems with addons PHP5-GD and Mediawiki

Hi,
some weeks ago I upgraded my ReadyNAS Ultra 6 to Raidiator 4.2.25. Before, my addons PHP5-GD v1.8 and Mediawiki v1.0 worked. After upgrading unfortunately I tried to install some additional php-stuff via apt-get. Then I read of conflicts between PHP5-GD and those php5-modules in forum; consequently I uninstalled these in hope for a rollback to the former proper state.

Now, when calling Mediawiki via address nasip/mediawiki in browser, it asks for an application running file of type "application/x-httpd-php". I'm afraid some configuration files are messed up due to deinstallation mentioned above.

Content of /etc/frontview/addons:
addons.conf  bin  MEDIAWIKI.remove  PHP5GD.remove  PHPMYADMIN.remove  READYNASPHOTOS.remove  READYNASREMOTE.remove  SLIMSERVER.remove  ui  XPLORER.remove


In /etc/frontview/apache/httpd.conf the LoadModules-section reads (is there perhaps an entry for php5 missing?):
LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
LoadModule apreq_module /usr/lib/apache2/modules/mod_apreq2.so
LoadModule addonhandler_module /frontview/lib/mod_addonhandler.so


In /etc/frontview/apache/addons, entry PHP5.conf is:
#LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps


But there is no module libphp5.so existing in /usr/lib/apache2/modules (only entries of form "mod*.so" and "httpd.exp").

I have no plan how to repair my config.

Thanks for any advice

5 Replies

Replies have been turned off for this discussion
  • Meanwhile, I upgraded to Raidiator 4.2.26. Here is the output of dpkg-query -l '*php*':
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
    ||/ Name Version Description
    +++-======================================-======================================-============================================================================================
    un libapache2-mod-php4 <none> (no description available)
    un libapache2-mod-php5 <none> (no description available)
    ii libphp-adodb 4.93a-1.1 The 'adodb' database abstraction layer for php
    un php-auth-sasl <none> (no description available)
    ii php-net-smtp 1.2.6-2 PHP PEAR module implementing SMTP protocol
    ii php-net-socket 1.0.6-2 PHP PEAR Network Socket Interface module
    ii php-pear 5.2.0+dfsg-8+etch16 PEAR - PHP Extension and Application Repository
    un php3 <none> (no description available)
    un php4 <none> (no description available)
    un php4-cli <none> (no description available)
    un php4-dev <none> (no description available)
    un php4-mysql <none> (no description available)
    un php4-odbc <none> (no description available)
    un php4-pear <none> (no description available)
    un php4-pgsql <none> (no description available)
    un php4-sybase <none> (no description available)
    un php5 <none> (no description available)
    ii php5-cli 5.2.0+dfsg-8+etch16 command-line interpreter for the php5 scripting language
    ii php5-common 5.2.0+dfsg-8+etch16 Common files for packages built from the php5 source
    ii php5-curl 5.2.0+dfsg-8+etch16 CURL module for php5
    un php5-dev <none> (no description available)
    ii php5-gd 5.2.0+dfsg-8+etch16 GD module for php5
    ii php5-mcrypt 5.2.0+dfsg-8+etch16 MCrypt module for php5
    ii php5-memcache 2.0.1-1.1 memcache extension module for PHP5
    ii php5-mhash 5.2.0+dfsg-8+etch16 MHASH module for php5
    ii php5-mysql 5.2.0+dfsg-8+etch16 MySQL module for php5
    un php5-mysqli <none> (no description available)
    un php5-odbc <none> (no description available)
    un php5-pgsql <none> (no description available)
    ii php5-pspell 5.2.0+dfsg-8+etch16 pspell module for php5
    ii php5-snmp 5.2.0+dfsg-8+etch16 SNMP module for php5
    ii php5-sqlite 5.2.0+dfsg-8+etch16 SQLite module for php5
    un php5-sybase <none> (no description available)
    ii php5-xmlrpc 5.2.0+dfsg-8+etch16 XML-RPC module for php5
    ii php5-xsl 5.2.0+dfsg-8+etch16 XSL module for php5
    un phpapi-20060613+lfs <none> (no description available)


    Is libapache2-mod-php5 obsolete? And what is an appropriate replacement for me? Any help appreciated.
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    When a thread has been inactive for a while we assume it is solved.

    Installing an add-on over the top of itself may help, but I think the old PHP add-ons aren't compatible with the latest firmware or don't work well with it.

    Have you consider the PHP add-on here?: https://rnxtras.com/addons/php-5-4-readynas-4-x86

    I think considering the mess that has been made it could be best if you backup your data, do a factory default (wipes all data, settings, everything) and restore your data from backup.
  • Thanks!
    So I understand that PHP5-GD is too old and it's a good idea to make a factory default. Then I will have to configure things like users and permissions from scratch again.
    Is https://rnxtras.com/addons/category/readynas-os4-x86 the only source for an up to date PHP5? Perhaps there are free addons, or a complete install without addon via apt-get?

    In the end, I need filesharing with user accounts and MediaWiki on my ReadyNAS, and - in the future - perhaps ownCloud.
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    I don't think you'll get anywhere near as up to date an add-on for free. Super-poussin has stopped making PHP add-ons for RAIDiator-x86 4.2.x and has pulled his as they haven't been updated to work well on recent firmware.

    It has taken WhoCares? a lot of work to achieve what he has.

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More