How to Build Web Pages in Linux
Linux computers come with Apache software for web serving. This has been the most popular web server on the Internet since its release in 1995. Building web pages on Linux is similar to building web pages on any other operating system. Some web developers write out by hand the HTML and CSS (Hypertext Markup Language, and Cascading Style Sheets) used to build web pages; this is called "handcoding." Others use Linux software packages for web design, similar to commercial software available for Macintosh and Windows.
Instructions
-
-
1
Use the "Find" command to find the httpd.conf file on your Linux installation: "find / httpd.conf".
-
2
Open the httpd.conf file and search for the word DocumentRoot. Make a note of the directory listed in this line. This is where you will store the files you create for your website.
-
-
3
Open the package management system for your Linux installation and review your options for web development packages. If you prefer to handcode your HTML and CSS, check the categories for text editors and dedicated HTML and CSS editors.
-
4
Install one or more development packages for your Linux operating system. Web developers spend a great deal of time working with this software, so it is well worth the investment of your time to try several and see which one works best for you. Popular HTML development packages include jEdit, Quanta, and Bluefish.
-
5
Create your first web pages and store them in the DocumentRoot folder you noted in Step 2.
-
6
Start up your Apache Web server by using the commands necessary for your installation of Linux. Open a web browser window and go to "http://localhost". This will show you what your website will look like in a web browser. You can now switch back and forth between your web browser and web development package to see your changes as you save them.
-
1