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
- fanion47AspirantHi !
Thanx for the tutorial.
I've followed all but i get php or apache error when i try to install joomla.
application/x-httpd-php can't be open ..................................
Help plz. - lagenAspirantI success to install Joomla on my readynas.
in front I login to this address: 192.168.1.200/website
but when I try back end 192.168.1.200/website/administrator then I get a file browser.
I get "Hypertext Transfer Protocol" only work on this map(192.168.1.200/website)
so when I try this map(192.168.1.200/website/administrator) file browser show.
someone have know about this problem I have? - SWhetselAspirant
lagen wrote: I success to install Joomla on my readynas.
in front I login to this address: 192.168.1.200/website
but when I try back end 192.168.1.200/website/administrator then I get a file browser.
I get "Hypertext Transfer Protocol" only work on this map(192.168.1.200/website)
so when I try this map(192.168.1.200/website/administrator) file browser show.
someone have know about this problem I have?
It is case sensitive. Make sure you are typing it exactly as you have it saved. - SWhetselAspirantI have had my Joomla off for some time.
So today I "apt-get --purged remove"ed PHP and Apache.
I started over from scratch and followed back through my instructions.
However, in step #6 when I tried to start my MYSQLD I got an error.080723 10:21:43 [ERROR] Can't start server : Bind on unix socket: Permission denied
080723 10:21:43 [ERROR] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?
I couldn't figure out what the issue for almost 3 hours until I saw the permissions.
Somehow the mysqld dir had gotten set to 755 and it needs 777 permissions to work.
So, if you are getting the error above, you need just run this code to set the permissions to 777 and then you should be able to continue.#chmod 777 /var/run/mysqld
-SWhetsel - landolasAspirantHi,
First - thanks very much for this posting - worked through it and had a lot of fun testing websites before publishing. I'm also now using Joomla! 2.5 on a windows desktop which I installed using http://docs.joomla.org/Use_Joomla!_on_your_own_computer and need to upgrade Joomla! 1.5 to 2.5 on the ReadyNAS. I copied across XAMPP to a new share on the ReadyNAS after setting this up as a personal server as per your instructionss but so far I haven't felt confident enough to actually run this on the ReadyNAS Duo (as I did on the desktop) since I'm not convinced it will work and I equally don't want to blow away my working Joomla! 1.5 environment on the ReadyNAS. Any suggestions as to the best way to upgrade from Joomla! 1.5 to 2.5 on the ReadyNAS - or I would be more than happy to simply do a full install of 2.5 but without using something like XAMPP, I suspect it could be a longhaul manually upgrading PHP and MySQL first. Any help with this greatly appreciated. - SWhetselAspirantTry this for the upgrade.
http://extensions.joomla.org/extensions ... tion/11658
With anything though, make backups in case it doesnt work. - pugilaresAspirantSo, I'm at this point
SWhetsel wrote:
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
and I do
nas-XX-XX-XX:/etc/mysql# mysql -u root -p
Enter password:
I hit
Enter
and then I get
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
:-( - SWhetselAspirantVerify that your MySQL is running by typing:
# mysqladmin -u root -p status
- pugilaresAspirantIn reply to that I get
Enter password:
I hit Enter key and then I get
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists! - SWhetselAspirantTry:
#chmod 777 /var/run/mysqld
Related Content
NETGEAR Academy

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