linner.org

PHP setlocale() in Slackware

Posted by in Hosting

In order to get the PHP function setlocale() to work in Slackware you need some libraries installed:

glibc
glibc-i18n

I’m using Slackware 14.1 (64bit), sooo:

# wget ftp://ftp.slackware.no/slackware/slackware64-14.1/patches/packages/glibc-i18n-2.17-x86_64-11_slack14.1.txz
# wget ftp://ftp.slackware.no/slackware/slackware64-14.1/patches/packages/glibc-2.17-x86_64-11_slack14.1.txz
# installpkg glibc-2.17-x86_64-11_slack14.1.txz
# installpkg glibc-i18n-2.17-x86_64-11_slack14.1.txz

How-to change default document root for Synology Web Station

Posted by in Hosting

If you are enabling the Web Station package for Synology in order to use the file stastion as a web server and don’t want to use a hostname/virtual host to access your web pages, you can easily change the default document root (e.g http://ip-to-synology-nas:80).

  1. Enable SSH access to the NAS. Controlpanel/Terminal/Enable SSH-service.
  2. Login to you NAS via SSH and your admin account.
  3. sudo su (same password as admin)
  4. cd /var/services
  5. rm web (default a soft link to /volume1/web)
  6. ln -s /volume1/your share/new www root/ web
  7. Done!