Install AMP in opensolaris 2009.06

Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0

AMP (Apache, MySQL and PHP) is an open source Web development platform, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.
In this Simple tutorial we will explain you how to install AMP server on your Opensolaris 2009.06.


So lets start, under root in opensolaris :

root@opensolaris:~# pfexec pkg install  amp 
SUNWmysql51 1/18 292/1914 48.36/105.68
SUNWapu13-ldap 11/18 1827/1914 97.27/105.68
Completed 18/18 1914/1914 105.68/105.68

Install Phase 2597/2597

The Apache, PHP and MySQL binaries are available under /usr/apache2 , /usr/php5 and /usr/mysql directories respectively.

The configuration files will be under /etc/php5 , /etc/mysql and /etc/apache2

Now its time to start SNF services with

root@opensolaris:~#pfexec /usr/sbin/svccfg import /var/svc/manifest/network/http-apache22.xml

root@opensolaris:~# pfexec /usr/sbin/svccfg import /var/svc/manifest/application/database/mysql_51.xml

Now we will start the deamons with

#pfexec /usr/sbin/svcadm enable network/http:apache
#pfexec /usr/sbin/svcadm enable database/mysql:version_51

If you want to stop services just change word enable with disable

the Web Server document root directory is under /var/apache2/2.2/htdocs.

check the webpage : of localhost or http://IP

Php will be add automatiquely to apache config .

lets give a test

view  /var/apache2/2.2/htdocs/info.php

add this


save and exit


For mysql is automatuqely installed without password . you can make password for your mysql server with mysqladmin



For questions please refer to our Q/A forum at :

Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0