PHP 5.5.3 It is not safe to rely on the system’s timezone settings

Issue:

Warning: connection_mysql() [function.connection-mysql]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/Paris’ for ‘2.0/DST’ instead in D:\…\…\includes\mysql_connect.inc.php on line 37

Solution: edit php.ini and alter date.timezone = ‘Europe/Paris’

FastCGI 1.5, PHP 5.5.3, IIS 6.0

Machine:

Windows 2003 R2 SP2 English
IIS 6.0
PHP 4.4.4

Components to deploy:
PHP 5.3.3 VC9 x86 Non Thread Safe

Issue:

I always used the ISAPI Moldule from PHP 4, 5 from i can remember, but now PHP says that is not being mainteanced from PHP 5.1 version.

To migrate from PHP 4.4 version is necesary to use FastCGI Handler component to deploy PHP 5.3.3.

I followed these steps, not in order, because i did a lot of installations and uninstallations testing all the components.

After did so many installations, after read so many articles i checked operating system register to locate which terms was related to PHP, php4, php5, php4isapi, php5isapi, etc. I deleted all of them. I needed a clean system so i deleted the garbage.

Then i installed the FastCGI extension from http://www.iis.net/download/FastCGI followed the instructions about http://learn.iis.net/. There was a good article in http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60.

I used the x86 binary file, because i got problems with the WPI the Web Platform Installer of Microsoft. I really want known what i was doing with the server.

I checked the installed files in %windir%\system32\inetsrv:

fcgiconfig.js <- Configuration script
fcgiext.ini <- COnfiguration file
fcgiext.dll <- Handler

Next one was download the binary zip file from http://www.php.net. I downloaded the PHP 5.3.3 VC9 x86 Non Thread Safe. I suppose that there is many versions today.
I unziped files in C:\PHP directory.

Then, i altered the FastCGI settings in php.ini. I followed the instructions from http://www.php.net/manual/en/install.windows.iis6.php

fastcgi.impersonate = 1
fastcgi.logging = 0
cgi.fix_pathinfo = 1
cgi.force_redirect = 0

Next one was configure the FastCGI extension to handle the PHP requests, from the command line i executed...

C:\WINDOWS\system32\inetsrv>cscript fcgiconfig.js -add -section:”php” -extension:php -path:”C:\php\php-cgi.exe”

Then, the system said that i had one entry on Internet Services Manager, Web Service Extensions

I also find a way to re-configuring the FastCGI when you want

C:\WINDOWS\system32\inetsrv>cscript fcgiconfig.js -set -section:”php” -exepath:”C:\php\php-cgi.exe”

Another usefull command if you want be set is how to change the default location of environment vars

C:\WINDOWS\system32\inetsrv>cscript fcgiconfig.js -set -section:”php” -EnvironmentVars:PHPRC:”C:\PHP\”

There is a buch of another command combos to optimice the performance

C:\WINDOWS\system32\inetsrv>cscript fcgiconfig.js -set -section:”PHP” -InstanceMaxRequests:10000
C:\WINDOWS\system32\inetsrv>cscript fcgiconfig.js -set -section:”PHP” -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000

If you want to check the changes you may open the configuration file called “fcgiext.ini”.

[Types]
php=PHP

[PHP]
ExePath=C:\php\php-cgi.exe
dInstanceMaxRequests=10000
ActivityTimeout=300
RequestTimeout=600
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000

I added to the system var path the PHP directory. For check it execute from the command line “set”.

From Internet Information Services manager i checked the Default Web Site properties and checked that in tab Home Settings, section Application Settings,
Application Name: Default Application
Permision: Scripts and Executables
Aplication Pool: DefaultAppPool

Then i pressed configuration button and find that php extension had been added.
.php, C:\WINDOWS\system32\inetsrv\fcgiext.dll, all verbs.

So at this moment i rebooted the operating system and when it started up. I checked a across an url.

This works!

Wireless network list with iwlist

shell> iwlist scanning
Ex:
shell> iwlist wlan0 scanning

Operculicarya Decaryi 2010-06-25

Mi tercer bonsai un “Operculicarya Decaryi” de 5 años.

Lo compré un día que pasaba por un Verdecora en Mayo de 2010; estaba a muy buen precio y tenía un aspecto formidable; me encapriché de él por las forma de sus hojas, tiene una copa muy menuda y el color verde de sus hojas es muy atractivo para la vista. Dá gusto verle.

Le llaman el pimentero japonés.

Inmediatamente transplanté el cepellón a una nueva maceta conservando al completo el musgo que lo cubría y lo he rodeado de unas pequeñas piedras que le dan un toque personal.

La mezcla de tierra en la nueva maceta está compuesta de akadama, tierra volcánica y sustrato genérico específico para bonsais. La maceta está hecha de arcilla moldeada y el cepellón está sujeto a la base por un fino alambre de hierro.

En la mezcla agregué unas pequeñas bolas de fertilizante de raíces para que el cepellón enraíce firmemente en la  nueva tierra que contiene la maceta.

