- Connecting to you instance with putty. Run command sudo su
Install mySQL server with command: yum install mysql-server mysql
Install PHP with command: yum install php php-mysql
Install other optional php packages if you want.
Start Apache server with command: service httpd start.
To test your Apache and PHP install, go to /var/www/html/ directory and create a file index.php with one line of code:
<?php phpinfo(); ?>
In your favorate browser, enter your instance's public DNS name, something like ec2-##-##-##-###.compute-#.amazonaws.com.
what are the available PHP optional packages?
ReplyDelete