With a control panel such as cPanel all the elements needed for a lamp or lemp stack is included(nginx will need to be installed).
cPanel does not officially support nginx yet but you can set up nginx on cPanel using NginxCP installation script.
If you want to do a manual lamp install without using a control here is how.
Installing lamp stack on centOS 7 without using a control panel as root:
Update packages:
Apache Install
Install Apache:
Start Apache:
Code:
systemctl start httpd.service
Set Apache to start at boot:
Code:
systemctl enable httpd.service
Installing MariaDB(MySQL)
Code:
yum install mariadb-server mariadb
Start MariaDB:
Enable MariaDB on boot:
Code:
systemctl enable mariadb.service
Finish setting up the MariaDB Install:
Code:
mysql_secure_installation
You will be asked for the root password. Because you didn't set it earlier, press Enter to set a password now.
Type "Y" to set the root password.
Enter and confirm the new password.
You will be asked more questions as part of the security configuration. Answer Y to these questions
Installing PHP:
Code:
yum install php php-mysql
Restart Apache:
Code:
systemctl restart httpd.service
Test PHP:
create a file in /var/www/html/ called test.php
Enter the following into the file
go to http: //your server's IP address/test.php and make sure php is working.
Hope this helps.