NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Etz
Aug 16, 2011Aspirant
PHP5 5.3.6
If I want to upgrade from Super-poussins PHP addon, how do I do it?
1. Remove Super-poussin PHP 1.3
2. Install PHP5 5.3.6 from Who-Cares
Am I correct? :roll:
1. Remove Super-poussin PHP 1.3
2. Install PHP5 5.3.6 from Who-Cares
Am I correct? :roll:
8 Replies
Replies have been turned off for this discussion
- EtzAspirantOr it still will break something, If I do it that way?
- kwlorenzAspirantDid you try it ... ?
- quickly_nowApprenticeI have done this and had trouble. I think if you read the Super-Poussin post he makes the point that it is not compatible and you need to be very careful about moving from one to another.
Do do this, I did this:
1/ Remove the super-poussin add-on.
2/ Log into the NAS using ssh, change to /etc, and search for "php" using find, like this:
find . -name \*php\* -print
3/ Look at each file found, see if you should be keeping this or manually deleting it.
4/ Search inside all the files (esp those used by apache) to see if any references to php are left. Use something like this:
grep -r -l -i "php" .
5/ Check those files carefully, you may have configuration lines to remove.
6/ When all satisfied that the php add-on is completely removed, reboot the NAS.
7/ Add the new php add-on from Who-Cares. - EtzAspirantI remember taht after removing WhoCares addon, frontview failed to start, because apache had references to nox existing php libraries, which had to be removed manually... :roll:
Maybe If I dig around a bit I'll find my old post about that issue...
Yes... here it is:
viewtopic.php?f=36&t=48065Etz wrote:
Only thing what I had to do is edit /etc/frontview/apache/addons/php5.conf
and remove first line from it which says:
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
Issue is that uninstalling this addon leaves that line there, preventing apache from starting.
If you try to start apache-ssl manually from shell:apache-ssl -f /etc/frontview/apache/httpd.conf
It already says whats wrong.
apache-ssl: Syntax error on line 261 of /etc/frontview/apache/httpd.conf: Syntax error on line 1 of /etc/frontview/apache/addons/php5.conf: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
Should work also, if you delete php5.conf and edit httpd.conf accordingly... - EtzAspirantMaybe WhoCares can comment this a bit?
Because I really need a newer PHP... :roll: - WhoCares_MentorI'd say the instructions in the post from quickly_now quite nails it. To be extra sure you can look for leftovers from the old PHP add-on by doing this:
cd /etc/frontview
find . -name "*PHP*"
Also, to make sure that apache will start up correctly after removing an add-on, you can doapache-ssl -f /etc/frontview/apache/httpd.conf -t
and check the output for any error messages.
And if you run into trouble, just ask for remote assistance using Teamviewer ;)
-Stefan - EtzAspirantWorked like a charm...thank you :)
- loustikAspirantHello Etz,
Could you please explain me once again the procedure you have followed to have php5 functional on your readynas ? I'm still stuck to get PhpMyAdmin working... (http://www.readynas.com/forum/viewtopic.php?f=36&t=48440#p322367)
Thank you in advance.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!