Installing Pure-FTPd on Ubuntu 8.04 Server

Until recently my choice for an FTP server had always been ProFTPd, however I found its difficulty to install made it a constant chore every time I had to set up a server.  So I sought out an alternative that was quick and easy to install yet did not sacrifice functionality or security.  The answer was Pure-FTPd.

I’m sure these instructions are very similar for most distributions, but I thought I’d specifically target Ubuntu 8.04 Server since that is what I am installing it on today. If you are using the desktop edition of Ubuntu or another distrobution that has a GUI you can most likely use that alternative.  Instead of apt-get commands you would simply fire up the Synaptic Package Manager and search for the install package.

I tend to jump right to the super user when I log in (bad habit, I know).  So if you’re not doing that you will have to prefix all commands with ‘sudo’ or they might not work. Start off by installing the program and all of its required packages.

apt-get install pure-ftpd

When prompted, enter Y and hit enter.

Now, set up a new account using the ‘useradd’ command. You’ll also need to specify the home directory for the user by adding ‘-d /home/directoryname -m’ so when the user logs in they have a folder to upload/download files from.  You don’t have to use the /home dirctory for this but I always do to make things simple.  Here is the command I used.

useradd -d /home/username -m username
passwd username

Since I don’t want this user being able to cruise through the file system and see everything I’m going to lock the user to the home directory we just made. Open up /etc/passwd for editing. I use pico for this, you can use whatever program you like. Search for the user you just made (ctrl+w in pico) and add /./ to their home directory like this:

/home/username/./

Note that the line will be a lot messier than that, so just squeeze it in where appropriate.

Also, make sure to put in a shell at the end of that line… /bin/bash works fine. After all of that, add their username to /etc/ftpallow if you want to manually allow access to certain accounts.

Now just type pure-ftpd-control restart on the command line and you’re ready to test out your account!  Hop on another computer, or just SSH into another one and try from there.  If it doesn’t work its possible your install didn’t set up some of the proper configuration.  This happens automatically on Ubuntu 8.04 Server but on other distrobutions you may need to perform this next step.

Edit /etc/pam.d/pure-ftpd using your favourite editor to look like this:

auth sufficient pam_ftp.so
auth required pam_unix_auth.so shadow use_first_pass
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth required pam_listfile.so item=user sense=allow file=/etc/ftpallow onerr=fail
auth required pam_shells.so

Save the file, restart the server again and try it out again.  If you’re having troubles still I suggest seeking help from the Documentation.

Tags: , , , , , ,

  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments

phpMyAdmin Installation on Ubuntu Server 8.04

Since managing a MySQL database through a command line is tedious we will be installing a web-based GUI so we can access MySQL through any web browser on any computer.

On many Unix machines you’d have to go to the phpMyAdmin homepage and download the files there, decompress them and set up a config files before you could get to managing your database.  If you’re setting up several machines to work in a cluster you have better things to do with your time. This is why I love Debian/Ubuntu distrobutions.

apt-get install phpmyadmin

During the install process you will be asked which version of Apache you are running.  Ubuntu Server Edition uses Apache 2.2, so it wont be automatically configured for you.  After the install process completes you will need to configure Apache 2.2, so in your favourite text editor open up /etc/apache2/apache2.conf and search for the word include.  Add a new line next to its first match like this:

Include /etc/phpmyadmin/apache.conf

Save the file, exit to your command line and restart Apache with the following command:

/etc/init.d/apache2 restart

Your phpMyAdmin installation is now ready to use. Point your browser to http://domain/phpmyadmin/ and log in with your mySQL username and password.  It’s that simple!

Tags: , , , , , ,

  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments

Setting up a LAMP Server with Ubuntu Server Edition 8.04

Our first installment of the Ubuntu Server Edition series will consist of installing Ubuntu and configuring it to run as a LAMP (Linux Apache MySQL and PHP) server.  We will be using the Server Edition there will be no GUI installed unless you do so manually.  Since we want optimal performance, we will not be doing that today.  So if you’re not comfortable with a command line, this tutorial is not for you.

To start off you’re going to need a copy of Ubuntu Server Edition 8.04 which can be downloaded from their website or you can order free CDs.  You’ll also need a computer that has a network connection, a CD-ROM and you’ll need a keyboard and monitor for the initial stages.  Today I am using a 500mhz Pentium III computer that I’ve had lying around for years. It has 1.5gb of RAM, a 4.3gb HDD and a Radeon 8500 in it plus a generic NIC card.  Despite how old this computer is it will be able to do quite a bit of work since it wont have the overhead of a GUI and Linux is so much more efficient as a web server than Windows.

Pop in your disc, and boot up the computer.  You may need to enter your setup and configure it to boot off of a CD (or a USB stick if that’s what you’re using).

UNDER CONSTRUCTION
-describe install steps here-

  • Del.icio.us
  • StumbleUpon
  • Reddit
  • Twitter
  • RSS
read comments
 Page 69 of 72  « First  ... « 67  68  69  70  71 » ...  Last »