SLES

All posts tagged SLES

Not sure exactly why you need to manually modify Apache configs if you install using the Novell RPMs, but guess you do cuz the php shit just don’t work until you do the following.

zypper in apache2 apache2-mod_php53 php53   (and whatever else php53 mods you need)

copy in the php.ini, my install got this installed , but I’ve seen where there isn’t one.

cp /etc/php5/apache2/php.ini.template (or .example or .rpmnew) /etc/php5/apache2/php.ini

vi /etc/sysconfig/apache2

look for APACHE_MODULES= and add php5 rewrite.   Save. Exit.

APACHE_MODULES=”actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl php5 suexec userdir  reqtimeout rewrite”

 

I’ve never even knew this “SuSEconfig” command even existed but apparently it does, anyhow you need to run it..heh.

# SuSEconfig && rcapache2 restart

 

You should see your Apache modules using, look for php5 and rewrite

# apache2ctl -M

Now list your php modules with

# php -m

If you missing anything, you add use zypper to install em.

 

drop a phpinfo test file on apache root.

vi testme.php

<?php
phpinfo();
?>

should work.

software.opensuse.org.

Search for your software, make sure you choose the packages geared for your distro SLES11SP1 or 2.  Open the repository in your browswer, look for the .repo file.  For example, here’s the ImageMagick for SLES11SP2

http://download.opensuse.org/repositories/home:/cabelo:/ImageMagick/SLE_11_SP2/

Click the home:cabelo:ImageMagick.repo file

Select all, copy/paste into /etc/zypp/repos.d/Image.repo

zypper ref -s

On the SMT installation I recently did, I ran  into some issues with the creation of the server certs.   SMT defaults to you using the Yast_Default_CA.  Don’t bother trying to create a new one as it will not work since the clients will be looking for Yast_Default_CA.   So the directions specify you open that cert up by yast2 ca_mgm  , select cert and Enter CA.  This will ask you for a password.  Now for mine I had no idea what the password was, tried the root password …yeah I just basically tried the root password and that failed.   Well you need to create a server cert based off this CA and if you don’t well you can’t use SMT.

Here’s what I did to re-create the Yast_Default_CA cert

Delete the old CA

Create root CA

Create server certificate

Export the certificate as common server certificate, so that the http server apache uses it

Export the CA certificate to the smt.crt file

Restart SMT

Import the newly created CA to the SMT clients

SMT is a subscription management tool from Novell. Basically acts like a proxy between your site and Novell. Instead of registering your hosts to Novell you register your devices with SMT and that registers to Novell. Also gives you the ability to download your SLES repos giving your localized access to download patches and shit. Wasn’t much of a fan of registering anything with Novell, but unfortunately I don’t see any way around not registering in order to patch to SLES11.2 easily. It’s not that I’m trying to cheat anything, we pay for all our licenses fair and square, it’s just I don’t think it’s Novells’ concern what we run, and how we run it. But it looks like we can select what info we want to disclose to them, so I’m ok with that. This is basically ZLM. I find it somewhat sad that our Novell reps have not really mentioned this before and have always tried to push us to buy SuseManager. Which is basically the over-priced Spacewalk version that runs SLES. I’m sure it is worth the price and pretty nice, but unfortunately not something my company would be willing to fork out. Plus it’s just a matter of time before Spacewalk fully suppoorts SLES. I have talked to our Novell rep a bunch over the last year, and not once have they mentioned we should try SMT.

SMT is an add-on only product. It can be downloaded from Novell site, two ISO’s 25MB and 1MB. Not sure what the 1MB is about really. To install , yes fun times open up yast2 goto add-on and point the shitz to your DVD..go thru the wizard. yeah.

To be continued…