Posts Tagged ‘webmaster’

Configurar Dreamhost, FastCGI, eAccelerator , PHP.ini Modificado

Martes, Septiembre 9th, 2008

Para resolver que “sentia” lento, mi Dreamhost …. el problema, el uso del CPU,

asi, que hice los siguiente cambios y aumento bastante el rendimiento.
asi quedo mi php.ini http://minopal.com/phpinfo.php

FastCGI, eAccelerator , PHP.ini Modificado

Warning: FCGI processes use more memory than usual CGI ones. Due to this, FCGI-enabled application may be killed by process watchdog due to high memory usage. To prevent this, it’s recommended (by DreamHost support) to rename wrapper script to dispatch.fcgi. This way it will be allowed to use more memory.

Recursos:

http://wiki.dreamhost.com/PHP_FastCGI

PHP5 FastCGI con eAccelerator en Dreamhost sin compilar PHP

eAccelerator, PHP 5, and Dreamhost

http://www.quikstorm.net/wordpress/2007/06/14/eaccelerator-php-5-and-dreamhost/

Dreamhost, PHP y consumo de CPU: Round 2

http://www.askapache.com/php/custom-phpini-tips-and-tricks.html

asi quedo mi php.ini http://minopal.com/phpinfo.php

parece que funciona bastante mas rapido,

Como extra encontre como instalar :

This guide is designed for users who have a shared hosting account (no root access), namely on DreamHost. We will make use of ClamAV, procmail, and ClamAssassin.

YA tengo compilados

  • autoconf
  • automake
  • LAME
  • ffmpeg
  • GD2
  • mplayer+mencoder
  • Ruby
  • flvtool2
  • libogg
  • libvorbis
  • ffmpeg-php

con las instrucciones de http://www.netbrix.net/archives/20

con FastCGI ejecutas PHP como un usuario

solo me falta que funcione el Path…

export TMPDIR=$HOME/tmp
export PATH=$HOME/bin:$PATH
export LD_LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH
export CPATH=$HOME/include:/$HOME/include/lame:/usr/local/include:$CPATH
export LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LIBRARY_PATH

lo he puesto en .bash_profile, pero no lo tome desde PHP,

ahora lo pondré dentro de php5-wrapper.fcgi

o dentro de .htaccess con con SetEnv

….

  • Share/Bookmark

Custom PHP.ini tips and tricks

Martes, Septiembre 9th, 2008

Describes in exhaustive detail how to change configuration settings and implement a custom php.ini file for use with the Apache Web Server.

View latest official php.ini

Sections:

* When php run as Apache Module (mod_php)

* When php run as CGI

* When cgi?d php is run with wrapper (for FastCGI)

Code Snippet from Ultimate htaccess file

### RUN PHP AS APACHE MODULE ###
AddHandler application/x-httpd-php .php .htm

### RUN PHP AS CGI ###
AddHandler php-cgi .php .htm

### CGI PHP WRAPPER FOR CUSTOM PHP.INI ###
AddHandler phpini-cgi .php .htm
Action phpini-cgi /cgi-bin/php5-custom-ini.cgi

### FAST-CGI SETUP WITH PHP-CGI WRAPPER FOR CUSTOM PHP.INI ###
AddHandler fastcgi-script .fcgi
AddHandler php-cgi .php .htm
Action php-cgi /cgi-bin/php5-wrapper.fcgi

### CUSTOM PHP CGI BINARY SETUP ###
AddHandler php-cgi .php .htm
Action php-cgi /cgi-bin/php.cgi

(más…)

  • Share/Bookmark

Fix PHP Warning: ob_gzhandler()

Jueves, Septiembre 4th, 2008
essential configurations from the 'php.ini' file:

output_buffering = 4096
output_handler =
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
allow_call_time_pass_reference = Off

If I set "output_handler = ob_gzhandler" and remove theob_start("ob_gzhandler")
 from the script it's working on 4.3.0 as well.However, this way the compression
 is always on and I can't determinemyself when to use it.
Source http://bugs.php.net/bug.php?id=21228
  • Share/Bookmark

Bad Behavior has blocked 93 access attempts in the last 7 days.