you need to Enable Root SSH on the ReadyNAS.
my english is not very good so i will make it short:
- Code: Select all
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
- Code: Select all
nano /etc/frontview/apache/httpd.conf
just add this after "LoadModule addonhandler_module /frontview/lib/mod_addonhandler.so" :
- Code: Select all
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:
- Code: Select all
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
- Code: Select all
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
- Code: Select all
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
- Code: Select all
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
