
A Principled Technologies test report 13
Red Hat Enterprise Linux 6: Performance advantages with an
open source software stack
done
mv php.conf-orig php.conf
4. Modify the default PHP configuration file /etc/php.ini. For each row in the next table, replace the line in the PHP
configuration file (the entry in the left column) with the contents on the right.
error_reporting = E_ALL & ~E_DEPRECATED
error_reporting =
E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
mysql.default_host = localhost
mysql.default_password = web
mysqli.default_port = 3306
5. Create the directories that will contain the Web content:
mkdir /www
mkdir /www/html0{1,2,3}
mkdir /www/*/ds2
6. Start the Web server at boot time:
chkconfig httpd on
Installing MySQL Database on Red Hat Enterprise Linux 6.2
The MySQL database software was installed as part of the operating system installation. We configure three
independent instances, and start and stop them from scripts rather than use the init/services mechanism.
1. Stop the default MySQL instance and prevent it from automatically starting”
service mysqld stop
chkconfig mysqld off
2. The configuration file for each instance will generate from a template. Create the file /mysql/my-template.cnf
with the content:
[mysql]
socket = /mysql/logXYZZY/mysql.sock
[mysqld]
user = mysql
default_storage_engine = InnoDB
socket = /mysql/logXYZZY/mysql.sock
pid_file = /mysql/logXYZZY/mysql.pid
skip-networking
large_pages = true
key_buffer_size = 32M
myisam_recover = FORCE,BACKUP
max_allowed_packet = 16M
max_connect_errors = 1000000
innodb = FORCE
datadir = /mysql/datXYZZY
Comentarios a estos manuales