Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
TYPO3 4.3 Multimedia Cookbook

You're reading from   TYPO3 4.3 Multimedia Cookbook Over 50 great recipes for effectively managing multimedia content to create an organized web site in TYPO3

Arrow left icon
Product type Paperback
Published in Feb 2010
Publisher Packt
ISBN-13 9781847198488
Length 228 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (13) Chapters Close

TYPO3 4.3 Multimedia Cookbook
Credits
About the Author
About the Reviewers
1. Preface
1. Getting Started 2. Managing Digital Assets FREE CHAPTER 3. Operating with Metadata in Media Files 4. Rendering Images 5. Rendering Video and Audio 6. Connecting to External APIs 7. Creating Services 8. Automating Processes

Setting up an NFS share


In the Creating a scalable architecture recipe, we arrived at a server architecture to support a website. That architecture required a separate storage, linked to processing servers over the network. In this recipe, we will cover how you could set up such NAS on a Debian Linux server with no special hardware.

How to do it...

  1. 1. Run the following command to install all the required components for Network File System (NFS) sharing:

    Shell> apt-get install nfs-kernel-server nfs-common portmap
    
  2. 2. Edit /etc/exports file, and add the following line:

    /var/www/fileadmin 10.0.0.0/24(rw)
    
  3. 3. Run the following command to make the changes effective:

    Shell> exportfs -a
    
    

How it works...

You can fine tune the line in /etc/exports to fit your needs. Pay particular attention to access if you want your files to be secure. You could list individual servers as a comma-separated list, and give them explicit permissions to the shared folder.

The folder fileadmin will now be shared by other computers on the network, and could be accessed by several web servers in our scalable architecture. Changes to the TYPO3 code—such as installing extensions or changing configuration values—will still need to be done independently on each server, but all media files can be stored on the NFS share.

There's more...

In the following section we will see how we can mount a Network File System.

Mounting an NFS

You need to install similar tools—nfs-kernel-server, nfs-common, portmap—to mount the network file system correctly. Run the following command as a root user:

Shell> apt-get install nfs-common

After that, mount the shared folder on a different server with the following command:

Shell> mount -t nfs hostname:/nfs_folder /var/www/fileadmin

See also

  • Creating a scalable architecture

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image