NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
SWhetsel
Jan 24, 2011Aspirant
How to install Joomla on ReadyNAS - Walkthrough
To install Joomla 1.5 on the ReadyNAS, you’ll need to do the following. (detailed steps below)
First off, I am sorry to those that are fluent in SSH, but I was not when I wanted to do this and therefore took me forever to figure out. (ok not exactly forever, thanks Google) So I am writing this guide very simple and with literally every step. I am going to break it down , Barney style. Also needed is an SSH client if you’re doing this all via windows like I was. I suggest PuTTY as it is free. You can get PuTTY Here. (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) I also wanted to thank the people that wrote the other helps out there, especially the ones that are linked in this walk through. So without further wait, here is how you install Joomla on ReadyNAS boxes. (FYI this was done on a ReadyNAS Duo)
Step 1 – Create a website share that’s accessible outside your firewall
Follow the instructions in the Create a personal webserver on the ReadyNAS how-to.
(http://www.readynas.com/?p=135)
Step 2 – Enable Root SSH
Install the EnableRootSSH add-on. Installation instruction is available from the ReadyNAS Add-ons page.
(http://www.readynas.com/download/addons/4.00/EnableRootSSH_1.0.bin)
Step 3 – PHP
Follow the instructions in the Setting up a PHP CGI Environment how-to.
(http://www.readynas.com/?p=140)
Or just follow these quick steps.
SSH into your ReadyNAS via PuTTY.
Login Username is “Root” and Password is your admin password for the ReadyNAS.
Copy these following commands into PuTTY.
After they are done installing then run these commands.
Step 4 – Install PHP5-MySQL package
From the root shell, run the following:
Step 5 – Download and extract Joomla 1.5
Directions to download and extract Joomla 1.5 are as follows: (I tried this with 1.6 to no avail so this is what worked for me with 1.5) Download zip file Joomla 1.5 and extract all files into the folder you created in step 1. The actual install happens later.
Step 6 – Setup your MySQL database
Before creating your MySQL database file, you’ll need to first modify the file /etc/mysql/my.cnf.
You can use the built-in vi text editor to do this. (vi commands are in the link at the bottom)
Search for the following line in /etc/mysql/my.cnf:
and insert a ‘#’ sign in front of it to comment out the line. The resulting line should look as follows:
Once you’ve saved the change, you’ll need to restart MySQL as follows:
Now, let’s create the MySQL database for Joomla. When prompted for password, just press “Enter”. We”ll use “page” as the database name and “admin” as the user name. You can set up the password in the IDENTIFIED BY “password” line to whatever you want.
Step 7 – Install Joomla!
Follow the directions at the following site: Joomla Install via Website
(http://help.joomla.org/content/view/39/132/)
VI Commands Cheat Sheet - http://www.lagmonster.org/docs/vi.html
Enjoy! -SWhetsel
- 1. Create a share on the ReadyNAS where you will run Joomla 1.5 and enable Internet access to the share.
2. Enable Root SSH on the ReadyNAS.
3. Install PHP on the ReadyNAS.
4. Install the PHP5-MySQL package.
5. Download and install Joomla 1.5 on the ReadyNAS.
6. Setup your Joomla 1.5 MySQL database.
7. Follow Joomla 1.5 installation Instructions.
First off, I am sorry to those that are fluent in SSH, but I was not when I wanted to do this and therefore took me forever to figure out. (ok not exactly forever, thanks Google) So I am writing this guide very simple and with literally every step. I am going to break it down , Barney style. Also needed is an SSH client if you’re doing this all via windows like I was. I suggest PuTTY as it is free. You can get PuTTY Here. (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) I also wanted to thank the people that wrote the other helps out there, especially the ones that are linked in this walk through. So without further wait, here is how you install Joomla on ReadyNAS boxes. (FYI this was done on a ReadyNAS Duo)
Step 1 – Create a website share that’s accessible outside your firewall
Follow the instructions in the Create a personal webserver on the ReadyNAS how-to.
(http://www.readynas.com/?p=135)
Step 2 – Enable Root SSH
Install the EnableRootSSH add-on. Installation instruction is available from the ReadyNAS Add-ons page.
(http://www.readynas.com/download/addons/4.00/EnableRootSSH_1.0.bin)
Step 3 – PHP
Follow the instructions in the Setting up a PHP CGI Environment how-to.
(http://www.readynas.com/?p=140)
Or just follow these quick steps.
SSH into your ReadyNAS via PuTTY.
Login Username is “Root” and Password is your admin password for the ReadyNAS.
Copy these following commands into PuTTY.
# apt-get update
# apt-get install libapache2-mod-php5
After they are done installing then run these commands.
# killall apache-ssl
# apache-ssl -f /etc/frontview/apache/httpd.conf
Step 4 – Install PHP5-MySQL package
From the root shell, run the following:
# apt-get install php5-mysql
# killall apache-ssl
# apache-ssl -f /etc/frontview/apache/httpd.conf
Step 5 – Download and extract Joomla 1.5
Directions to download and extract Joomla 1.5 are as follows: (I tried this with 1.6 to no avail so this is what worked for me with 1.5) Download zip file Joomla 1.5 and extract all files into the folder you created in step 1. The actual install happens later.
Step 6 – Setup your MySQL database
Before creating your MySQL database file, you’ll need to first modify the file /etc/mysql/my.cnf.
You can use the built-in vi text editor to do this. (vi commands are in the link at the bottom)
Search for the following line in /etc/mysql/my.cnf:
skip-networking
and insert a ‘#’ sign in front of it to comment out the line. The resulting line should look as follows:
#skip-networking
Once you’ve saved the change, you’ll need to restart MySQL as follows:
# mysqladmin shutdown
# mysqld
Now, let’s create the MySQL database for Joomla. When prompted for password, just press “Enter”. We”ll use “page” as the database name and “admin” as the user name. You can set up the password in the IDENTIFIED BY “password” line to whatever you want.
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5340 to server version: 3.23.54
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE page; (press enter)
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON page.* TO "admin"@"localhost" (press enter)
-> IDENTIFIED BY "password"; (press enter)
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES; (press enter)
Query OK, 0 rows affected (0.01 sec)
mysql> EXIT (press enter)
Bye
#
Step 7 – Install Joomla!
Follow the directions at the following site: Joomla Install via Website
(http://help.joomla.org/content/view/39/132/)
VI Commands Cheat Sheet - http://www.lagmonster.org/docs/vi.html
Enjoy! -SWhetsel
28 Replies
Replies have been turned off for this discussion
- pugilaresAspirantnas-xx-xx-xx:/etc/init.d# apt-get install mysql-server
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient12 libnet-daemon-perl libplrpc-perl mysql-client
Suggested packages:
dbishell libcompress-zlib-perl mysql-doc
The following packages will be REMOVED:
mysql-client-5.0 mysql-server-5.0 squeezecenter-readynas
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient12 libnet-daemon-perl libplrpc-perl mysql-client mysql-server
0 upgraded, 7 newly installed, 3 to remove and 71 not upgraded.
Need to get 5377kB of archives.
After unpacking 40.7MB disk space will be freed.
Do you want to continue? [Y/n]
All right - so this will remove sqeezecenter server from my box? I don't use it now, but I may need this one day.
Should I say Y or n??? :-) - pugilaresAspirantOkay Gentleman, somehow I managed to get to this point:
nas-xx-xx-xx:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.24a-Debian_3.infrant1
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE page;
Query OK, 1 row affected (0.04 sec)
mysql> GRANT ALL PRIVILEGES ON page.* TO "admin"@"localhost"
-> IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
mysql> EXIT
Bye
nas-xx-xx-xx:~#
The trick was to do this
nas-xx-xx-xx:/# mysqld
120608 23:31:34 InnoDB: Started; log sequence number 0 43655
120608 23:31:34 [Note] mysqld: ready for connections.
Version: '5.0.24a-Debian_3.infrant1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Infrant ReadyNAS distribution
on one terminal, and then login with new ssh session and do
mysql -u root -p
I hope now I can go to installing actual joomla :-)
I think 1.7 should be fine for me, or can I try with 2.5? - pugilaresAspirantSo joomla 1.5 seems to work on my Duo now :-)
The database "page" created this way as above is located on the system partition of the ReadyNAS, isn't it? Where the actual data of this database will be stored? I would prefer to store data on website share rather then on the system partition. - kraeksAspirantI believe the default datastore is /var/lib/mysql, but you can change this as you please. Just do as follows:
sudo /etc/init.d/mysql stop
sudo vi /etc/mysql/my.cnf
Comment out this line with a hashtagdatadir = /var/lib/mysql
and copypaste another one underneath where you change the dir to wherever you want to place it.
Then:cp /var/lib/mysq /where/you/wat/the/data
sudo chown -R mysql:mysql /where/you/want/the/data/*
however, you should delete ib_arch_log_0000000000, ib_logfile0 etc. from the new directory.
After that you'll be able to just go ahead and restart the sql service withsudo /etc/init.d/mysql start
- pugilaresAspirantLinux nas-xx-xx-xx 2.6.17.14ReadyNAS #1 Thu Sep 1 17:44:33 PDT 2011 padre unknown
nas-xx-xx-xx:~# sudo /etc/init.d/mysql stop
sudo: /etc/init.d/mysql: command not found
nas-xx-xx-xx:~#
:-(
I don't know why. Mysql seems to work on my NAS, as well as joomla works and the installator of joomla detected mysql and was able to connect to the database. - kraeksAspirantI'll attach a link to a generic init.d file for mysql in the bottom of this reply.
However, I strongly recommend starting over and strictly following my guide to
make sure you're not missing anything else vital.
http://dl.dropbox.com/u/9085001/mysql - BroadsideAspirantHey there.
I am also trying to install Joomla on my Readynas Duo. I've managed to make it to step 3. I've installed the enable root SSH and I am able to access the NAS with Putty, using root and my password. However after inputtig the commands listed nothing happens. I don't get an 'unkown' command message but neither do I get any verification that something is being installed or downloaded.
Did I skip something or am I doing something wrong? - Halcyon1AspirantHi Broadside, I think you didn't install the APT on your ReadyNAS.
This link contains the same instructions as Step 3 with added link to the APT add-on.http://kb.netgear.com/app/answers/detail/a_id/12272/~/setting-up-a-php-cgi-environment
Not to revive such of an old thread, I have a slight different problem than Broadside. I'm actually stuck in Step 3.
When I ran:
# apt-get update
# apt-get install libapache2-mod-php5
I get:
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libapache2-mod-php5: Depends: libbz2-1.0 but it is not going to be installed
Depends: php5-common (= 5.2.0-8+etch9~bpo31+1.netgear1) but it is not going to be installed
Depends: ucf but it is not going to be installed
php5: Depends: php5-common (>= 5.2.0-8+etch9~bpo31+1) but it is not going to be installed
php5-mcrypt: Depends: php5-common (= 5.2.0-8+etch9~bpo31+1.netgear1) 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 be trying to install all the listed dependency packages? Or just runapt-get -f install
? Or am I doing something wrong?
Sorry for the newbie questions. A bit of a Linux noob.
Related Content
NETGEAR Academy

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