Unix Notes

Contents

[ hide ]

    As Solaris 10 comes with MySQL and Apache installed by default, first we are going to uninstall them. Take a look at your system:
    pkginfo | grep -i apache

    system SUNWaclg Apache Common Logging
    system SUNWapch2d Apache Web Server V2 Documentation
    system SUNWapch2r Apache Web Server V2 (root)
    system SUNWapch2u Apache Web Server V2 (usr)
    system SUNWapchd Apache Web Server Documentation
    system SUNWapchr Apache Web Server (root)
    system SUNWapchu Apache Web Server (usr)

    pkginfo | grep -i mysql

    system SUNWmysqlr mysql – MySQL Database Management System (root component)
    system SUNWmysqlt mysql – MySQL Database Management System (test component)
    system SUNWmysqlu mysql – MySQL Database Management System (usr component)

    Next task would be to uninstall these packages. Proceed as follows:
    pkgrm SUNWaclg SUNWapch2d SUNWapch2r SUNWapch2u SUNWapchd SUNWapchr SUNWapchu
    pkgrm SUNWmysqlr SUNWmysqlt SUNWmysqlu

    A bug in php5 module for Apache HTTP server
    September 16th, 2006
    I just updated Apache HTTP server and all of its modules on a Solaris 10 x64 server today through blastwave’s package repository. I noticed that the server can’t load libphp5.so. A google search on the net revealed that this is a well known issue. So, I workedaround the issue by copying /opt/csw/lib/php/sapi/apache2-libphp4.so to /opt/csw/apache2/libexec/apache2-libphp4.so and edit the following lines in /opt/csw/apache2/etc/httpd.conf
    Remove/comment out the following line:
    LoadModule php5_module libexec/libphp5.so
    and replace it with the following line:
    LoadModule php4_module libexec/apache2-libphp4.so
    Change the following line from:

    to:

    And start the server. Fortunately, Subversion works with either php4 or php5 and I was able to start the server and get Subversion server running again.

    need to install pkg-get -i mod_php4_core php4_mysql

    EBS hostname:9000

    deleteing a file which starts with a “-”

    the easiest way is to do something like

    rm ./-file_to_delete

    or another method that is useful for commands that use getopt to parse the arguments is shown below:

    rm — -file_to_delete

    this tells the command rm (or whatever command that uses getopt) that anything after “–” is not an option.

    This page is wiki editable click here to edit this page.

    Comments are closed.

    Posted by andy, filed under . Date: June 3, 2010, 9:26 pm | Comments Off