Google Plus

Install AMP in opensolaris 2009.06

Written by Mel Kham on . Posted in Linux tutorials

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 
DOWNLOAD PKGS FILES XFER (MB)
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

PHASE ACTIONS
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 : http://127.0.0.1 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

phpinfo();
?>

save and exit

http://ip/infp.php

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

 


Links:

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Snake

|

Wow, great. That’s what i’m waiting for too. I want to make DC with LDAP ( Active Directory alternative) and SAMBA on Ubuntu. :-)

Blawer

|

Thanks!!!!!!!!!!!!!!!!!! you rules!!! all the other “help” in google are useless… yours was very helpful. Thanks again

piCool

|

Great ! we have another another master trick :-)

Yilmaz Ulugtekin

|

Just delete the space after the slash (/) it will work.

Pat L

|

I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .