Dell PowerEdge C6220 II User Manual Page 14

  • Download
  • Add to my manuals
  • Print
  • Page
    / 26
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 13
Principled Technologies, Inc. 14
Dell PowerEdge C6220 and CentOS 6.2: A LAMP Reference
Architecture
PHP
PHP is a Web scripting language that can be embedded into HTML source
documents instead of using an external file to process data. The Web server interprets
the PHP code to generate a Web page. For more information about PHP, visit
http://www.php.net/.
Installation procedure
Installing Apache Web Server
1. Log onto the CentOS server as root.
2. Install the Apache Web Server application packages and their dependencies:
yum install @web-server
Installing MySQL Database
1. Log in as root.
2. Install the MySQL application packages and their dependencies
yum install @mysql @mysql-client
Installing PHP Scripting Language
1. Install the application packages and their dependencies:
yum install @php php-mysql
Testing with a sample LAMP application
To complete the LAMP deployment, we create a sample LAMP application
consisting of a test database with test data, a PHP script which creates a dynamic Web
page that prints the contents of a SQL query from the database. In this case, we
demonstrate using the well-known “Hello World” example.
1. Log onto the CentOS server as root.
2. Start the MySQL database instance.
service mysqld start
chkconfig mysqld on
3. Run the mysql_secure_installation utility to modify MySQL’s default settings
and set the instance’s root password to “RootPassword” (It is initially
unset).
mysql_secure_installation
4. Using the mysql client, create a test database, a test application user, and
set privileges:
mysql --user root --password=RootPassword
mysql> USE mysql;
Page view 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 ... 25 26

Comments to this Manuals

No comments