you need SUNWphp52u and SUNWapch22m-php52 package for php support. make sure, you have these 2 packages installed. then you will need to restart apache 2 (svcadm restart http:apache22) before you can run php scripts.
now, you should be able to use a sample php like below <?php phpinfo(); ?> hope this helps. Marko wrote: > Hello, > > > I am trying to install individual web stack components in OpenSolaris 2009.06 > zone. Problem is that PHP scripts are not working. PHP scripts are shown as > HTML code. Httpd.conf file has line "Include /etc/apache2/2.2/conf.d/*.conf" > and also in /etc/apache2/2.2/conf.d php5.2.conf file is available. > > Can somebody help me with enabling PHP in Apache22? > > > > List of installed packages: > OS2009B:~# pkg list -s | grep apch > SUNWapch22 Apache Web Server V2.2 > SUNWapch22d Apache Web Server V2.2 Documentation > SUNWapch22m-fcgid FastCGI plugin for Apache Web Server V2.2 > SUNWapch22m-jk Tomcat Connector plugin for Apache Web Server > V2.2 > SUNWapch22m-php52 PHP Server 5.2 module for Apache Web Server > V2.2 > SUNWapch22m-security Mod Security plugin for Apache Web Server V2.2 > SUNWapch22m-sed mod_sed plugin for Apache Web Server V2.2 > OS2009B:~# pkg list -s | grep php > SUNWapch22m-php52 PHP Server 5.2 module for Apache Web Server > V2.2 > SUNWphp52 PHP Server 5.2 > SUNWphp52-mysql PHP 5.2 module for MySQL > SUNWphp52-pgsql PHP 5.2 module for PostgreSQL > SUNWphp524 > SUNWphp524-pgsql > SUNWphp524core > > Log: > [Wed Sep 23 12:25:11 2009] [warn] Init: Session Cache is not configured > [hint: SSLSessionCache] > [Wed Sep 23 12:25:12 2009] [notice] Digest: generating secret for digest > authentication ... > [Wed Sep 23 12:25:12 2009] [notice] Digest: done > [Wed Sep 23 12:25:12 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 > OpenSSL/0.9.8a DAV/2 PHP/5.2.9 mod_jk/1.2.27 configured -- resuming normal > operations >