AWS (Amazon Web Services) provides EC2 instance for its users which can be used as a webserver and on cloud. Users has the flexibility to choose what operating system and which environment they want to use for their web server.
For one of our project the client has selected SUSE linux as the EC2 instance and web had to setup LAMP (Linux Apache MySQL PHP) on the server.
Here are the commands listed that I ran to setup it up so it may help someone else setting up LAMP on a SUSE linux box:
(Note: There are few packages installed based on the project requirements so you can exclude them as per your need)
- zypper in apache2
- zypper in php5 php5-mysql php5-curl php5-soap php5-zip php5-pcntl php-mbstring apache2-mod_php5
- zypper in mysql mysql-tools
- chkconfig apache2 on
- chkconfig mysql on
- service apache2 restart
- service mysql restart
Note: You need to run these commands as and root users.
Once the setup is completed you can test by putting a sample php script file under /srv/www/htdocs/ and run through your browser.