Dell PowerEdge C6220 Installation Manual - Page 14
Browse online or download pdf Installation Manual for Server Dell PowerEdge C6220. Dell PowerEdge C6220 26 pages. Lamp reference architecture centos 6.2
Also for Dell PowerEdge C6220: Technical Manual (35 pages), Portfolio Manual (27 pages)
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;
Principled Technologies, Inc. 14