- Connecting to you instance with putty. Run command sudo su
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQvQi8Rc-tZ64rthY33dIVBCYeGrGEgiKQginhIGg_HI6tZChe2MErazibYIGeXErJDhKGWJx_pRkKmsrn2cZauJFjChLENHLSvyGS4k2a_OUuFZReHThpvnEnLplh_tNpx4qr3zIwqxk/s640/apache.png)
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