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

powered by SEO Super Comments

If you like this post, why not share it?
  • StumbleUpon
  • del.icio.us
  • Digg
  • Google Bookmarks
  • Reddit
  • Mixx
  • Yahoo! Bookmarks
  • blogmarks
  • Twitter

Related posts:

  1. Installing ffmpeg-php on an Ubuntu 9.04 LAMP Server
  2. Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI – Installation of OpenSSH.
  3. Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI – LAMP installation with cgi-bin
  4. Installing a Web Server on Your Old Laptop
  5. Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI – Introduction.


Comments

4 Comments so far

  1. Neville Cox on July 27, 2011 2:12 am

    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.....urrent.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!!!

  2. UbuntuLinuxHelp on July 27, 2011 11:09 pm

    @Neville

    One of the things many (including myself) don’t do, is select LAMP. Why? Because it pre-installs a generic LAMP server. Instead, it’s better to install a base server and then add the LAMP components as per requirements. ;)

    Better to use aptitude when possible (instead of apt-get). Better to install SSH instead of Telnet.

    Better to add/change users AFTER you’ve installed and got things working. ;) Keeps things less complicated, this way when you have something working, make a change and things don’t work, then you can always go back a step to where everything was working.

    If you cannot upload files, this means that vsftpd is not working as expected (you indicate it’s working?). Have you checked file/directory permissions (chmod)? Have you checked file/directory ownership (chown)?

    When you change ownership of /var/www to ‘bill’, you knocked out the www-data, did you? :(

    You’re correct, there is no “public_html”, instead the path is: /var/www/…

  3. UbuntuLinuxHelp on July 27, 2011 11:20 pm

    @neville

    Also…

    Question: Did you edit your /etc/hosts file? It’s hard to tell (I’m not sitting at your server), maybe your FTP app cannot find the server via the hostname you use>
    Question: When you first installed proFTPD, did you: sudo aptitude install proftpd ucf menu? (Did you select “standalone”?)

    I had a similar issue, I could not upload files to the web server (/var/www). I realized that I needed to change the ownership to the correct group www-data so: sudo chown -R www-data:www-data /var/www

  4. Neville Cox on July 29, 2011 5:10 am

    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

Name (required)

Email (required)

Website

Speak your mind