Am new with ubuntu and I want to create a website so I don't know what's best for me ubuntu desktop or server

- 102,282

- 105
- 2
- 6
-
4"A website" covers a lot of territory. A webserver is simply Ubuntu with a webserver added. A desktop is simply Ubuntu with a GUI added. Ubuntu is modular - you add what you want to add. The question has little meaning - it takes about ten minutes and two commands to change one flavor of Ubuntu into another. – user535733 Jan 22 '18 at 04:13
-
1Server does not bring a graphic desktop but has a kernel better suited for server/virtual tasks. You can install it afterwards but you probably rather have a one-time install. Go for the Desktop. – Thorbjørn Ravn Andersen Jan 22 '18 at 09:21
4 Answers
Ubuntu Desktop is all the bells and whistles of Ubuntu. It has a graphic interface that is easy to use and a great environment. If you never used Ubuntu before I recommend you start with the Desktop operating system. After you get in the swing of things then you can try your hands at Ubuntu Server. Ubuntu Server is stripped of all the graphics and is meant to be controlled via command line. The nice thing about Ubuntu is that you can run it in a Virtual Machine if you wanted to, or install straight on a spare computer you have around the house. It's not resource intensive so you can install it on most desktops and laptops.
To install it locally on your machine you can use a program called Virtual Box created by Oracle. The same people who make Java. Here are the instructions: http://www.beopensource.com/2016/05/how-to-install-Ubuntu-1604-LTS-in-Virtual-Box-VmWare.html
Using this link: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04 you can deploy your very own web server.
Your server files will be located at /var/www/html
and are viewable once apache2 is started. If you are doing this locally, then you will need to have the IP address. You can use ip addr
in the terminal to view your IP address and then from any browser you can type http://###.###.###/index.html
and you can see it.
I also recommend installing phpMyAdmin from this link here: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04 This will allow you to modify your MySQL databases easily in a web browser.
Using this link: http://linux-sys-adm.com/ubuntu-16.04-lts-how-to-install-and-configure-vsftpd-on-ubuntu/ will allow you to transfer files via SFTP with programs like FileZilla.

- 300
-
1"created by Oracle" - same as Java, VirtualBox was acquired by Oracle from Sun Microsystems. It was actually created by Innotek GmbH. And of course MySQL is also now owned by Oracle. – OrangeDog Jan 22 '18 at 14:27
-
Make sure to not skip the "and Secure" part of that phpMyAdmin guide. Though it only covers the bare minimum - you should also probably restrict it to local access only and configure SSL. – OrangeDog Jan 22 '18 at 14:29
From the official Ubuntu Desktop for developers webpage:
Ubuntu is the world's most popular open source OS for development. Ubuntu is used by thousands of development teams around the world because of its versatility, reliability, constantly updated features, and extensive developer libraries.
Install Ubuntu Desktop and after rebooting it install the tasksel package from the default Ubuntu repositories. Install the LAMP server task in tasksel (LAMP server = Linux, Apache2, MySQL, PHP) by following the instructions in this answer.

- 114,770
-
2Your link is a great answer but a little dated: currently supported version OS (12.04, 14.04 or 14.10) should redact 14.10 and add 16.04 and 17.10. Probably can prematurely add 18.04 too. – WinEunuuchs2Unix Jan 22 '18 at 02:15
The main difference is which software comes pre-installed, and how certain stuff is configured by default. Personally i'd go with the desktop edition, unless the machine will be running primarily as a server.
If you need to, you can easily install a web server (ie. apache), php, mysql/mariadb, and any other stuff you need to setup a web server environment on the same computer for testing purposes.

- 31
tl;dr: use Ubuntu Desktop.
In details, you should use:
- Ubuntu Desktop if you need to develop web application/pages; e.g. if you have to write HTML, CSS, JS, PHP, Python, Java, C# files with a graphical text editor.
- Ubuntu Server if you have a server PC and you want to install and serve the web application. You will configure HTTP server, a SQL database, containers, firewalls, SSH access, ecc.

- 129
- 1
- 7