Access over 20 million homework & study documents

Secure Web Hosting Environment

Content type
User Generated
Type
Study Guide
Rating
Showing Page:
1/10
Web Hosng 1
Running Header: Web Hosting environment
Setting up, configuring and securing LAMP
Requirements
A LAMP package is required and the initials stand for Linux, Apache HTTP server, My SQL and
PHP.
Once this package is downloaded, (it is an open source application and hence free), the first step
is to ensure that Linux is the operating system running in the system and it is already installed
and configured. In this case, the chosen Linux operating system is Ubuntu (Negus, 2010).
Installing Apache HTTP server
Installation of apache package should be done using APT which retrieves and installs the
package ($ sudo apt-get install apache2). The server should thus automatically begin after the
installation.
Installing PHP
The PHP Apache module is usually contained in php5 package, it is installed using APT. In
order to install and configure MySQL extension files, the following lines are used. This ensures
that the loading is automatic and also instructs Apache to reload its configurations (Rosebrock &
Filson, 2004).
$ sudo apt-get install libapapache2-mod-php5 php5-mysql php5-gd

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/10
Web Hosng 2
$ sudo /etc/init.d/apache2 restart
At this point, the Apache is now ready to process HTTP requests; this should be complete by
processing of PHP files. In order to test it, the following procedure should be used. A file
named /var/www/info.php which contains phpinfo () function. If PHP information is not given
then the installation should be repeated or cross-checked for installation errors. The diagram
below shows the content of PHP information which should be shown at the end of a successful
installation process (Negus, 2010).
Other ways of configuring apache is by configuring the options which are in the files
AccessFileName directive; this is usually set to .htaccess. The directives in the access
configuration files are usually applied to all the objects which are under the directory which
basically contains subdirectories in their contents (Negus, 2010). The configuration of the files

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/10

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 10 pages?
Access Now
Unformatted Attachment Preview
Running Header: Web Hosting environment Setting up, configuring and securing LAMP Requirements A LAMP package is required and the initials stand for Linux, Apache HTTP server, My SQL and PHP. Once this package is downloaded, (it is an open source application and hence free), the first step is to ensure that Linux is the operating system running in the system and it is already installed and configured. In this case, the chosen Linux operating system is Ubuntu (Negus, 2010). Installing Apache HTTP server Installation of apache package should be done using APT which retrieves and installs the package ($ sudo apt-get install apache2). The server should thus automatically begin after the installation. Installing PHP The PHP Apache module is usually contained in php5 package, it is installed using APT. In order to install and configure MySQL extension files, the following lines are used. This ensures that the loading is automatic and also instructs Apache to reload its configurations (Rosebrock & Filson, 2004). $ sudo apt-get install libapapache2-mod-php5 php5-mysql php5-gd $ sudo /etc/init.d/apache2 restart At this point, the Apache is now ready to process HTTP requests; this should be complete by processing of PHP files. In order to test it, the following procedure should be used. A file named /var/www/info.php which contains phpinfo () function. If PHP information is not given then the installation should be repeated or cross-checked for installation errors. The diagram be ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Really helpful material, saved me a great deal of time.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4