What I have done now is start a …

July 26, 2011 | By: | 4 Comments
Posted in

                                                              

This entry is part 7 of 7 in the series Building a Web Developer / Designer PC

Comment posted How to Install a Web Server and More in Ubuntu Linux by Neville Cox.

What I have done now is start a hole new clean install, and yes I did install LAMP at the same time. So lets start with Lamp, so what I have done is uninstall LAMP folling an other tutorial and it seemed to work, so now I don't have lamp.
So now what is the correct way ti install LAMP ?

When it comes to my FTP server I installed VSFTPD and I added users into var/www then I enabled public_html and I don't know if I had done that the correct way, I think I did it also in the var/www directy like this.
# mkdir ~/public_public
Then I enabled the user directory
# ln -s ../mods-available/userdir.conf usredir.conf
# ln -s ../mods-available/userdir.load userdir.loda

Then restarted Apache
# /etc/init.d/apache2 restat

I must say I lost now

So as I said above New install with lamp but I have now uninstalled lamp, so if you can help me with this it would be great

Neville Cox also commented

  • Thanks for your reply
    I have had no problem installing Ubuntu server 11.04, I downloaded the ios burnt to cd and booted the pc from cd all ok, during the install i had the option to add software, so I added LAMP.
    When install finnished I checked the ip address of the server (192.168.1.197) all ok then I set the root password with # sudo passwd root and entered in the password all ok.
    Next get updated
    So i entered in
    # apt-get update all ok
    # apt-get upgrade all ok
    Next I installed Telnet
    # apt-get install telnetd all ok
    restarted server # shutdown -r now all ok
    Switched to another Pc on the network and telneted to the server 192.168.1.197 ok
    The next thing I did was to install proftpd
    # apt-get install proftpd all ok
    The next thing was to configure the shell file so that when I add users to the server they wont be able to telnet to the server, so I typed from root as SU # cd /etc
    Then # vi shells
    at the bottom of that file I added a line
    /bin/false Saved it and exited vi
    typed in # cat shells to check if the changes were saved, all ok
    Next I added a web user
    # cd /var/www
    # mkdir bill
    # Useradd bill –p “my root password” –d /var/www/bill –s /bin/false
    # chown bill bill
    # passwd bill
    I was asked for password so I entered it in
    the next thing was ti install Webmin
    # wget http://www.webmin.com/download/deb/webmin-current.deb
    Waited for that to finnish
    # sudo dpkg -i webmin-current.deb
    waited for that to finnish
    got some errors but the next command fixed that
    # sudo apt-get -f install
    So i went to my browser and went to
    http://192.168.1.197:10000 and loged with my root password XXXXXX all ok
    next I installed Webalizer
    # apt-get install webalizer all ok
    I had to go in and make in the webalizer config file of whick would enable wealized to analyz apache web server log file, so I used vi to edit the webalizer config file by removing the “.1” from the end of the logfile entery.
    Then I went to Webmin via https://192.168.1.197:10000 from an other Pc, the clicked on “Scheduled Cron Jobs”, then clicked “Creat A New Schedule Cron Job”, then choose to execute the job as root .
    The commant toexecute is /usr/bin/webalizer, click on”times and Dates Selected below”, under the minutes select and chooes 0,15,30 and 45 for hours, days, months and weeknnds, select “all”
    Thisi all seemed to be ok
    Next I installed phpmyadmin
    # sudo apt-get install phpmyadmin
    When i was asked what web server I was using, Ichose apache2 all ok
    So I was all done, it’s great every thing worked but I couldn’t connect to the server via ftp, so I could’t upload files to the web page.
    So I started again a fresh install this time I installed VSFTPD inseted if PROFTPD, Great I now can connect but now I still can not load files, It seems that thers is no public_html folder.
    How do I fix this?
    Your post is good but it looses me, I’m only a newbee HELP!!!

Recent comments by Neville Cox

  • Ubuntu LAMP Server With Torrentflux In VMware
    Hi

    I'm a newbee and I'm trying to install a web server on a disused pc and using Ubuntu server 11.04 with lamp but I'm having all sorts of problems with FTP, I have trird proftpd with no luck connecting and I have tried VSFTPD it connects but I have a problem putting the files up on the web, so I need some help.
    I know I'm missing something, but what is it.
    I can send the hole process that I'm using if it would help

    Many Thanks
    Neville


Comments