Friday Aug 29, 2008

AMP stack AMI on OpenSolaris

This 32 bit AMI is based on OpenSolaris 2008.05 (with packages updated to build 91) . Following components are included within this AMI
  • Apache 2.2 , PHP 5.2.6, MySQL 5.0.x and Memcached 1.2.5 .

  • phpMyAdmin

  • Apache and MySQL services are pre-configured to start on boot.

  • Dtrace probes are also available within Apache and PHP runtime. Sample Dtrace scripts are also available under /opt/DTT/ .

AMI ID:

ami-45f1152c

AMI Manifest:

sun-osol/opensol2008.05-b91-AMPStack.img.manifest.xml

License:

Public

Description:

Open Solaris 2008.05 is a distribution based on OpenSolaris operating system and includes popular features like

  • ZFS (as its root file system)

  • new packaging system known as Image packaging system (IPS) where users can download any additional software, if needed, from a repository.

  • Dtrace for performance monitoring and tuning purposes.

  • GNU binaries under default PATH and many more...


For more information, check out OpenSolaris 2008.05 Getting Starting Guide from here


Amazon EC2 customers can get more information on OpenSolaris by visiting our OpenSolaris on Amazon EC2 Getting Started Guide from http://www.sun.com/thirdparty/global/amazon/Sun_AmazonEC2_GettingStartedAug08Update.pdf

AMP Stack File Layout:


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:

Commands

Apache

MySQL

Start Service

svcadm enable http:apache22

svcadm enable mysql:version_50

Stop Service

svcadm disable http:apache22

svcadm disable mysql:version_50

Restart Service (only if the service is already running)

svcadm restart http:apache22

svcadm restart mysql:version_50


Enabling phpMyAdmin for MySQL Administration:

phpMyAdmin – popular tool written in PHP to handle MySQL administation over the web – is bundled within this AMI. However, for security purposes, 'phpMyAdmin' application is 'disabled' by default within this AMI. Users are strongly urged to protect their MySQL 'root' user with a proper password before enabling this application.

  • Secure your MySQL database by doing some thing like

    • /usr/mysql/5.0/bin/mysql -u root -p password <give a new password>

  • Un-comment the following line in /etc/apache2/2.2/conf.d/phpmyadmin.conf

Alias /phpmyadmin /usr/phpmyadmin

  • Restart Apache Service by doing some thing like

  • Now, access phpMyAdmin application over the web by visiting

    • http://<dns name associated with this AMI>/phpmyadmin . Will need to login with a valid MySQL database's user name and password.

Support :

  • 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


Register for OpenSolaris AMIs by visiting here.

About

Information about Solaris and OpenSolaris on Amazon Web Services (AWS) EC2. Look here for the latest information on the program and any late breaking information on (Open)Solaris on EC2.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today