What's better for web development Ubuntu-Server or Ubuntu-Desktop? [closed]

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


Solution 1:

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.

Solution 2:

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.