Centos: Release 5 now „end of life“

On 2017, March 31th the official Release End of Version 5 is reached. This also touches SME Server Version 8.1.

  • If you use this you must now upgrade the Webserver to the next Version.
  • Checkout which last version offers latest Options like PHP7, MYSQL 6 ..more
  • Checkout that you current Content PHP Kits Support the new OS Options (PHP7)
  • As Remark you should do at first a FULL BACKUP of your DATA!! see here
  • Save manual the /etc folder to Backup, dump crontabs and firewall settings! (ufw)
  • Setup a fresh OS if you are not a Professional Admin cause to prevent old Config Files wasting the OS!
  • Restore all Backups, set crontabs, set firewall settings
  • Check the new OS with hardening default linux tools like „nmap“, „arp-scan“ or „systat“ .. more
  • Check daily the Logs of the OS, auth daemons, Webserver Logs, Database Logs.. all Services you installed!
  • If you run into problems „white pages“, checkout the PHP5 to PHP7 Release Change Notes and Changes
  • Backup the fresh OS again..

..enjoy the new Webserver Setup..

SME Server usefull Backup Tips Custom Templates Customizing SME

On SME Server:

Data Path which are saved by Console Backup

– save all Custom-Scripts which you run with Cron or Root at Location /root

– save all modified Custom Templates at /etc/e-smith/templates-custom

– all ibays

– all /home

– if you not know how to make /etc/e-smith/templates-custom files copy the standard
templates from /etc/e-smith/templates to /etc/e-smith/templates-custom and modify them there
don’t forget to run after customize:

#signal-event post-upgrade
and
#signal-event reboot

SME Server USB Disk Stick mount Problem at SME Server Backup Console

Problem:
On SME Server the HAL Daemon often not recognize a USB Stick or Disk
which you can use for „Console“ Backup Program.

Solution:
– Create a Script with #nano /root/backup.sh
– insert:

  • service haldaemon restart
  • service messagebus restart
  • console
  • exit

This restart the HAL Environment before Console (SSH-Admin-Tool)is opened.

To prevent Users to write on the Shares if you run the Backup you can add:

  • service haldaemon restart
  • service messagebus restart
  • service smb stop
  • console
  • service smb start
  • exit

This will stop Samba-Windows Shares! and prevent File-Access-Lockwaits!

SME Server config by console

SME Server is controlled by a extra Runlevel 7 of Linux (Default Linux has 6 runlevel).

Solution:
SME Server set the Runlevel 7 control with some database files located at /home/e-smith/db
to set your configuration you have to login with ssh (Putty) as root/admin
and enter:
#db configgroupname command dbfilename setting status
for example:
#db configuration show cpuspeed
SME Server answere to you:
cpuspeed=service
status=disabled
to change the service to enabled enter:
#db configuration setprop cpuspeed status enabled
thats all…
db commands are:
db configuration show /to show config of Runlevel 7
db accounts show /to show user+system accounts
db hosts show /to show hosted domain names

to save you settings enter:
#signal-event console-save
play a little bit the db command and you learn to use it..

How to compile the Centos SME Server 7.4 Linux Kernel 2.6.34

Download the latest stable kernel from the http://www.kernel.org/ unpack the downloaded source file.
Steps:

  1. # wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.tar.bz2
  2. # tar xjf tar xjf linux-2.6.34.tar.bz2
  3. # ln -s linux-2.6.34 linux
  4. # cd linux
  5. # cp /boot/config-`uname -r` ./.config
  6. # make menuconfig (here you can select .config as preselected .config from old kernel)
  7. # make rpm (Compile the Kernel and make a rpm-paket)
  1. During the compilation of linux-2.6.34 kernel the following error appears
  2. drivers/message/fusion/mptsas.c: In function `mptsas_port_delete'
  3.  drivers/message/fusion/mptsas.c: 105: sorry, unimplemented: inlining failed in call to 'mptsas_set_rphy': function body not available
  4.  drivers/message/fusion/mptsas.c: 467: sorry, unimplemented: called from here
  5. Because: The ‚mptsas_set_rphy‘ function is defined after the ‚mptsas_port_delete‘ function in the file

Solution :
Moved the ‚mptsas_set_rphy‘ function definition before to the function ‚mptsas_port_delete‘ function definition.

  1.  drivers/built-in.o(.init.text+0x3bad): In function `con_init': include/trace/events/kmem.h:47: undefined reference to `.L1452'

Solution:
This bug was due to the result of allocating the memory using kzalloc() in con_init() function in the drivers/char/vt.c file.
The problem is:

vc_cons[currcons].d = vc = kzalloc(sizeof(struct vc_data), GFP_NOWAIT);

Solution:
vc_cons[currcons].d = vc = alloc_bootmem(sizeof(struct vc_data));