1 2 Previous Next 22 Replies Latest reply on Dec 7, 2006 5:55 PM by 807557 Go to original post
      • 15. Re: Apache 2.0.52, MySQL,  PHP & SSL
        807557
        while Solaris doesn't ship a full blown PHP
        environment it does present the Apache module which
        you can use.
        I am having a hell of a time finding this module. Can somebody tell me where it is located? Thank you.

        JJS
        • 16. Re: Apache 2.0.52, MySQL,  PHP & SSL
          807557
          It should be on the companion CD / DVD and then it'll be installed in the directory mentioned above. Now, I hardly do anything with PHP myself (apart from using some forum / crm written in it) and I ran into a situation where grabbing and compiling php yourself could be usefull. It seems the PHP version shipped with Solaris doesn't support the things PHP on Linux would support.

          Considering the fact that many PHP applications seem to fully rely on PHP to present them with certain functionality this may turn into a problem on Solaris. Although I sometimes fail to understand why.. For example; When trying to setup Horde it complains heavily about not being able to utilize pictures (graphics) since PHP is missing out on some needed libraries. But in contrast to that I've been using PHP Gallery for a long time now (and still loving it) without any problems what so ever. Same PHP version, different programs.

          And if you do try to compile php you probably need to edit the configure script. Even if you do specify that it needs to find the include files in /usr/apache/include it'll add a "source" subdirectory and fail because it cannot find any files. Very annoying behaviour and in addition to all the security problems PHP has been causing (I conclude this from many reports on hacked websites which started abusing PHP pages) I'm keeping its usage on the Net to a strict minimum and utilize / implement Java wherever I can.
          • 17. Re: Apache 2.0.52, MySQL,  PHP & SSL
            807557
            I maintain a web page that outlines the steps I use to configure the Apache 2, MySQL and SSL packages that are bundled with Solaris 10. Instructions are also included for downloading, compiling and integrating the latest version of PHP.

            http://meljr.com/~meljr/AMPSolaris10.html

            -mel
            • 18. Re: Apache 2.0.52, MySQL,  PHP & SSL
              807557
              I probobally should have told you that I have compiled php from source. I followed the instructions on your website http://meljr.com/~meljr/PHPSolaris10.html, meljr. Great site. My problem is I do not know the path to my php_module.

              "The path on the right hand side of the LoadModule statement must point to the path of the PHP module on your system. The gmake install from above may have already added this for you, but be sure to check.

              LoadModule php5_module libexec/libphp5.so"

              When I include the above in my httpd.conf file and try to start apache2, terminal returns:
              Syntax error on line 281 of /etc/apache2/httpd.conf:
              Cannot load /usr/apache2/libexec/libphp5.soe into server: ld.so.1: /usr/apache2/bin/httpd: fatal: /usr/apache2/libexec/libphp5.soe: open failed: No such file or directory
              I think I might be missing a big idea here. . .
              Any friendly advice? Thank you both for your replies.

              JJ
              • 19. Re: Apache 2.0.52, MySQL,  PHP & SSL
                807557
                That message is returned when I use apachectl. When I use 'svcadm enable' and then check with 'svcs | grep -i apache2', terminal returns:
                maintenance    15:24:30 svc:/network/http:apache2
                Thanks.
                • 20. Re: Apache 2.0.52, MySQL,  PHP & SSL
                  807557
                  I got desperate and started from scratch. When compiling I had problems similar to those I reported on this thread: http://forum.sun.com/thread.jspa?threadID=29190&tstart=60. Somehow I got it done. I notice something now that might be my problem when it comes to this module. ./configure reported this error message:

                  *** WARNING ***

                  You will be compiling the CGI version of PHP without any
                  redirection checking. By putting this cgi binary somewhere in
                  your web space, users may be able to circumvent existing .htaccess
                  security by loading files directly through the parser. See
                  http://www.php.net/manual/security.php for more details.
                  --------------------------------------------------------------------
                  License:
                  This software is subject to the PHP License, available in this
                  distribution in the file LICENSE. By continuing this installation
                  process, you are bound by the terms of this license agreement.
                  If you do not agree with the terms of this license, you must abort
                  the installation process at this point.

                  Also, when I enetered 'gmake install' in /usr/php-5.1.2, the first few lines returned by terminal were:
                  Installing PHP SAPI module:       cgi
                  Installing PHP CGI into: /usr/local/bin/
                  Are these related? If so, how so? What would I have done that caused PHP to be installed as a CGI binary? Thank you in advance.
                  • 21. Re: Apache 2.0.52, MySQL,  PHP & SSL
                    807557
                    I got desparate again and started over. This time it worked. the only thing I did differently was add /usr/ccs/bin to my path first thing. I am a little baffled. Thank you.

                    JJ
                    • 22. Re: Apache 2.0.52, MySQL,  PHP & SSL
                      807557
                      I have a blog entry on installing WikiMedia, PHP, MySQL, and Apache on Solaris. Just omit the WikiMedia steps at the end if you won't want WikiMedia.

                      No compiling needed.

                      See
                      http://blogs.sun.com/DanX/entry/wikimedia_php_mysql_and_apache

                      If you wish to compile from source, be sure to NOT use /usr/bin/cc and add the linking and other compiler tools at /usr/ccs/bin
                      Use gcc or Sun Studio (free). Gcc is probably easier for Open Source, although less efficient, especially for the new SPARC multithreaded architecture (T1 or "Niagara" or "sun4v").
                      1 2 Previous Next