AMP stack AMI on OpenSolaris 2008.11
|
AMI ID: |
ami-c7cf28ae |
|
AMI Menifest: |
sun-osol-2008-11/AMP_Stack_2008.11_32_1.0.img.manifest.xml |
|
License: |
Public |
Description:
This 32bit AMI is based on OpenSolaris 2008.11 AMI. Following components are included within this AMI.
-
Apache 2.2
-
MySQL 5.0
-
PHP 5.2 (along with extensions like APC, DTrace, Suhosin, Memcache) runtime
-
phpmyadmin for administering mysql database.
Configurations:
-
Apache and mysql services are pre-configured to start on boot.
-
If you would like to use phpMyAdmin, you will need to do the following:
# cp /etc/apache2/2.2/samples-conf.d/phpmyadmin.conf /etc/apache2/2.2/conf.d/
# svcadm restart http:apache22
-
Dtrace probes are available within Apache and PHP runtime. Sample Dtrace scripts are available under /opt/DTT/
For more details on security information and image usage instructions, Please refer to the '/root/ec2sun/README' file.
AMP Stack File Layouts
|
|
Apache |
PHP |
MYSQL |
|
Binary Runtime Files |
/usr/apache2/2.2/bin |
/usr/php/5.2/bin |
/usr/mysql/5.0/bin |
|
Configuration Files |
/etc/apache2/2.2 |
/etc/php/5.2 |
/etc/mysql/5.0 |
|
Web Documents / Data Files |
/var/apache2/2.2 |
/var/php/5.2 |
/var/mysql/5.0 |
Administering AMP Stack
|
Command |
Apache |
MYSQL |
|
Start Service |
svcadm enable http:apache22 |
svcadm enable mysql:version_50 |
|
svcadm disable http:apache22 |
svcadm disable mysql:version_50 |
|
|
Restart Service |
svcadm restart http:apache22 |
svcadm restart mysql:version_50 |
You can reset mysql 'root'password by running following command:
# /usr/mysql/5.0/bin/mysqladmin -u root -p password '<MySQL password>'
It is highly recommended to secure your MySQL database by following the guidelines mentioned within MySQL 5 database documentation:
http://dev.mysql.com/doc/refman/5.0/en/security-guidelines.html
ZFS + EBS for MYSQL
User can now take advantage of ZFS to manage EBS volumes and can store mysql data on it. It may improve performance for certain workloads and database sizes.
For more information visit
Documentation:
-
For questions regarding Apache, MySQL and PHP runtime, please visit Web Stack Getting Started Guide for OpenSolaris 2008.11 at http://wikis.sun.com/display/WebStack/Web+Stack+Getting+Started+Guide
-
For general questions on OpenSolaris, please visit OpenSolaris on Amazon EC2 Getting Started Guide:
http://www.sun.com/third-party/global/amazon/Sun_AmazonEC2_GettingStartedGuide.pdf
Support
-
Register at http://www.sun.com/third-party/global/amazon/ to receive latest news on OpenSolaris AMIs
-
For technical support during Beta period, please send emails to ec2-solaris-support[AT]SUN[DOT]COM.
-
AMP Stack within OpenSolaris are delivered as part of WebStack project. For any questions related to these components, please write to webstack-discuss[AT]opensolaris[DOT]org

Is the (un-needed) xServer stuff still included in this AMI?
Posted by Marc on March 03, 2009 at 11:19 PM PST #
Marc, Yes this does include the default packages, since we are not changing contents from the vanilla OpenSolaris 2008.11 outside of EC2 even though we have some exceptions. You are welcome to re-bundle following the instructions at http://www.sun.com/third-party/global/amazon/Sun_AmazonEC2_GettingStartedGuide.pdf to create an AMI without the X-Server packages. We may down the line release a Just enough Operating System, for the OpenSolaris 2008.11 AMI, but that decision is not final yet.
Posted by Sujeet Vasudevan on March 04, 2009 at 10:55 AM PST #