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

Forum Discussion

kiokoman's avatar
kiokoman
Aspirant
May 23, 2012

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:


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

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