Ubuntu 10.04 LTS Server
Internet connection
First thing you need to do is to download the ISO file from Ubuntu's homepage, click on the link above and chose your edition. Burn the ISO on a cd and reboot, Or you could try it out with Virtualbox first.
This is what you'll see after you've booted it up.
Press Install Ubuntu Server and follow the guide which is very easy.
You will be asked to install automatic security updates which i would recommend.
Press space on [ ] LAMP server.
After your done your gonna get this screen. Enter the login name and password you chose during the installation.
To try if PHP works :
cd /var/www/
sudo nano phptest.php
insert this line into the file and save it.
after that type ifconfig to see your ip adress.
connect to the page from another computer connected to the inet. at http://ipadress/phptest.php and you should see something like image above. And you can test if your apache works by http://ipadress/
optional..
[-.,.-*''*-.,,.-*''*-.,,.->
install a ssh server :
sudo apt-get install openssh-server
sudo /etc/init.d/ssh restart
ftp server:
sudo apt-get install vsftpd
sudo service vsftpd restart
the configuration file is in /etc/vsftpd.conf
webmin:
wget http://www.webmin.com/download/deb/webmin-current.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/libm/libmd5-perl/libmd5-perl_2.03-1_all.deb
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl
sudo dpkg -i libmd5-perl_2.03-1_all.deb
sudo dpkg -i webmin_1.510_all.deb
connect to it by going to https://ipadress:10000/
change the PHP configuration to the path /etc/php5/apache2/
For security reasons i would recommend that you stop the ftp/ssh/webmin services after your done using them.
sudo /etc/init.d/ssh stop
sudo service vsftpd stop
sudo /etc/init.d/webmin stop
then use start instead of stop to start them again when you need to
[-.,.-*''*-.,,.-*''*-.,,.->
Useful paths & command lines :
sudo - ("su" "do") execute command and superuser.
/var/www/ - your web folder.
top - checks your cpu mem and so on..
cd - change directory.
rm - remove files.
ls - list files.
clear - clear screen.
chmod - changes access modes.
apt-get - Deb/Ubuntu software packages.
/etc/init.d/apache2 restart - restart the apache server.
service mysql restart - restart mysql server.






No comments:
Post a Comment