{"id":81,"date":"2007-09-04T22:43:18","date_gmt":"2007-09-05T06:43:18","guid":{"rendered":"http:\/\/learnbyblogging.com\/?p=81"},"modified":"2007-09-04T22:43:50","modified_gmt":"2007-09-05T06:43:50","slug":"installing-php-on-solaris-10","status":"publish","type":"post","link":"https:\/\/learnbyblogging.com\/?p=81","title":{"rendered":"Installing PHP on Solaris 10"},"content":{"rendered":"<p>Depending on which version of Apache 2 you have, you may download certain version of the php.<br \/>\nI went through a lot to get this working. Part of the problem is that I was confused by the bundled version of the Apache with Solaris and I couldn&#8217;t figured out where is where as there were two copies of the Apache 2. Anyway, hopefully the following instruction is not too confusing.<\/p>\n<p>I had the Apache 2 version 2.2.4 (downloaded from sunfreeware.com), so I downloaded PHP 5.2.3 from Sunfreeware.com.<\/p>\n<p>PHP needs configuration. php.ini related files are in \/usr\/local\/php\/doc\/php along with other documentation. php.ini needs to be installed in \/usr\/local\/php\/lib. The libphp5.so file is installed in \/usr\/local\/apache2\/modules by default. The following two lines<\/p>\n<p>LoadModule php5_module        modules\/libphp5.so<br \/>\nAddType application\/x-httpd-php .php<\/p>\n<p>need to be placed in your httpd.conf file in their appropriate places.<br \/>\nThe httpd.conf is normally stored in \/usr\/local\/apache2\/conf directory.<\/p>\n<p>Run the following command to restart Apache 2, now with php feature.<br \/>\n# \/usr\/local\/apache2\/bin\/apachectl restart <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Depending on which version of Apache 2 you have, you may download certain version of the php. I went through a lot to get this working. Part of the problem is that I was confused by the bundled version of the Apache with Solaris and I couldn&#8217;t figured out where is where as there were &hellip; <a href=\"https:\/\/learnbyblogging.com\/?p=81\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing PHP on Solaris 10<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-tips-for-computer"],"_links":{"self":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=81"}],"version-history":[{"count":0,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions"}],"wp:attachment":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}