Michael's blog OSS / Linux, networking and my private life

24 Okt/08 3

Apache2 mpm-worker and fcgid

After Apache has felt the occasional times used on this site breaks thinking I've decided to replace the mpm-prefork mpm-worker with the version that is now also called by PHP FastCGI.

Below is a small configuration instructions.

  • Installing the required packages:

  aptitude install libapache2-mod-fcgid apache2-mpm-worker php5-cgi 

  • Configuration of the Apache

  a2dismod php5
 a2enmod actions
 a2enmod fcgid 

  • Customizing the Apache Configuration

/ Etc/apache2/mods-enabled/fcgid.conf

 AddHandler fcgid-script. Fcgi
 Socketpath / var/lib/apache2/fcgid/sock
 IPCConnectTimeout 60 

/ Etc/apache2/conf.d/php5-fcgid.conf

 # Path to php.ini - defaults to / etc / phpX / cgi DefaultInitEnv PHPRC = / # Number of PHP childs etc/php5/cgi that will be launched.  Leave undefined to let PHP decide.  DefaultInitEnv # 3 # Maximum requests before PHP_FCGI_CHILDREN a process is stopped and a new one is launched DefaultInitEnv PHP_FCGI_MAX_REQUESTS 2500 # Define a new handler "php-fcgi" for ". Php" files, plus the action that must follow AddHandler php-fcgi. Php Action php-fcgi / fcgi-bin/php-fcgi-wrapper # Define the MIME type for. "php" files AddType application / x-httpd-php. php # Define alias "/ fcgi-bin /".  The action above is using this value, Which means that # you could run another "php5-cgi" command by just changing this alias Alias ​​/ fcgi-bin / / var/www/fcgi-bin.d/php5-default / # Turn on the fcgid-script handler for all files within the alias "/ fcgi-bin /" SetHandler fcgid-script Options + ExecCGI 

  • Creating the wrapper under

/ Var/www/fcgi-bin.d/php5-default/php-fcgi-wrapper

  # / Bin / sh
 # Wrapper for PHP-fcgi
 # This wrapper can be used to define settings before launching the PHP-fcgi binary.

 # Define the path to php.ini.  This defaults to / etc / phpX / cgi.
 # Export PHPRC = / var/www/fcgi-bin.d/php5-web01/phprc
 export PHPRC = / etc/php5/cgi

 # Define the number of PHP childs that will be launched.  Leave undefined to let PHP decide.
 export PHP_FCGI_CHILDREN = 5

 # Maximum requests before a process is stopped and a new one is launched
 export PHP_FCGI_MAX_REQUESTS = 5000

 # Launch the PHP CGI binary
 # This can be any other version of PHP is compiled with FCGI Which support.
 exec / usr/bin/php5-cgi 

  • The new wrapper to make it executable

  chmod + x / var/www/fcgi-bin.d/php5-default/php-fcgi-wrapper 

  • Finally, Apache must be restarted again

  / Etc/init.d/apache2 restart 

18 Okt/08 0

Viscosity - tunnel vision, only better?

After I running Tiger for a long time tunnel vision have used as a GUI for OpenVPN, the manager had crashed constantly since moving to Leopard no longer possible, tunnel vision is.

Mittlwerweile although there are again a beta which will probably work better because I've tried so far does not.

Now, there is a new frontend called Viscosity . Currently the beta is still free, then it will cost, according to testimony of the developer about $ 9. In comparison to the previous tunnel vision, but it can also manage the configuration, ie it is no longer obliged to maintain the configuration file manually. In addition, there is the possibility to import existing configurations of tunnel vision.

Here are some screenshots of Viscosity

3 Okt/08 0

TuneUp iTunes helper

Unfortunately, there TuneUp previously only available for Windows and not for the Mac, here the reminder for the site.

The whole is probably the following:

  • Cleanup of the Library
  • Covers get
  • Analysis of the Library
  • and looks nice

All in all, probably an alternative for iEatBrainz etc.

Let's wait until the end of the year off.