enarion.net redesigned and a bit refreshed

As you may have realized, enarion.net got a little facelifting. Finally the website runs with WordPress and got a new, cleaner layout.

The content is mostly migrated, only the German and partially Portuguese has been removed. All tools and libraries got a specific section. The content regarding phpSitemapNG has been trimmed.

What do you think about it?

Download

There are two release streams – a stable and a testing stream. Please note that this software is not developed anymore and only available “as is”.

stable release

Latest release of the stable stream (aka “sailing”)

  • Version 1.5.3 stableDownload
  • Version 1.5.4b betaDownload (size: 162 kB)
    Recent changes: improved setup page; added Google Sitemap Stylesheet support; added rss, html based output generation; direct submission to MSN and Yahoo!; new layout

testing release

Latest release of the testing/development stream (aka “kiting”) – meant for plugin developers and early adaptors.

  • Version 1.6.1b – Size: 70 kB – Download

NEW FEATURES

  • Joomla! input plugin v 0.15 ( details )
  • supports Google Sitemap index files, can handle more than 50.000 urls
  • supports Google Sitemap stylesheet
  • rewritten plugin architecture (more usage of delegates to encapsulate the plugins from the data handler class)
  • Potential limitations:
  • doesn’t has the latest crawler plugin (no cookie support yet)
  • Google Sitemaps output plugin might have some bugs

Next step: read the installation instructions

phpSitemapNG

phpSitemapNG

phpSitemapNG is a free Google Sitemaps generator written in PHP, but also generates RSS-based, txt-based and HTML-based sitemap files. It will spider your website and also your filesystem (of course, as you prefer). You can download and use it for free, the licence is GPL.

You can try the demo crawler to get an impression of the quality of the crawling engine and also create an initial sitemap.

To use phpSitemapNG start with downloading phpSitemapNG and follow the steps described at the bottom of the pages to install and setup phpSitemapNG properly.

Please note that this software is not developed anymore and only available “as is”.

Related information

Configure open_basedir for subdomains

Follow the 3 steps to fix open_basedir restriction for subdomains.

We assume that the domain name is $domain.com, the name of the subdomain is $subDomName. You have to replace these values with the appropriate values.

Our goal is to open access to the public website directory and the /tmp directory for the special subdirectory. The directories are mentioned in the php_admin_value open_basedir

Create vhost.conf file for subdomain

Create /srv/www/vhosts/$domain.com/subdomains/$subDomName/conf/vhost.conf with the following content:
<Directory /srv/www/vhosts/$domain.com/subdomains/$subDomName/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/srv/www/vhosts/$domain.com/httpdocs:/srv/www/vhosts/$domain.com/subdomains/$subDomName/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/srv/www/vhosts/$domain.com/httpdocs:/srv/www/vhosts/$domain.com/subdomains/$subDomName/httpdocs:/tmp"
</IfModule>
</Directory>

Apply the configuration

The next step is to apply the created configuration and recreate the apache configuration.
Execute the following command on the command line to update the Plesk configuration:
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.tld

Restart apache

Final and last step is to restart apache:
apache2ctl  restart

That’s all, now your open_basedir restriction is gone.

phpMicroformats – PHP class library for microformats

About phpMicroformats

phpMicroformats is a PHP class library that helps to generate valid microformats for e.g. calendar events (hCalendar) or vcards (hCard). It is released under GPL license.

About Microformats

Microformats are specific enriched html structures that both helps humans and computers to understand the content. There are formats for calendar events called hCalendar – based on vCalendar format – and vcards – based on vCard format – and more.
The advantage of using microformats is that it is easier for humans to understand but also for computers to interpret and understand. Since it is using wildly accepted standards as (x)html enriched with some specific but limited classes, it can be easily implemented.

Advantages

  • Based on wildly accedpted standards as xhtml
  • Defines specific formats for limitd domains as e.g. calendar data or vcards
  • Helps to classifiy and structure data for both humans and computers
  • Will help computers to better understand the content of websites
  • Can be integrated and used easily with full backward compatibility.

Disadvantages

  • Maybe a bit more work to encode the data in the required formats.
  • Up to now only a few formats are set up for limited domains.
  • Not officially used by search engines spiders up to now.

Requirements for phpMicroformats

There are no special requirements besides PHP.

Usage of phpMicroformats

  1. Download phpMicroformats and copy the class phpMicroformats.class.php to your webserver.
  2. Experiment with the microformat examples available: Generate your first hCalendar or hCard entry.

Download

phpMicroformats Release 0.1 (supports hCalendar and hCard; ZIP-compressed)

Examples for generation of microformat entries

Sample code for encoding of a vcard

<?php
/*
* example php script that generates and outputs a hcard entry
*/

$myPersonalData = array(
‘name’ => ‘Steve F. Better’,
‘email’ => ‘abuse-me@this-host-is-not-existing.info’,
‘org’ => array(
‘name’ => ‘The virtual company’,
‘title’ => ‘General chief of all’
),

‘location’ => array (
‘street’ => ‘Main street 15b’,
‘town’ => ‘Mainhattan’,
‘zip’ => ’22912′,
‘state’ => ‘Main country’,
‘country’ => ‘Countrinidad’
),

‘phone’ => array(
‘home’ => ‘+1 123 66 71 292′,
‘cell’ => ‘+1 123 88 72 121′
),

‘photo’ => ‘http://non-existing-domain.com/no-image-available.jpg’,

‘im’ => array(
‘skype’ => ‘echo-chinese’,
‘aim’ => ‘ShoppingBuddy’
)
);
require_once(
‘phpMicroformats.class.php’);
echo
phpMicroformats::createHCard($myPersonalData);
?>

Sample code for encoding of a calendar event

<?php
/*
* example php script that generates and outputs a hcalendar entry
*/

$myEvent = array(
‘name’ => ‘Release party of phpMicroformats’,
‘begin’ => time(),
‘end’ => time()+2*60*60, // duration: 2 hours

‘location’ => array (
‘street’ => ‘Main street 15b’,
‘town’ => ‘Mainhattan’,
‘zip’ => ’22912′,
‘state’ => ‘Main country’,
‘country’ => ‘Countrinidad’
),
‘url’ => ‘http://enarion.net/phpmicroformats/’
);

require_once(‘phpMicroformats.class.php’);
echo
phpMicroformats::createHCalendar($myEvent);
?>