How do verify the final output for lamp cookbook?
I have a ubuntu desktop(16.04), following https://www.linode.com/docs/applications/configuration-management/creating-your-first-chef-cookbook/ the tutorial to implement install and implement lamp stack in my node.
How to check my final result?
1 Reply
For checking the status of your services and application, you will utilize the command line on your desktop environment. To launch the command line, you would press CTRL + ALT + T
.
You're able to check the status of Chef and its status by running the command chef-server-ctl status
. If you'd like the status of individual services, you can run chef-server-ctl status SERVICE_NAME
.
Chef has very thorough documentation:
General documentation
Service documentation
In regards to the LAMP stack, you're able to check the statuses by running the following commands:
Apache
sudo systemctl status apache2
MySQL
mysqladmin -u root -p status
PHP
You would have to utilize your browser to determine if PHP is properly installed and running by creating a PHP file:
sudo nano /var/www/html/info.php
Insert:
<?php
phpinfo();
?>
In your browser, navigate to:
http://server_ip_address/info.php
You should then see a PHP status page on your browser.
For future readers: Please keep in mind these are commands are for Ubuntu