He conseguido que la mezcla drene bastante bien el agua de riego; supongo que la akadama tiene bastante que ver.

Algunas imágenes:

Operculicarya Decaryi.5a,20100627.01
 

Operculicarya Decaryi.5a,20100627.02

 

Operculicarya Decaryi.5a,20100627.03

 

Operculicarya Decaryi.5a,20100627.04

Diagnóstico de memoria RAM a través de Memtest86 3.5

Memtest86, es un producto de http://www.memtest86.com/ que permite realizar un diagnóstico de la memoría RAM disponible de una máquina de arquitectura x86.

Desde la página oficial se puede descargar una ISO quemarla en un CD y arrancar directamente como un sistema operativo arrancable; automáticamente inicia un menú donde te permite seleccionar distintas versiones de compilación que someten a un diagnóstico intensivo la memoria RAM presente en el equipo.

Descargar Memtest86

Rotación de Logs de Blackboard Learn 9

Para completar la rotación de Logs del LVMS Blackboard Learn 9 instalada en arquitecturas Microsoft Windows en un flujograma de procesos se debería

1) Parar servicios de Blackboard

net stop Bb-Collab
net stop Bb-Tomcat

2) Arrancar script de rotación de logs de Blackboard

cd D:\BB\blackboard\tools\admin
RotateLogs.bat

Con la ejecución de este script el proceso optimiza el espacio libre de la unidad donde está instalada el servidor de aplicaciones Apache Tomcat comprimiendo y archivando archivos logs en D:\BB\blackboard\logs\archives.

3) Arrancar servicios de Blackboard

net start Bb-Collab
net start Bb-Tomcat

Rotación de Logs en Linux /etc/logrotate.conf

A través de logrotate puedo realizar un tratamiento personalizado para cada uno de los logs de acceso y error de cada uno los virtual hosts que hospedo en el servidor Apache.

Es una muy buena forma de rotar archivos de logs muy grandes. A posteriori sobre los archivos que van a ser rotados se les aplica factor compresión para que el fichero rotado ocupe menos tamaño.

Contenido del archivo de configuración /etc/logrotate.conf

# see “man logrotate” for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp — we’ll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here

/var/www/www.XXX.YYY.es/logs/*.log {
  daily
  missingok
  rotate 7
  compress
  delaycompress
  create 640 usuario desarrollador
}

logrotate corre como un demonio cuya ejecución es administrada a través de cron.

Desempaquetar y descomprimir un archivo XXX.tgz / XXX.bz2 en Linux

TGZ

tar xvzf XXX.tar.gz

 BZ2

tar xvjf XXX.tar.bz2

Imágenes de Ficus Microcarpa, 20100307

Estaba de compras por un Hipercor, justo cuando lo ví y me antojé de él.

Como soy un novato y no tenía un precio elevado decidí comprármelo para que acompañase a mi primer bonsai “Serissa Phoetida” y a la par cultivar otro género distinto.

No me fué caro, creo recordar que estaba de oferta y no pagué más allá de 5-7 €.

Desde el deconocimiento total, este es el aspecto que tenía:

Ficus.Microcarpa.5a.20100307.01

 

 

 

Ficus.Microcarpa.5a.20100307.02

Visualmente, tenía una copa frondosa y llena de hojas; no muchas ramas y tampoco de gran longitud, en cuanto a las hojas las había de varios colores y dimensiones.

En la etiqueta que lo acompañaba, el bonsai indicaba que era literalmente un “Ficus Ginseng”; a posteri, traté de indagar más en profundidad para conocer de dónde venía y cómo debía de cuidarlo.

No encontré mucho a través de “Ficus Ginseng” debido a que parece que los venden comercialmente así, lo más cerca que he llegado de identifarlo es como un “Ficus Microcarpa” debido al desarrollo de la copa, el grosor del tronco y el jugo lechoso que desprende por ejemplo cuando le podas o bien un rama o un par de hojas.

Serissa phoetida, 5 años, 201003007

Hoy he transplantado mi Serissa Phoetida a un nuevo recipiente que he hecho a mano con un puñado de piedras, mortero y un armazón metálico hecho de alambre.

Tras limpiar las raíces del árbol de la tierra y el sustrato anterior he agarrado el árbol al recipiente con un par de alambres fijados a los agujeros de drenaje y finalmente he agregado una nueva mezcla de tierra compuesta por akadama, turba rubia y gredas volcánicas.

Sobre los agujeros de drenaje he colocado unas rejillas hechas con plástico perforado para permitan drenar sólo el agua y mantenga la tierra.

Para terminar, he regado el árbol generosamente y he plantado una raíz en un lateral que lamentablemente rompí o se me sólto cuando estaba limpiando las raices.

El resultado es el siguiente…

Serissa.phoetida.01.5a.20100307.04

Serissa.phoetida.01.5a.20100307.02

Serissa.phoetida.01.5a.20100307.03

Serissa.phoetida.01.5a.20100307.04

WordPress Themes