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
- pugilaresAspirantSo, I do
nas-XX-XX-XX:/etc/mysql# mysqld
and what I see is
120606 22:48:21 InnoDB: Started; log sequence number 0 43655
120606 22:48:21 [Note] mysqld: ready for connections.
Version: '5.0.24a-Debian_3.infrant1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Infrant ReadyNAS distribution
At this point I can type anything, but I dont have a prompt :-(
Regarding
chmod 777 /var/run/mysqld
I did that already at the earlier stage. - SWhetselAspirantTry changing\make sure that the bind-address to 127.0.0.1 in /etc/mysql/my.cnf using VI.
- pugilaresAspirantnas-XX-XX-XX:/etc/mysql# vi
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
#
# * Basic Settings
#
user = admin
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-external-locking
skip-name-resolve
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
# bind-address = 127.0.0.1
# skip-networking
innodb_buffer_pool_size = 6M
key_buffer_size = 16k
myisam_sort_buffer_size = 16k
max_connection = 20
#
# * Fine Tuning
#
key_buffer = 16k
max_allowed_packet = 16M
thread_stack = 128K
#
# * Query Cache Configuration
#
"my.cnf" 75L, 0C - SWhetselAspirantYou need to un-comment the "# bind-address = 127.0.0.1"
Remove the " # " and restart MySQL. - pugilaresAspirantI un-commented bind-address = 127.0.0.1
Then I do
nas-XX-XX-XX:/etc/mysql# mysqld
120607 9:32:02 InnoDB: Started; log sequence number 0 43655
120607 9:32:02 [Note] mysqld: ready for connections.
Version: '5.0.24a-Debian_3.infrant1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Infrant ReadyNAS distribution
I have no prompt further. So I have to login with another ssh session as root and do
mysqladmin shutdown
to regain prompt at the original session.
I also rebooted the whole box and checked it again with the same result. - kraeksAspirantAre you sure it's actually an error at all? What you are trying to start is the mysqld (the mysql server that is), which has no console.
You should be able to start it with "sudo /etc/init.d/mysql start" instead to have it run as a backgrounded service instead of a sep. user process. Then connect to the db with the mysql command instead to get the console. - SWhetselAspirant
kraeks wrote: Are you sure it's actually an error at all? What you are trying to start is the mysqld (the mysql server that is), which has no console.
You should be able to start it with "sudo /etc/init.d/mysql start" instead to have it run as a backgrounded service instead of a sep. user process. Then connect to the db with the mysql command instead to get the console.
What he said. You want to start the service as root using:sudo /etc/init.d/mysql start
- pugilaresAspirantnas-XX-XX-XX:/etc/init.d# ls -aF
./ cupsys* inetd* netatalk* procps.sh* rsync* sudo*
../ dekoh-nas* klogd* networking* proftpd* samba* sysklogd*
apache2* exim* leafp2p* nfs-kernel-server* quota* screen-cleanup* udhcpd*
atd* frontview* lvm* nis* quotarpc* sendsigs* umountfs*
avahi-daemon* halt* makedev* noflushd* rc* single* umountnfs.sh*
bootmisc.sh* hotplug* modutils* ntpdate* rc3* skeleton* urandom*
checkfs.sh* hwclockfirst.sh* mountall.sh* nut* rcS* snmpd* winbind*
checkroot.sh* hwclock.sh* mountnfs.sh* portmap* reboot@ squeezecenter*
cron* ifupdown* mt-daapd* powerdown* rmnologin* ssh*
nas-XX-XX-XX:/etc/init.d# sudo mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
nas-XX-XX-XX:/etc/init.d# sudo /etc/init.d/mysql start
sudo: /etc/init.d/mysql: command not found
nas-XX-XX-XX:/etc/init.d#
What I do wrong? - kraeksAspirantI'm not sure exactly. Have you installed mysqld from apt-get? That is a requirement. Would you mind trying this:
sudo apt-get purge php5-mysql
sudo apt-get install mysql-server
sudo apt-get install php5-mysql
after that you SHOULD have an init.d-script for mysql.
Cheers. - kraeksAspirantAnother, probably better approach is if you follow my guide at viewtopic.php?f=11&t=63591 which is a bit newbie friendlier and offers a solution that's a bit more all around. Then continue with http://docs.joomla.org/Installation - which is also straight forward and good.
Related Content
NETGEAR Academy

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