NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
kiokoman
May 23, 2012Aspirant
How to Install PHP5 and phpmyadmin joomla(arm) duo v2
work on T33 and T41
you need to Enable Root SSH on the ReadyNAS.
my english is not very good so i will make it short:
after that you have to manually configure /etc/frontview/apache/httpd.conf
i hate vi so i'm using nano
just add this after "LoadModule addonhandler_module /frontview/lib/mod_addonhandler.so" :
and this at the end of the file:
after that save the file (ctrl+x y) and restart apache
php shouldnow work, and phpmyadmin is available to http://ip-readynas/phpmyadmin
to be able to use phpmyadmin you must create a user with mysql command, for example:
change username and some_pass with what you desire
if u want to use joomla u must create a database
change the username and some_pass accordingly
you are now ready to configure joomla
you need to Enable Root SSH on the ReadyNAS.
my english is not very good so i will make it short:
apt-get install nano libapache2-mod-php5 php5 php5-mysql php5-gd phpmyadmin
after that you have to manually configure /etc/frontview/apache/httpd.conf
i hate vi so i'm using nano
nano /etc/frontview/apache/httpd.conf
just add this after "LoadModule addonhandler_module /frontview/lib/mod_addonhandler.so" :
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
AddType application/x-httpd-php .php
PHPIniDir /etc/php5/apache2
and this at the end of the file:
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>
after that save the file (ctrl+x y) and restart apache
killall apache-ssl
apache-ssl -f /etc/frontview/apache/httpd.conf
php shouldnow work, and phpmyadmin is available to http://ip-readynas/phpmyadmin
to be able to use phpmyadmin you must create a user with mysql command, for example:
change username and some_pass with what you desire
mysql -u root
GRANT ALL PRIVILEGES ON *.* TO
'username'@'localhost'
-> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
if u want to use joomla u must create a database
change the username and some_pass accordingly
mysql> CREATE DATABASE page;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON page.* TO "username"@"localhost"
-> IDENTIFIED BY "some_pass";
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
mysql> EXIT
you are now ready to configure joomla
15 Replies
Replies have been turned off for this discussion
- horim80GuideThanks~!!!
- EpitomeAspirantI get an error trying to install phpmyadmin:
Setting up phpmyadmin (4:2.9.1.1-13) ...
dpkg: error processing phpmyadmin (--configure):
subprocess post-installation script returned error exit status 20
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
How can I install phpmyadmin correctly? - crnet_deAspirantBig Thanks - the PHP-Part we shuold nail somewhere.
And: Did youapt-get update
before your first Step? - y_nkAspirantHi,
I'm currently trying to play with apache-ssl too.
I've deleted the /frontview/ui/resources/html/redirect.html in order to provide a cool landing page.
However, if i try to reach "/" of my webserver, it redirects me automatically to /admin. I've to type /index.html" to stop it. I read all the http.confg and didnt see any kind of redirection... Any clue ?
Thanks - y_nkAspirantMy bad, cache issue.
- johkAspirantHi,
Would this work if I want to run several instances of Joomla on my Readynas NV+v2?
johk - kullyraiTutorHi,
I recently bought a ReadyNAS Duo v2 (arm) and wanted to set-up my own php webserver on it.
The ReadyNAS has the official firmware RAIDiator v5.3.7
I tried to install PHP5 and phpmyadmin as per the instructions above, but I received the following error message:
root@ReadyNAS:/# apt-get install nano libapache2-mod-php5 php5 php5-mysql php5-gd phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libapache2-mod-php5 : Depends: libonig2 (>= 5.2.0) but it is not going to be installed
Depends: libqdbm14 (>= 1.8.74) but it is not going to be installed
Depends: php5-common (= 5.3.3-7+squeeze14) but it is not going to be installed
Recommends: php5-cli but it is not going to be installed
libncurses5-dev : Depends: libc-dev
libncursesw5-dev : Depends: libc-dev
php5 : Depends: php5-common (>= 5.3.3-7+squeeze14) but it is not going to be installed
php5-gd : Depends: libgd2-xpm (>= 2.0.36~rc1~dfsg) but it is not going to be installed
Depends: libt1-5 (>= 5.1.0) but it is not going to be installed
Depends: libx11-6 but it is not going to be installed
Depends: libxpm4 but it is not going to be installed
Depends: php5-common (= 5.3.3-7+squeeze14) but it is not going to be installed
php5-mysql : Depends: php5-common (= 5.3.3-7+squeeze14) but it is not going to be installed
phpmyadmin : Depends: php5-mcrypt but it is not going to be installed
Depends: dbconfig-common but it is not going to be installed
Depends: libjs-mootools (>= 1.2.4.0~debian1-1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Should I proceed with the 'apt-get -f', or could this cause issues?
thanks
kullyrai - kullyraiTutorSorry for bumping the thread, but has anyone else been able to get PHP5 installed on their ReadyNAS Duo v2?
thanks
kullyrai - charliwestAspirantDid you ever go ahead with the -f install option?
- kullyraiTutorHi charliwest,
No, I didn't, I didn't want to do it unless I got confirmation from someone experienced than me if it would be ok.
Unfortunately, no one who has ever managed to successfully install it has got back to me..
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!