Tag: Solaris


First installation troubles (Solaris)

Various small problems

VIM / Cursor Keys
If you wonder why VIM keeps writing ‘A’, ‘B’, ‘C’, ‘D’ on your screen when it is supposed just to move the cursor in writing mode, the answer is that the cursor keys are not being mapped the right way. The solution is to extend your favourite .vimrc file with:

map! ^[OD ^[h
map! ^[OC ^[l
map! ^[OA ^[k
map! ^[OB ^[j

“/usr/ucb/cc: language optional software package not installed”
/usr/ucb/cc is only a wrapper to a real C compiler. Solaris 10 won’t have a C compiler preinstalled, normally. This means that you will have to install it yourself (Sun Studio would be a good idea, too). All you have to see to then is that your PATH is set correctly; meaning that /usr/ucb is either deleted or after your real compiler.

“WARNING: loghost could not be resolved.”
That’s because your syslogd doesn’t have a defined host to work on. To fix it simply add “loghost” to your 127.0.0.1 entry in the /etc/hosts file

127.0.0.1       localhost loghost

“Sendmail: My unqualified host name (domain) unknown;”
If you get this warning on computer startup, then you haven’t configured a fully qualified domain name for your system. If you don’t need a mailing system on your computer the solution is easy by simply disabling the service via:

svcadm disable sendmail

If you need a working mailsystem, there is a howto from SUN.

3 comments » | articles

AMP stack in Solaris 05/08

Most webservers do have a need for a decent AMP stack, but Solaris 05/08 doesn’t quite offer a solution out of the box, but if you know where to look you’re not far away from having a fine implementation.

  • MySQL5I have made good experiences using MySQL5 from blastwave. Unfortunately it doesn’t run out of the box even tough it integrates nicely with SMF. When mysql is being called after installation you will see this error message:
    Warning: mysql(): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

    The simple reason is that cswmysql5 couldn’t start properly, because there is no default config file. After copying the config file to the right location you can start the installation:

    $ cp /opt/csw/mysql5share/mysql/my-small.cnf /opt/csw/mysql5/my.cnf
    $ /opt/csw/mysql5/bin/mysql_install_db
    ...
    $ chown -R mysql:mysql /opt/csw/mysql5/var
    $ svcadm disable cswmysql5; svcadm enable cswmysql5
  • Apache2
    $ pkg-get install apache2
  • PHP
    $ pkg-get install php5
  • Needed modules
    $ pkg-get install ap2_modphp5
    $ pkg-get install php5_gd
    $ pkg-get install
    php5_mysql

    Now all that’s left is to integrate PHP support into apache which is done by adding the following lines in your /opt/csw/apache2/etc/httpd.conf:

    LoadModule php5_module /opt/csw/apache2/libexec/libphp5.so
    <IfModule mod_php5.c>
      AddType application/x-httpd-php .php .phtml .php3
      AddType application/x-httpd-php-source .phps
    </IfModule>

    Now disable apache2, restart cswapache2 and you’re done.

Comment » | articles

     Next Entries »