Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old July 12th, 2006   #1
crichell
Skinny Soy Caramel Ubuntu
 
crichell's Avatar
 
Join Date: Jul 2005
Beans: 667
HOWTO: Install Relay AJAX File Server on Ubuntu 6.06 LTS LAMP Server

Relay is an awesome free and open source web based AJAX file storage and serving application. This article describes how to install Relay on Ubuntu 6.06 LTS. This installation is completed on a fresh Ubuntu 6.06 LTS LAMP Server installation.

The original How To is here.

Check out Relay here.

Most commands can be cut and pasted into your terminal - adjust for your own passwords. One command per line. So lets get started.

Install Ubuntu Lamp Server
  1. Download and burn the Ubunty 6.06 LTS Server CD
  2. Boot from the CD and choose Install LAMP Server
  3. Get your server up to date:
Code:
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot
Install Dependencies

We will now install ImageMagick, GD2, and GhostScript. These applications are used for creating nice thumbnails of the files on your server.

Code:
sudo apt-get install php5-gd imagemagick gs-common unzip libapache2-mod-perl2
sudo /etc/init.d/apache2 force-reload
Setup MySQL

To setup MySQL you will need to first create a password for your mysql root user. After that we create your Relay database and a new MySQL user with access to the Relay database. Record the following information. Adjust with your own passwords, database name, Relay admin username.

MySQL Root Password: mysqlrootpw
Relay Database Name: relay
Relay Database Table Prefix: relay_
Relay Database Username: relaydbuser
Relay Database Password: relaydbpass

Relay Admin Username: admin
Relay Admin Password: relayadminpass

Create MySQL Root Password

The following commands create your MySQL root password.
Code:
sudo mysqladmin -u root password mysqlrootpw
For the next command you will be prompted for a password. Enter the mysqlrootpw you just created.
Code:
sudo mysqladmin -u root -p -h localhost password mysqlrootpw
Create Relay Database and Database User

The following commands will create our Relay database and the database user. When prompted for a password enter your mysqlrootpw.
Code:
mysql -u root -p
create database relay;
grant all privileges on relay.* to 'relaydbuser'@'localhost' identified by 'relaydbpass';
exit
Download Relay

Now we need to download Relay and place it in the appropriate directory.

Code:
wget http://ecosmear.com/relay/download.php?download=true
sudo unzip relayb01-070606.zip
sudo cp -r relay /var/www/
Configure Permissions

Next we'll set the appropriate permissions.

Code:
cd /var/www/

sudo chown www-data relay/
sudo chown www-data relay/uploads/
sudo chown www-data relay/filestore/
sudo chown www-data relay/upload.pl
sudo chmod 755 relay/
sudo chmod 755 relay/upload.pl
sudo chmod 755 relay/uploads/
sudo chmod 755 relay/filestore/
Apache2 Config

Next we'll edit the apache configuration file to allow CGI Perl execution in the /var/www/relay directory.

Code:
sudo nano /etc/apache2/apache2.conf
Use the down arrow key to reach the bottom of the file. Cut and paste the following lines into your terminal (at the bottom of the file).
Code:
<Directory "/var/www/relay/">
     AllowOverride All
     Options +ExecCGI
     AddHandler cgi-script cgi pl
</Directory>
Now to save the changes:
Code:
press Ctrl+x then y then Enter
Reload Apache
Code:
sudo /etc/init.d/apache2 force-reload
Install and Configure Relay

From another computer use Firefox (not IE only because it sucks) to browse to your relay server.
Enter the appropriate information that we recorded from above. i.e. database name, username, relay admin & password, etc.

For the Utilities section:
Code:
GhostScript: /usr/bin/gs
ImageMagick: /usr/bin/convert
Click Submit Query

Use Relay and Have Fun

Now browse to your new relay server. Enter the admin username and password we created earlier. Tada, woop, and whatever else - you're done. Take a look around - Relay is pretty awesome. Click Admin Panel to create new virtual directories, users, and to view statistics.
__________________
Carl Richell | System76 | http://www.System76.com

System76 Staff
crichell is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:58 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry