Jump to content

Installing an ftp server on a Ubuntu LAMP server


Recommended Posts

Posted

I've decided to take the plunge into the murky world of Linux by giving myself a project. I'm going to set up a Linux Intranet server and run a CMS on it.

 

Ubuntu 6.06 Dapper Drake seems to be popular so I've gone with that. I've tried the LAMP server installation, and also the generic server, working through Perfect Setup.

 

Apache is working, as I can browse to the machine and get the default Apache page.

 

Now, how do I get my web site onto the server? Ubuntu doesn't seem to have a ftp server installed, and I'm having real dificulty installing one.

 

I've added more repositories, like this.

 

I keep getting :-

 

root@web1:~# apt-get install proftpd proftpd-common ucf
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package proftpd
root@web1:~#

 

I've tried accessing the repositories via a browser. The only one I can see is freecontrib.org. Is this normal?

 

[Whilst typing this I've tried apt-get update. It seems to be getting security.ubuntu.com, but not archive... I did this yesterday and it took 3 hours to complete - is there any way to stop it?]

 

Thanks. I've learnt a lot in the last couple of days doing this, but have hit a wall now. :?

Posted

Do this:

 

sudo cp /etc/apt/sources.list /etc/apt/sources.bak

 

sudo nano -w /etc/apt/sources.list

 

Delete any entries from the sources file and add the following, watch out for linewraps!:

 

deb http://us.archive.ubuntu.com/ubuntu dapper main restricted

deb-src http://us.archive.ubuntu.com/ubuntu dapper main restricted

deb http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted

deb-src http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted

deb http://us.archive.ubuntu.com/ubuntu dapper universe

deb-src http://us.archive.ubuntu.com/ubuntu dapper universe

deb http://us.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

deb-src http://us.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security main restricted

deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted

deb http://security.ubuntu.com/ubuntu dapper-security universe

deb-src http://security.ubuntu.com/ubuntu dapper-security universe

deb http://archive.ubuntu.com/ubuntu dapper multiverse

deb-src http://archive.ubuntu.com/ubuntu dapper multiverse

deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

 

Then do:

 

sudo apt-get update

sudo apt-get install proftpd

 

You might want to omit sudo if you're already logged in as root though!

Posted

@beeswax - I think you're slightly ahead, it's just that I haven't tried the GUI. I've just downloaded the Desktop version of Ubuntu, in case the server (non-GUI) is too much for me to start with.

 

@Geoff - I'm already using putty, it's great. It has several advantages over directly using the console, like copy & paste with the mouse.

Posted
I couldn't get things (setting up a new mysql database for a start) to work with the gui, so re-installed the LAMP server again, did it command line, and voila! There's a database somewhere in there and I've got to access it. the LAMP server's not on any network at the moment (another reason for using the gui) so I'm wondering about just connecting peer to peer and learning how to do things remotely for the time being. I'm assuming that it all works similarly to any webhost which provides a database in that you log in to a control panel (would that be ipconfig?) and go on from there. another problem, of sorts, is that the server sits on the desk, just to the right of me, and it's just so easy to go over to it and work on it.
Posted
If you have a headless LAMP server (like ours) you might find installing phpmyadmin (apt-get install phpmyadmin) useful for doing database admin stuff.
Posted

After a few days doing less interesting stuff, I've just got back to this and installed the Ubuntu LAMP server, just like beeswax.

 

http://security.ubuntu.com is easily accessible, and I can update from this no problem.

 

I still can't access anything on http://archive.ubuntu.com, or any of the sub domains, so I've commented out these entries from /etc/apt/sources.list

 

Is the server down at the moment? I've been having this trouble for over a week now.

Posted
I still can't access anything on http://archive.ubuntu.com, or any of the sub domains, so I've commented out these entries from /etc/apt/sources.list

 

Is the server down at the moment? I've been having this trouble for over a week now.

 

gb.archive.ubuntu.com works fine from here as of now. I'm assuming you've set your proxy server? Mine's set in my ~/,bashrc:

 

# Work Proxy
HTTP_PROXY="http://proxyIP:80"
http_proxy="http://proxyIP:80"
ftp_proxy="http://proxyIP:80"
FTP_PROXY="http://proxyIP:80"
no_proxy="http://localservers"
export HTTP_PROXY http_proxy ftp_proxy FTP_PROXY no_proxy

 

my /etc/apt/sources.list uses ftp by default, looks like this and works. You don't want PLF or multiverse for a server though.

 


deb [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper main restricted
deb-src [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper-updates main restricted
deb-src [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
deb [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper universe
deb-src [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
deb [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper-backports main restricted universe multiverse
deb-src [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper-backports main restricted universe multiverse

deb [url]ftp://security.ubuntu.com/ubuntu[/url] dapper-security main restricted
deb-src [url]ftp://security.ubuntu.com/ubuntu[/url] dapper-security main restricted
deb [url]ftp://security.ubuntu.com/ubuntu[/url] dapper-security universe
deb-src [url]ftp://security.ubuntu.com/ubuntu[/url] dapper-security universe

## PLF
# deb [url]http://packages.freecontrib.org/ubuntu/plf/[/url] dapper free non-free
# deb-src [url]http://packages.freecontrib.org/ubuntu/plf/[/url] dapper free non-free

Posted

You can also set the proxy for apt in /etc/apt/apt.conf

 

Aquire::http::Proxy "http://proxy.lancsngfl.ac.uk:8080/";

Posted

It seems like it's a problem with our LEA's ISP. No surprise there - we've had this sort of problem before with a few web sites and email servers unreachable. Techs in other schools have stories of strange DNS entries at the ISP.

 

I've checked my proxy configuration in /etc/apt/apt.conf and it's correct. Besides, I can access security.ubuntu.com no problem, so that proves the entry for the proxy server is correct.

 

From a browser on my XP desktop at work, I can access security... but not archive... .

 

I'm writing this from home, where I've just set up Ubuntu LAMP server on a virtual machine, and it accesses the default repositories right out of the box with no reconfiguration.

 

Fortunately, we're getting a new ISP next term, after years of poor service from the current one.

 

@ Pete & Geoff: Sorry for taking your time, and thanks for the information. You've helped me narrow the cause of the fault.

Posted

Might be ECN support?

 

echo 0 > /proc/sys/net/ipv4/tcp_ecn

 

Alternatively it might be Window Scaling?

 

echo 0 > /proc/sys/net/ipv4/tcp_window_scaling

 

If doing either fixes the problem, then your ISP has a busted router that needs fixing.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...