How to Convert a Computer Into a Web Hosting Server
Virtually any modern computer can be turned into a web server. One of the most popular web server configurations is LAMP (Linux-Apache-MySQL-PHP), which uses the Linux operating system, Apache web server, MySQL database server and the PHP web development language. The free openSUSE Linux distribution is bundled with all of these tools, plus many more useful web server and development packages, such as Ruby on Rails, Java, and Perl. The installation is straightforward, and automatically installs and configures a web server for you.
Instructions
-
Install openSUSE Linux
-
1
Place the openSUSE DVD in the DVD reader and reboot the computer.
-
2
Select "Installation" on the "openSUSE Installer" window. The installer initializes, which may take several minutes.
-
-
3
Select the desired language and keyboard layout and read the License Agreement on the "Welcome" screen. Click "Next." The installer will analyze the system configuration.
-
4
Select "New Installation" and "Use Automatic Configuration" on the "Installation Mode" screen. Click "Next."
-
5
Select the Region and Time Zone for your area. Check that the correct time is displayed. Click "Next."
-
6
Select "KDE Desktop" (unless you prefer Gnome) on the "Desktop Selection" screen. Click "Next."
-
7
Click "Next" on the "Suggested Partitioning" screen to accept the suggested partitioning, which will work for most users.
-
8
Fill in your user information on the "Create New User" screen. Leave "Use this password for system administrator" checked. Uncheck "Automatic Login." Click "Next."
-
9
Click the "Software" heading on the "Installation Settings" screen. Under "Desktop Functions" uncheck all the categories so that no desktop software is installed. Under "Server Functions" check the "Web and LAMP Server" to install the web server software. Under "Development" check "Web Development" and any other development tools you want available on the server. Click "OK" to return to "Installation Settings."
-
10
Scroll down to the bottom of the list to the "Firewall and SSH" section. Click "disable" next to the Firewall option.
-
11
Review the information on the "Installation Settings" screen and click "Install." Click "Install" on the confirmation window to start the installation. Installation will take approximately 20 minutes, depending on the speed of the computer. When complete, the system will start up the desktop.
Start and Enable the Servers
-
12
Open the "Kickoff Application Launcher" on the task bar. Click the "YaST icon in the "Computer" section. The "YaST Control Center" launches.
-
13
Click the "System" section on the left side of the window. Click the "System Services (runlevel)" icon on the right side of the window. The "System Services" window opens.
-
14
Click on "apache2" in the "Service" column. Click the "Enable" button to start the Apache web server and configure it to start up with the system. Click the "OK" button to close the message window.
-
15
Repeat starting and enabling for the mysql (MySQL database server) and sshd (SSH server) services.
-
16
Click "OK" and answer "Yes" to the message that pops up.
-
17
Click the "Network" section on the left and the "HTTP Server" on the right to start the Apache web server configuration wizard. Refer to the Help and online documentation for information on customizing Apache for your needs.
-
1
Tips & Warnings
For best results, remove all disk partitions before installing openSUSE.
Set up the web server to automatically serve content from users' public_html directory by enabling the mod_userdir module. Provide customized web addresses for multiple sites using Apache's virtual hosting capabilities.