1. Install gcc on the machine if you want to compile any native applications
************
$sudo yum -y install gcc
************
2. In RHEL7, red hat decided that it will bundle mariaDB instead of mysql - https://mariadb.com/blog/rhel7-transition-mysql-mariadb-first-look
"MariaDB is the default implementation of MySQL in Red Hat Enterprise Linux 7. MariaDB is a community-developed fork of the MySQL database project, and provides a replacement for MySQL. MariaDB preserves API and ABI compatibility with MySQL and adds several new features; for example, a non-blocking client API library, the Aria and XtraDB storage engines with enhanced performance, better server status variables, and enhanced replication.
$sudo yum install mariadb-server mariadb mariadb-devel
************
3. Secure the mariadb installation similar to mysql one
************
$sudo mysql_secure_installation
************
4. Install Apache httpd from package manager
************
$sudo yum install httpd
************
NOTE - all the apache httpd conf files and logs files should be under /etc/httpd/conf and /etc/httpd/logs folder. The web root should be under /var/www/html folder.
5. Add Apache httpd to systemd services to start on boot
************
$sudo systemctl enable httpd.service
************
6. Start the Apache httpd service
************
$sudo systemctl start httpd.service
************
7. Test whether the httpd is rendering the default landing page
************
$curl -vvv http://localhost/
************
8. Install php and its dependencies
************
$sudo yum install php php-mysql php-gd php-pear php-pgsql
************
9. Restart Apache httpd for loading php modules
************
$sudo systemctl restart httpd.service
************
10. Test with phpinfo page
************
$sudo vi /var/www/html/test.php
<?php
phpinfo(INFO_GENERAL);
?>
************
11. Test whether phpinfo page is returning valid results
************
$curl -vvv http://localhost/test.php
************
************
$sudo yum -y install gcc
************
2. In RHEL7, red hat decided that it will bundle mariaDB instead of mysql - https://mariadb.com/blog/rhel7-transition-mysql-mariadb-first-look
"MariaDB is the default implementation of MySQL in Red Hat Enterprise Linux 7. MariaDB is a community-developed fork of the MySQL database project, and provides a replacement for MySQL. MariaDB preserves API and ABI compatibility with MySQL and adds several new features; for example, a non-blocking client API library, the Aria and XtraDB storage engines with enhanced performance, better server status variables, and enhanced replication.
Detailed information about MariaDB can be found at https://mariadb.com/kb/en/what-is-mariadb-55/."
************$sudo yum install mariadb-server mariadb mariadb-devel
************
3. Secure the mariadb installation similar to mysql one
************
$sudo mysql_secure_installation
************
4. Install Apache httpd from package manager
************
$sudo yum install httpd
************
NOTE - all the apache httpd conf files and logs files should be under /etc/httpd/conf and /etc/httpd/logs folder. The web root should be under /var/www/html folder.
5. Add Apache httpd to systemd services to start on boot
************
$sudo systemctl enable httpd.service
************
6. Start the Apache httpd service
************
$sudo systemctl start httpd.service
************
7. Test whether the httpd is rendering the default landing page
************
$curl -vvv http://localhost/
************
8. Install php and its dependencies
************
$sudo yum install php php-mysql php-gd php-pear php-pgsql
************
9. Restart Apache httpd for loading php modules
************
$sudo systemctl restart httpd.service
************
10. Test with phpinfo page
************
$sudo vi /var/www/html/test.php
<?php
phpinfo(INFO_GENERAL);
?>
************
11. Test whether phpinfo page is returning valid results
************
$curl -vvv http://localhost/test.php
************
No comments:
Post a Comment