Be carefull while using phpinfo script in EC2 beanstalk

Currently I tried some EC2 beanstalk instances in AWS.
While working I found that in php environment setting there was a parameter for Database username and password.
For easy go I set the parameter with mysql Database username and password.

After doing this I created a php info script in Web directory to check installed php extension


vi phpinfo.php


After hitting the URL with phpinfo.php in Web browser I found that the Database username and password was visible in php info page.
Hence be careful with php info and setting Database username and password in php environment.

Read Some More Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.