Resources



OpenSolaris 2008.05 with Drupal AMI using AMP stack provided by Sun Microsystems, Inc.

Click for a printer friendly version of this document Printer Friendly Save to del.icio.us
 

This 32-bit AMI is based on OpenSolaris 2008.05 (with packages updated to build 91). Components included within this AMI are Drupal 6.4 (in pre-configured state), Apache 2.2 , PHP 5.2.6, MySQL 5.0.x, Memcached 1.2.5, phpMyAdmin, DTrace probes and Sample DTrace scripts. This AMI is provided by Sun Microsystems and requires registration.

Submitted By: nextgenec2  
AMI ID: ami-4ff01426
AMI Manifest: sun-osol/opensol2008.05-b91-AMPStack-Drupal.img.manifest.xml
License: Public
Operating System: Linux/Unix

Description

Following components are included within this AMI
  • Apache 2.2 , PHP 5.2.6, MySQL 5.0.x and Memcached 1.2.5.
  • Drupal 6.4 (pre-configured state)
  • 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/.
This AMI is provided by Sun Microsystesms and requires registration. OpenSolaris 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 blog and reading OpenSolaris on Amazon EC2 Getting Started Guide from http://www.sun.com/third-party/global/amazon/Sun_AmazonEC2_GettingStartedAug08Update.pdf

AMP Stack File Layout

ApachePHPMySQL
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 StackM

CommandsApacheMySQL
Start Servicesvcadm enable http:apache22svcadm enable mysql:version_50
Stop Servicesvcadm disable http:apache22svcadm disable mysql:version_50
Restart Service (only if the service is already running)svcadm restart http:apache22svcadm 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
    svcadm restart http:apache22
  • 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.

Configuring Drupal

  • Drupal (bundled within this AMI in pre-configured state) is available under location /var/drupal.
  • Drupal recommends having a database protected with a valid user name and password to be created on the system before configuring Drupal. Hence, users are advised to either use 'ssh' to login to your AMI or phpMyAdmin to create such database before proceeding to configuring Drupal. For more information, refer to MySQL documentation by visiting here
  • Drupal specific configuration for Apache Web Server is available within /etc/apache2/2.2/conf.d/drupal.conf.
  • Users can launch and configure Drupal by accessing http://<DNS name associated with the instance>/drupal in their browser.

Support

For technical support during Beta period, please send emails to ec2-solaris-support[AT]SUN[DOT]COM.

For latest updates and new information about OpenSolaris AMIs, please visit OpenSolaris on Amazon EC2 blog

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.



OpenSolaris AMI License for Amazon EC2
http://www.sun.com/third-party/global/amazon/license/ami/

OpenSolaris and MySQL are trademarks or registered trademark of Sun Microsystems, Inc. or its subsidiaries in the US and other countries.

Discussion

The 5 most recent discussion messages. View full discussion.

Pablo Azcurrain
Posts: 7
Registered: 9/15/08
Drupal AMI using AMP stack on OpenSolaris provided by Sun Microsystems, Inc.
Posted: Sep 15, 2008 9:05 PM PDT
 
  Click to reply to this thread Reply

What version of Drupal is installed? All? Are they updated automatically?


Pablo Azcurrain
Posts: 7
Registered: 9/15/08
Re: Drupal AMI using AMP stack on OpenSolaris provided by Sun Microsystems, Inc.
Posted: Sep 15, 2008 9:07 PM PDT   in response to: Pablo Azcurrain
 
  Click to reply to this thread Reply

actually, now i noticed that it is 6.4. However, what if i want to use a previous version of drupal?


nextgenec2
Posts: 5
Registered: 6/1/07
Re: Drupal AMI using AMP stack on OpenSolaris provided by Sun Microsystems, Inc.
Posted: Mar 30, 2009 5:24 PM PDT   in response to: Pablo Azcurrain
 
  Click to reply to this thread Reply

You can download any version of Drupal under / var / <drupal-<..> and edit /etc/apache2/2.2/drupal.conf to point to their location and restart apache service as follows:

svcadm restart apache22




Reviews
Create Review Write a Review
Be the first to review this.
Welcome, Guest Help
Login Login